Spec-first engineering discipline for Claude Code: lock a spec before coding, record an ADR for every significant decision, and maintain an append-only CLAUDE_LOG decision ledger.
A Claude Code plugin that installs a spec-first engineering discipline: decide before you build, and write down why.
It prevents the most common failure mode in AI-assisted engineering — jumping straight to code, accumulating undocumented decisions, and producing a system nobody can reason about later. The plugin front-loads the thinking and leaves a durable, auditable trail.
The skill enforces three artifacts, produced in a fixed order:
The ordering is the whole point: Spec lock → ADR per decision → CLAUDE_LOG throughout.
Add the marketplace, then install:
/plugin marketplace add havascxistanbul/adrtrail
/plugin install adrtrail@adrtrail
claude --plugin-dir ./adrtrail
Once installed, the skill triggers automatically when you start a feature, service, or refactor, or when you mention specs, ADRs, architecture decisions, or decision logs. You can also invoke it explicitly:
"Let's spec-first this. I want to build a notification service."
Claude will lock a spec with you before writing code, record an ADR for each significant decision, and keep a CLAUDE_LOG.md at your repo root.
<repo-root>/
├── CLAUDE_LOG.md # append-only session ledger
└── docs/
├── specs/
│ └── <feature>-spec.md
└── adr/
├── ADR-0001-<slug>.md
└── ADR-0002-<slug>.md
If your repo already has a docs convention, the skill follows yours instead of imposing this one.
| Path | Purpose |
|---|---|
commands/spec-first.md | /spec-first slash command to invoke the discipline |
skills/adrtrail/SKILL.md | The discipline and workflow |
skills/adrtrail/references/spec-template.md | Spec template |
skills/adrtrail/references/adr-template.md | ADR template |
skills/adrtrail/references/claude-log-format.md | CLAUDE_LOG format and rules |
skills/adrtrail/references/examples.md | Worked end-to-end example |
This plugin is pure documentation discipline. It contains no MCP servers, no hooks, no executable scripts, and makes no network calls. It only reads its own templates and writes Markdown files into your repository. Review the contents before installing — everything it can do is in the files listed above.
See PRIVACY.md (no data collected, no telemetry) and SECURITY.md (threat surface and reporting).
MIT — see LICENSE.
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.
npx claudepluginhub havascxistanbul/adrtrail --plugin adrtrailComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Complete developer toolkit for Claude Code