Skip to content
Agentmart
Submit a tool

openspec-peer-review

Emits an objective Peer Review Findings section and rewrites an OpenSpec package to satisfy quality standards.

Skill by ianshank

IndexedApache-2.0★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ianshank-openspec-peer-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Emits an objective Peer Review Findings section and rewrites an OpenSpec package to satisfy quality standards. Use this whenever the user asks to review, critique, or polish an existing plan, or as the final step in generating an OpenSpec package.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/openspec-peer-review

What's inside

Skill name
openspec-peer-review
Description
Emits an objective Peer Review Findings section and rewrites an OpenSpec package to satisfy quality standards. Use this whenever the user asks to review, critique, or polish an existing plan, or as the final step in generating an OpenSpec package.
License
Apache-2.0
Instructions
56 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • research-application.md · references/
  • two-pass-protocol.md · references/
  • validate_skill.py · scripts/

SKILL.md (first lines)

# openspec-peer-review — E2E Action Skill

Perform **OpenSpec peer review** end to end: take an existing OpenSpec package, emit objective review findings, and rewrite the package to meet quality standards.

## 1. Preconditions (input contract)

- The user has provided an existing OpenSpec package or plan.
- You have reviewed the composition contract and examples in `references/research-application.md`.

## 2. Procedure (the E2E steps)

Execute the following review protocol (long form + worked examples in
`references/two-pass-protocol.md`):

1. **Pass 1 — mechanical fact-check.** Pin the tree under review (record the commit SHA).
   Re-derive every falsifiable claim in the package against that tree — run the command,
   read the file:line, execute the config — and record a per-claim verdict:
   **CONFIRMED / CORRECTED / REFUTED**, each with evidence. No claim is accepted on the
   strength of the source document alone.
2. **Pass 2 — adversarial design review.** Attack the design: failure modes, CI-invariant
   collisions, contract mismatches, silent-drift paths. Verify each attack before keeping
   it; an attack that dies under verification is **recorded as refuted, never deleted** —
   a reviewed-and-rejected risk is information the next reviewer needs.
3. **Critique**: Analyze the input package against the quality standards defined by `openspec-quality-plan` (mandatory "Code Hygiene & Quality Gates", phase-level hygiene gates, backwards compatibility, zero hard-coded configuration).
4. **Emit Findings**: Output a "Peer Review Findings" section explicitly listing the shortcomings and necessary improvements, ordered **confirmed premises → defects found in the tree → corrections that reshaped the design → refuted attacks**. **This section must appear before any rewritten files.**
5. **Rewrite**: Rewrite the entire OpenSpec package incorporating the improvements, ensuring it fully meets every quality standard.

## 3. Output contract (postconditions — what "done" means)

- A "Peer Review Findings" section appears *first*, in the pass-derived order above, with
  the reviewed tree's SHA and a verdict + evidence per falsifiable claim.
- A rewritten OpenSpec package follows the findings.
- The rewritten package strictly satisfies the `openspec-quality-plan` standards.
- Refuted attacks from pass 2 remain in the findings (marked refuted), not silently dropped.

## 4. Failure handling

- If the input is not a recognizable plan, ask for a valid OpenSpec package.

## 5. Validation gate (before declaring success)

**Subjective skill validation:**
There is no honest scripted gate for the quality of a peer review.
- Run **structural only** (`python scripts/validate_skill.py --skill . --tier structural`) to keep the metadata/triggering honest.
- Self-check against explicit, concrete criteria:
  1. **Findings Ordered First**: The "Peer Review Findings" section is the first element of the output.
  2. **Standards Met**: The rewritten package includes the "Code Hygiene & Quality Gates" and phase-level hygiene gates.
  3. **Claims Pinned**: Pass 1 names the tree SHA it re-derived against, and every falsifiable claim carries a CONFIRMED / CORRECTED / REFUTED verdict with evidence.
  4. **Refuted Attacks Kept**: Pass 2's rejected attacks appear in the findings, marked refuted.

## 6. Examples

See `references/research-application.md` for concrete examples, and
`references/two-pass-protocol.md` for two full worked reviews from this repository.

From ianshank/Agents, Apache-2.0.

More from ianshank/Agents

Signals

Stars
1
Forks
0
Open issues
113
Last commit (this folder)
Aug 18, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ianshank

Cite this page

openspec-peer-review skill. Agent Mart. https://agentmart.dev/skills/ianshank-openspec-peer-review (last updated 2026-10-24)