Repository navigation
Add exploration-mode, specification-driven-development directives and spec-reviewer skill - #1
Conversation
… spec-reviewer skill Three additions extracted from OpenSpec patterns, generalized for any project: - exploration-mode.md: Pre-implementation investigation stance (curious, grounded, visual, no code). Fills gap between codebase navigation (how to search) and task framing (how to scope). - specification-driven-development.md: Write specs before code, implement against specs, verify against specs. Five-phase loop: propose, design, specify, implement, verify. Complements TDD and type-driven development. - spec-reviewer.md: Skill for reviewing implementation against specs. Three-dimensional check: completeness, correctness, coherence. Natural pairing with existing test-reviewer skill.
Add exploration-mode, specification-driven-development, and spec-reviewer to all discovery surfaces: - README: updated counts and descriptions - AGENTS.md template: directive table + skills table - CLAUDE.md template: directive list - copilot-instructions template: directive list Agents discover directives through the templates — without these updates, the new files would be invisible.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request introduces two new workflow directives—Exploration Mode and Specification-Driven Development—along with a new Spec Reviewer skill. The README is expanded to document these additions, and directive references in AI agent instruction templates are updated accordingly. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e7a775ce4a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| | Small (single fn) | Yes | Skip | Brief | 1, 3-5 | | ||
| | Medium (feature) | Yes | Yes | Yes | 1-5 | | ||
| | Large (cross-cut) | Yes | Yes | Yes | 1-5 | | ||
| | Fix (bug) | Brief | Skip | Skip | 1, 4-5 | |
There was a problem hiding this comment.
Keep bug-fix flow consistent with spec-first rule
The Fix (bug) row says to run phases 1, 4-5, which skips phase 3 entirely (Specify) even though this same directive states “Do not implement before the specification is written” and forbids “Implementing before writing any specification.” This contradiction can cause agents to skip writing requirements for bug fixes and diverge from the contract the directive is meant to enforce. Please either include phase 3 for bug fixes or explicitly define the brief proposal as the required specification artifact.
Useful? React with 👍 / 👎.
Summary
Three new files extracted from OpenSpec patterns, generalized to be project- and tool-agnostic:
directives/exploration-mode.md— Pre-implementation investigation stance for thinking through problems before committing to an approach. Fills the gap between codebase navigation (how to search) and task framing (how to scope).directives/specification-driven-development.md— Write specs before code, implement against specs, verify after. Five-phase loop: propose → design → specify → implement → verify. Complements TDD (correctness) and type-driven (shapes) by operating at the "what and why" level.skills/spec-reviewer.md— Three-dimensional review of implementation against written specs: completeness, correctness, coherence. Natural pairing with existingtest-reviewer— one reviews tests, the other reviews implementation against specs.What Changed
directives/exploration-mode.mddirectives/specification-driven-development.mdskills/spec-reviewer.mdtemplates/AGENTS.mdtemplates/CLAUDE.mdtemplates/copilot-instructions.mdREADME.mdDesign Decisions
test-reviewerpatternHow Directives and Skills Differ
Summary by CodeRabbit