You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opinionated Claude Code plugin for spec-driven development with OpenSpec. Provides AST search, GitHub code search, documentation lookup, codebase analysis, and spec review.
Prerequisites
Node.js 20.19.0+ (for repomix and context7 via npx)
Docker (for ast-grep MCP server)
context7 plugin installed separately (claude plugin install context7@claude-plugins-official or equivalent)
Installation
From GitHub (marketplace)
claude plugin marketplace add pmco23/claude-code-openspec-toolkit
claude plugin install openspec-toolkit@openspec-toolkit
From a local clone
git clone https://github.com/pmco23/claude-code-openspec-toolkit.git
claude plugin install ./claude-code-openspec-toolkit/plugins/openspec-toolkit
MCP Servers
Server
Purpose
Transport
gh_grep
Search public GitHub code
HTTP remote
ast-grep
Structural AST search
Docker stdio
repomix
Codebase export to XML
npx stdio
Context7 is expected as a separate plugin and is not bundled here.
Hooks (3)
Hook
Event
Purpose
pre-apply-guard
PreToolUse
Warns if /opsx:apply runs without config.yaml or with vague acceptance criteria
pre-archive-guard
PreToolUse
Warns if archiving without running a quality review first
session-context
SessionStart
Auto-detects active OpenSpec change and injects context into the session
Lighter alternative to post-apply (no security scan)
test-scaffold
Extract acceptance criteria from tasks.md, scaffold test files
Before implementing tasks during /opsx:apply for TDD
Usage
Load the pre-propose skill and map this codebase for OpenSpec
Load the post-apply skill and review the add-dark-mode change
Load the debug-investigate skill and debug this error: Cannot read properties of undefined
Load the spec-review skill and review the add-dark-mode change
Load the test-scaffold skill and scaffold tests for the add-dark-mode change
Workflow
See CLAUDE.md for the full workflow rules that get loaded into every session. See workflows.md for 13 end-to-end workflow recipes. Key flow:
Map the codebase: load the pre-propose skill (or run /repo-auth, /repo-routes, /repo-models manually)
Propose changes with OpenSpec: /opsx:propose
Scaffold tests: load the test-scaffold skill to generate test stubs from tasks.md
Implement: /opsx:apply (with TDD — make scaffolded tests pass)
Review: load the post-apply skill for go/no-go verdict
Archive: /opsx:archive
For debugging: load the debug-investigate skill with your error message.
Installation
See INSTALL.md for the full installation guide, including prerequisites, complementary plugins, and verification steps.