| name | spec-review |
| description | Multi-person spec review with line-by-line comments and resolution tracking |
| argument-hint | <feature-id e.g. F001> |
Spec Review โ Collaborative Specification Review
You are facilitating a structured review of a feature spec. Multiple reviewers (human or agent) can add line-by-line comments, and you track resolutions.
Parameter: $ARGUMENTS โ feature ID (e.g. F001)
Step 1: Load Spec
ls .harness/specs/ 2>/dev/null | grep "$FEATURE_ID"
Read the spec file .harness/specs/FXXX-*.md. If not found or status is not approved, inform user.
Step 2: Initialize Review
Create or read .harness/reviews/FXXX-review.md:
ls .harness/reviews/ 2>/dev/null | grep "$FEATURE_ID"
If review file doesn't exist, generate it:
---
feature: FXXX
status: in-review
reviewers: []
created: {ISO timestamp}
open_comments: 0
resolved_comments: 0
---
# Spec Review โ FXXX: {feature name}
## Review Status
- Total comments: 0
- Open: 0
- Resolved: 0
## Sections Under Review
{For each major section of the spec (User Story, each AC, each INV, Technical Constraints, Zero-Decision-Point), create a review anchor:}
### User Story
> {quoted content from spec}
---
### AC-1: {content}
> {quoted content from spec}
---
### AC-2: {content}
> {quoted content from spec}
---
{... for all ACs, INVs, and other sections}
Step 3: Collect Reviews
Ask user how they want to review:
- Self-review โ User reviews the spec themselves, adding comments interactively
- Agent review โ Launch reviewer sub-agents with different perspectives:
- Completeness reviewer: Are all edge cases covered? Missing ACs?
- Feasibility reviewer: Is this technically achievable within constraints?
- Consistency reviewer: Does this conflict with existing features or full-spec?
- Collaborative โ Both user and agent reviewers
For Agent Reviews
Launch up to 3 reviewer sub-agents in parallel:
Agent(subagent_type: "general-purpose", run_in_background: true,
prompt: "You are a COMPLETENESS REVIEWER for spec FXXX.
Read .harness/specs/FXXX-*.md
Read .harness/full-spec.md (if exists) for existing feature context.
For each AC and INV, ask:
1. Are boundary conditions covered?
2. Are error/failure scenarios defined?
3. Are there implicit assumptions not stated?
4. Could an implementer interpret this ambiguously?
Output your review as:
SECTION: {section name}
COMMENT: {your finding}
SEVERITY: critical|major|minor|suggestion")
For User Reviews
Present the spec section by section, asking for each:
"ๅฏนไบ AC-1๏ผไฝ ๆไปไนๆ่งๆ่กฅๅ
ๅ๏ผ๏ผ่พๅ
ฅ่ฏ่ฎบ๏ผๆ่ฏด'้่ฟ'่ทณ่ฟ๏ผ"
Step 4: Record Comments
Add comments to .harness/reviews/FXXX-review.md under the relevant section:
### AC-1: {content}
> {quoted content from spec}
**COMMENT** [{reviewer}] [{timestamp}] [severity: {critical|major|minor|suggestion}]
{comment content}
**STATUS**: open
**COMMENT** [{reviewer}] [{timestamp}] [severity: {minor}]
{another comment}
**STATUS**: open
Update the review frontmatter counters.
Step 5: Resolution
For each open comment, present to user and ask for resolution:
"่ฏๅฎกๆ่ง [{severity}]: {comment content}
ๅฆไฝๅค็๏ผ
- ๆฅๅ โ ไฟฎๆน spec
- ๆ็ป โ ่ฏดๆ็็ฑ
- ่ฎจ่ฎบ โ ้่ฆๆดๅคไฟกๆฏ"
Based on user's choice:
Accept
- Update the spec file with the change
- Update the comment status:
**STATUS**: resolved | **RESOLUTION**: Spec updated โ {what changed}
Reject
- Record the rejection reason:
**STATUS**: rejected | **REASON**: {user's reason}
Discuss
- Add discussion thread, ask follow-up questions
**STATUS**: discussing
**REPLY** [{user}] [{timestamp}]: {discussion content}
Step 6: Review Summary
After all comments are addressed, present summary:
๐ Spec Review Summary โ FXXX: {feature name}
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Total comments: N
โ
Resolved: N (spec updated)
โ Rejected: N (with reasons)
๐ฌ Discussing: N (need follow-up)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
If any critical or major comments are still open โ do NOT proceed.
If all critical/major resolved:
- Update review status to
completed
- Update spec status to
reviewed (if it was just approved, upgrade to reviewed)
Next Step โ Auto-Navigate
- Read the
flow field from the spec
- Display progress visualization with spec-review marked as โ
- Ask naturally: "Spec ่ฏๅฎกๅฎๆ๏ผ{N} ๆกๆ่งๅทฒๅค็ใไธไธๆญฅๆฏ {next phase}๏ผ{description}๏ผใๆฏๅฆ็ปง็ปญ๏ผ"
- If user confirms โ execute next phase's skill logic directly