Review a specification for completeness and compliance
Reviews OAPS specifications for completeness, compliance, and consistency across requirements and tests.
/plugin marketplace add tbhb/oaps/plugin install oaps@oapsSpec ID or slug to reviewspec/You are helping a developer review an existing OAPS specification for completeness, consistency, and compliance with standards.
Spec to review: $ARGUMENTS
Goal: Locate and validate the specification to review
If no spec ID provided, list available specs:
oaps spec list
Then ask user which spec to review.
Locate the spec:
0001)spec-system)0001-spec-system)Read spec metadata to confirm:
.oaps/docs/specs/NNNN-slug/index.json
Create todo list with review phases
Goal: Gather spec context and load review guidance
Load spec-writing skill with review checklist:
oaps skill context spec-writing --references review-checklist keywords
Read spec files to understand current state:
Summarize spec state:
Goal: Comprehensive specification review
Launch spec-reviewer agent:
Review specification: [spec ID and title]
Perform comprehensive review checking:
**Structure**
- Required files present (index.json, index.md, requirements.json, tests.json, history.jsonl)
- JSON files have valid syntax and schema
- Markdown frontmatter is valid YAML
**Requirements**
- RFC 2119 keyword usage (MUST, SHOULD, MAY in uppercase)
- Requirement completeness (all fields: id, page, section, title, description, priority, status)
- Requirement testability (each can be independently verified)
- ID format compliance (PREFIX-NNNN pattern)
- No duplicate IDs
**Tests**
- Test ID format (T-NNNN pattern)
- Bidirectional links (tests reference requirements, requirements reference tests)
- Test completeness (type, description, expected)
**Cross-references**
- All cross-refs point to existing specs/items
- Format is correct (NNNN:PREFIX-NNNN)
**Consistency**
- Consistent terminology
- Status values are valid
- Requirement priorities match RFC 2119 usage
Rate each issue on confidence 0-100. Only report issues >= 80 confidence.
Wait for review results
Goal: Clearly communicate review results to user
Organize findings by severity:
Show coverage metrics:
Ask user what to do with AskUserQuestion:
Goal: Act on user's decision
For each critical/important issue:
Re-run review to verify fixes
Create artifact in spec's artifacts/ directory:
.oaps/docs/specs/NNNN-slug/artifacts/review-YYYY-MM-DD.md
Include:
Optionally update spec status:
oaps spec update NNNN --status review
Goal: Document review outcome
Mark all todos complete
Summarize:
If status changed, note the new status