A Claude Code plugin that combines systematic feature development (codebase exploration, architecture design, quality review) with OpenSpec artifact-driven documentation.
Instead of jumping straight into code, this plugin guides you through a 7-phase workflow where every decision, design, and task is captured in OpenSpec artifacts - making the work traceable, resumable, and reviewable.
| Phase | Goal | Produces |
|---|---|---|
| 1. Discovery | Understand what to build | OpenSpec change created |
| 2. Codebase Exploration | Understand existing code | Findings summary via code-explorer agents |
| 3. Clarifying Questions | Resolve all ambiguities | User answers |
| 4. Architecture & Artifacts | Design and document | proposal.md, design.md, tasks.md |
| 5. Implementation | Build the feature | Code changes, task checkboxes |
| 6. Quality Review | Verify quality | Review findings via code-reviewer agents |
| 7. Summary & Archive | Document completion | Summary, optional archive |
- code-explorer - Traces execution paths, maps architecture layers, documents dependencies
- code-architect - Designs architectures with implementation blueprints, analyzes codebase patterns
- code-reviewer - Reviews for bugs, quality issues, and project convention adherence (confidence >= 80 threshold)
- Claude Code installed
- OpenSpec CLI installed and configured in your project
- OpenSpec skills installed in your project (these are managed by the openspec CLI)
First, add the repo as a marketplace source:
claude plugin marketplace add mbertani/opsx-feature-devThen install the plugin:
claude plugin install opsx-feature-dev# Full workflow with description
/opsx-feature-dev:feature-dev Add rate limiting to API endpoints
# Or start interactively
/opsx-feature-dev:feature-devThe command guides you through each phase, waiting for your input at key decision points (clarifying questions, architecture choice, implementation approval).
- New features touching multiple files
- Features requiring architectural decisions
- Complex integrations with existing code
- Features where requirements are unclear
- Single-line bug fixes
- Trivial, well-defined changes
- Urgent hotfixes
This plugin layers on top of the core openspec skills rather than bundling them. The openspec CLI manages its own skills (explore, propose, apply, archive) and generates them to match the CLI version. This plugin adds the feature-dev workflow that calls the openspec CLI directly and references the opsx skills by name.
The workflow creates an OpenSpec change in Phase 1 and uses openspec instructions to generate properly structured artifacts. The implementation phase works through tasks.md exactly like /opsx:apply. When done, you can archive with /opsx:archive.
This means you can:
- Pause mid-workflow and resume later with
/opsx:apply - Review artifacts independently of the workflow
- Archive completed work with full traceability
This plugin has two upstream dependencies that may change independently:
- OpenSpec CLI — the
openspeccommands and artifact structure - Official feature-dev plugin — the agent prompts (code-explorer, code-architect, code-reviewer)
The three agent files (code-explorer, code-architect, code-reviewer) are derived from Anthropic's feature-dev plugin. The UPSTREAM_VERSION file tracks which version they were last synced from.
When Anthropic updates the official plugin:
# 1. Pull the latest official plugin into your local cache
claude plugin update feature-dev
# 2. Compare your agents against the new version
./update-from-upstream.sh
# 3. If agent diffs are shown, apply them automatically
./update-from-upstream.sh --apply
# 4. Review and commit
git diff
git commit -am "Sync agents with upstream"
git pushThe script will:
- Show whether a new upstream version is available (hash comparison)
- Diff each agent file and the command file
- With
--apply: copy updated agents and update theUPSTREAM_VERSIONhash
The command file (feature-dev.md) will always differ from upstream because it includes the OpenSpec integration. The script flags this but won't overwrite it - review command diffs manually for workflow changes you may want to incorporate.
Run the compatibility check to verify the openspec CLI commands this plugin uses still work:
./check-compat.shThis compares your installed openspec CLI version against the version recorded in OPENSPEC_COMPAT and verifies all required CLI commands are available.
openspec new change "<name>"— creates a change directoryopenspec status --change "<name>" --json— reads artifact graph and schemaopenspec instructions <artifact-id> --change "<name>" --json— gets artifact templates/rulesopenspec instructions apply --change "<name>" --json— gets implementation contextopenspec list --json— lists active changes
If any of these change their JSON output shape or flags, the feature-dev.md command may need updating.
- Run
./check-compat.shto see if anything changed - If the script reports issues, check the openspec changelog
- Update
commands/feature-dev.mdif CLI flags or JSON output changed - Update
OPENSPEC_COMPATwith the new tested version
The openspec CLI provides these skills (managed separately):
/opsx:explore- Thinking partner for exploration/opsx:propose- Quick artifact generation without the full workflow/opsx:apply- Implement tasks from an existing change/opsx:archive- Archive completed changes
MIT