By Dektora
DekSpec consumer plugin: slash-command wrappers for the dekspec CLI, schema-aware authoring agents (AE / ADR / IC / WS / Intent / IB / Mission), and audit/drift hooks. Assumes the dekspec library is pip-installed and content is vendored in the consumer repo.
Invoke the `archeology` skill to drive the brownfield spec-gap recovery workflow.
Invoke the `brownfield-ingest` skill to drive the brownfield-ingest workflow.
Run `dekspec check compile` — parse LOCKED DekSpec artifacts and emit the typed IR JSON for downstream audit/enforcement.
Run the DekSpec health check in two stages.
Invoke the `exec-coding-session` skill to orchestrate a parallel
Author a DekSpec Architecture Decision Record (ADR) — a Layer-1 artifact capturing one architectural decision, its context, alternatives considered, and consequences. Use when a load-bearing technical choice needs to be recorded (chose X over Y, accepted constraint Z, retired pattern W). Delegates to the vendored template under dekspec/templates/adr-template.md and validates with `dekspec validate`.
Author a DekSpec Architecture Element (AE) — a Layer-1 (system-vision) artifact describing a coherent architectural slice (system, subsystem, container, component, pipeline, data model, cross-cutting concern, platform concern, interface surface, or workflow/process). Use when the user wants to capture a system-level component or boundary before writing working specs. Delegates to the vendored template under dekspec/templates/architecture-element-template.md and validates the result with `dekspec validate`.
Orchestrate a parallel coding session — discover/claim unblocked beads, dispatch them to fresh-context sub-agents in isolated worktrees, collect and merge results, land the plane, and check for newly unblocked work. Use this subagent whenever executor dispatch is requested (`/exec-coding-session` or the `/dekspec-run-session` command delegate their orchestration body here). Being invoked as a subagent IS the fresh-context guarantee: dispatch never runs anchored on the operator's possibly-stale session. Per ADR-024 + MSN-016 (no-factory in-process-only execution model), the only execution surface is the in-process worktree sub-agent dispatcher. The `dekfactory` executor option referenced in earlier prose was retired with the executor abstraction.
Author a DekSpec Implementation Brief (IB) — a Layer-3 artifact translating a Working Spec into a concrete implementation plan (files, sequencing, test plan, rollout). Use when a WS is stable and ready to be implemented. Delegates to the vendored template under dekspec/templates/implementation-brief-template.md and validates with `dekspec validate`.
Author a DekSpec Interface Contract (IC) — a Layer-2 artifact pinning a programmatic boundary (API surface, message schema, function signature, cross-container call). Use when a contract between two components needs to be locked before either implementation lands. Delegates to the vendored template under dekspec/templates/interface-contract-template.md and validates with `dekspec validate`.
Walk an engineer from an orphaned code surface back to a ratifiable Intent.
Drive the end-to-end brownfield-ingest workflow: run `dekspec dev ingest` on an
Orchestrate a parallel coding session across multiple beads.
> **Vendored asset paths (INT-097):** Paths below like `dekspec/...` reference the consumer-vendored layout. Pip-only installs resolve via `dekspec resource ...`. See [`_lib/vendored_assets.md`](../_lib/vendored_assets.md).
> **Scope of this skill.** A guided, interactive lifecycle walker for an Intent (`INT-NNN`). The skill drives transitions from `TODO`/`DRAFT` all the way to `LOCKED` one step at a time, asking the engineer to confirm each transition (`[accept]` / `[decompose]` / `[lock]` / etc.). Along the way it coordinates the creation and status updates of all downstream spec artifacts (Architecture Elements, Working Specs, Interface Contracts, Implementation Briefs), generates scannable "What & Why" summary cards, hosts architectural interviews, and propagates final locks. **Engineer-in-the-loop by default.** An opt-in `--auto` flag walks the same lifecycle without per-step prompts, refusing on the first unmet pre-condition; see [Auto Mode](#auto-mode---auto) below and [ADR-021](../../../../dekspec/adrs/ADR-021-orchestrate-intent-auto-safety-contract.md) for the safety contract.
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A spec-driven-development framework for AI-augmented engineering. Turns the markdown artifacts your team already writes — ADRs, Architecture Elements, Working Specs, Interface Contracts, Implementation Briefs, Intents, Missions, Domain Glossary, System Vision — into a typed, validated spec graph that compiles into enforcement artifacts (contract tests, CI gates, AGENTS.md context).
DekSpec is shipped as a Python library + CLI + Claude Code skills + markdown templates, vendored into consumer repos via a single install script. The current version is v0.109.0.
| Path | Contents |
|---|---|
tooling/dekspec/ | Python package: Constraint Compiler (parsers + 9 IR schemas + emitters), fidelity audit (~30 audit rules), persistence layer (SQLite-indexed run history), and the dekspec CLI. |
tooling/dekspec/schemas/ | JSON Schema Draft 2020-12 definitions (YAML) for each artifact type. Shipped as package data; loadable via importlib.resources. |
plugins/dekspec/skills/ | Claude Code skills (authoring + orchestration): /write-ae, /write-adr, /write-ws, /write-ic, /write-ibs, /write-intent, /write-mission, /write-sv, /write-ggc, /write-sp, /write-evals, /write-tests, /write-beads, /exec-coding-session, /archeology, /brownfield-ingest, /orchestrate-intent, /using-dekspec. Ship through the Claude Code plugin marketplace at Dektora/dekspec. |
plugins/dekspec/commands/ | Slash-command wrappers + CLI mirrors: /doctor, /compile, /validate-artifact, /migrate, /upgrade, /graph-export (CLI verb mirrors); plus Skill-wrapper pairs for /archeology, /brownfield-ingest, /exec-coding-session, /orchestrate-intent, /using-dekspec. |
templates/ | Artifact templates (ADR, AE, WS, IC, IB, Intent, Mission, Vision Note, plus a checklists subdirectory). |
docs/ | Methodology docs: dekspec-operating-guide.md, dekspec-quick-reference.md, architecture-frameworks-reference.md, plus the framework's own architecture.md. |
.beads/ | Project's own bead tracker (br CLI; SQLite + JSONL). |
Each artifact type has a typed schema + lossy markdown parser + cross-artifact resolution. The parser is deliberately permissive — missing fields surface as parse_warnings rather than raising. Schema validation catches the genuinely-malformed.
| ID prefix | Artifact | Layer | Purpose |
|---|---|---|---|
ADR-NNN | Architecture Decision Record | L1 | Decisions that shape one or more AEs |
AE-NNN | Architecture Element | L1 | The system's architectural slices (with subtype: System / Subsystem / Container / Component / Pipeline / Data Model / Cross-Cutting Concern / Platform Concern / Interface Surface / Workflow / Process) |
WS-NNN | Working Spec | L2 | Behavioral contract: business rules + failure behaviors + interface contracts |
IC-NNN | Interface Contract | L2 | Provider/Consumer API contracts with parties + capabilities + error semantics |
IB-NNN | Implementation Brief | L3 | Per-task implementation contract: files-to-modify scope + done-when criteria, references its parent WS + source AEs |
INT-NNN | Intent | (cross-layer) | Captured engineer intent — what change is being made and why, with components_affected (diff-confinement globs) + verification predicate (TESTPASS gate) |
MSN-NNN | Mission | (cross-Intent) | Long-horizon container: outcome, mission verification, out-of-scope contract, flag strategy, rollback plan, kill criteria, Intent queue |
DOMAIN-GLOSSARY | Domain Glossary (singleton) | L0 | Canonical term definitions: term + category + canonical_definition + not_this + code_convention |
SYSTEM-VISION | System Vision (singleton) | L0 | One-paragraph elevator pitch + What this is + Why this exists + What success looks like + What we are NOT building |
dekspec --version
dekspec --help
npx claudepluginhub dektora/dekspec-public --plugin dekspecHarness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains