Make your AI coding agent plan, build, and review like a careful team.
Skills Code Kit installs instructions, a stage-gated workflow, safety guards, and QA into your project. Your agent then turns a request into a plan, a spec, an architecture you choose, tests, code, and a reviewed pull request, keeping a record of each step.
Quick start
Run the installer from the root of the project you want to improve. Nothing to clone, no account to create.
Install
Run npx skills-code-kit, pick Install everything or the groups you need, review the file list, and confirm.
Open your agent
The installer writes an AGENTS.md entry point. Claude Code, Codex, OpenCode, and Cursor read it at the start of each session.
Ask for something real
Describe the change in plain words, such as "add a refund button to the order page". The agent routes it to the right workflow.
Without questions (agents and CI)
Every question has a flag, and --yes takes the default for the rest:
npx skills-code-kit install --groups dev,review,tdd,harness --yes
npx skills-code-kit list # every group and what it also installs
npx skills-code-kit --help # every command and option
Without a terminal and without --yes, the installer stops with exit code 2 instead of waiting for an answer.
Single skills with npx skills
The 8 TDD pattern and 16 Clean Code chapters are also published on their own for skills.sh and any agent the skills command supports, along with a skills-code-kit skill that installs the whole kit. They copy skill folders only: the workflows, harness gate, hooks, and guards come with npx skills-code-kit.
npx skills add LuigiCleffi/Skills --list
npx skills add LuigiCleffi/Skills --skill tdd-green-bar-patterns
Choose your groups
Groups install what they depend on, so start from what you want to happen and let the installer add the rest.
| If you want… | Install |
|---|---|
| Better code and honest reviews, with little ceremony | --groups clean-code,dev,review,tdd |
| The whole spec-driven flow, from idea to reviewed pull request | --groups harness,uiux,bdd,ddd,code-review,pull-request |
| A product that still needs its architecture and stack chosen | --groups harness (it includes architecture) |
| A Scrum team of role agents: PO, PM, Tech Lead, Dev, DBA, DevOps | --groups scrum |
| Protection against destructive commands, leaked secrets, and pushes to protected branches | --groups guards,checks |
| Domain knowledge for your stack | Add javascript, modern-web, dba, data-systems, devops, llm, or marketing |
| Everything | --all |
How a feature flows
For a feature, the installed stages run in this order. Each one writes a short record that the next stage reads, so nothing depends on a long chat history. A stage that does not apply is skipped, and the record says why.
- Explore optionalAn idea that is not a request yet: the real problem, an honest objection, options, and a decision to go ahead, wait, or drop it.
- PlanGoals, users, scope, and success criteria, with zero open questions. Technology-agnostic: no stack is chosen here.
- Research when the domain is regulated or unfamiliarCited research into laws, standards, and practice, proposing business rules for you to confirm.
- Specification and checklistTestable requirements and acceptance criteria, cut into slices that ship apart, then checked for readiness.
- Strategy customer-facingIs this the right bet for the right customer? Positioning, first release, and a metric.
- Architecture new in 1.9Suggested code and infrastructure architectures, then technologies, then the engineering conversation. You decide every choice. More below.
- Domain model domain concepts or rulesBounded context, ubiquitous language, aggregates, and invariants.
- ScenariosConcrete examples and executable Gherkin scenarios: the outer test loop.
- UI/UX user-facing surfaceFlows, screens in every state, accessibility, copy, and UI acceptance checks.
- Knowledge and ADR gatesRead the business rules and architecture decisions that govern the change, and only those.
- Build with TDDSmall tasks, each with the command that proves it; tests first, scenarios as the outer loop.
- Review and QAReview the whole diff, then run every acceptance criterion and edge case for real, with evidence.
- Code review, pull request, finishA fresh-session review of the committed diff, a pull request a person reviews in minutes, and cleanup after the merge.
Pipeline guide: what comes next
You do not need the Scrum team to follow the flow. Run the stages yourself with the /kit-* commands, or let the harness run them all. Pick the kind of change, then click the stage you just finished: the guide shows what that stage leaves behind, how you know it is done, and exactly what to type next.
- Start it with
or in plain words:- It leaves behind
- It is done when
- Type this next
or in plain words:- Why it comes next
Automate the whole run
To have the agent walk the pipeline for you, install harness and type /kit-run add a refund button to the order page, or ask in plain words: "Run the harness for: add a refund button to the order page." It classifies the change as a feature, fix, or chore, runs only the stages that kind needs, stops whenever a question is yours to answer, and records each stage in docs/harness/. At any point, type /kit-next, ask "Where are we in the pipeline?", or run node harness/gate.mjs status to see what is done and what is next.
The /kit-* commands
For Claude Code and OpenCode, the installer adds one slash command per installed stage. Each runs its stage and ends by telling you the next command to type, so after /kit-plan you are told to run /kit-research when the domain needs it, or else /kit-spec.
| Command | What it does |
|---|---|
/kit-next | Says where the work stands and what to type next. Only reads. |
/kit-run | Runs the whole pipeline through the harness, stopping at your questions. |
/kit-explore · /kit-plan · /kit-research · /kit-spec | From an idea to a checked specification. |
/kit-strategy · /kit-architecture · /kit-domain · /kit-scenarios · /kit-uiux | Design before code; each runs only when it applies. |
/kit-build · /kit-review · /kit-qa · /kit-code-review | Build test first, then review and prove it. |
/kit-pr · /kit-finish | Open the pull request, then clean up after the merge. |
Only the stages you installed get a command. Pass --commands claude,opencode to choose the tools, or --commands none to leave them out. With the MCP server, the workflows are also prompts, such as /mcp__skills-code-kit__architecture in Claude Code.
Want roles and sprints instead? Install scrum and the PO, PM, and Tech Lead run these same stages for you, ceremony by ceremony. A single fix or small feature never opens a sprint.
Architecture, decided by you
Left alone, an agent picks the stack and structure it knows best. The architecture stage makes the choices explicit and leaves each one to the engineer running the kit. The plan and spec stay technology-agnostic. If you require a technology ("must run on our Azure tenant"), it is recorded as a constraint with its reason.
Drivers
Users and load, latency, availability, data, integrations, clients, compliance, team, budget, and deadline, all in product terms.
Shapes
Two or three code and infrastructure architectures, with no technology named yet: modular monolith or services, hexagonal or vertical slices, gateway or BFF, serverless or containers.
Technologies
Only now, per slot: React, Angular, Vue, Svelte, or none; TypeScript; Spring Boot, .NET, NestJS, Hono, Fastify, Go, or Python; datastores, cloud, and infrastructure as code.
Engineering conversation
Folder layout, how modules talk, REST, GraphQL, tRPC, or gRPC, component structure such as atomic design, state, debug mode, observability, testing layout, and environments.
Each step comes with a recommendation, the alternatives, and the trade-off for your product. Each decision you confirm becomes an architecture decision record (ADR) that later sessions must follow, and the whole is written to docs/architecture/Architecture.md. On a later feature that decides nothing new, the stage is skipped, naming the ADRs that cover it.
Try it: "The plan is done; help me choose the architecture and stack: monolith or microservices, React or Angular, Spring Boot or NestJS."
The harness: depth that follows risk
The harness (actions/harness.md) runs the stages in order and keeps a run record in docs/harness/. It first classifies the request:
| Mode | When | Stages before code |
|---|---|---|
| Feature | New or changed behavior someone will notice | Plan, research, spec, checklist, strategy, architecture, scenarios, UI/UX, knowledge and ADR gates |
| Fix | Behavior is wrong against an existing spec, rule, or contract | Reproduce with a failing test, knowledge and ADR gates |
| Chore | No behavior change: dependencies, build, refactoring under green tests | ADR gate |
Triggers add depth. When a change touches a schema, permissions, a public contract, concurrency, a new entity, or several modules, the run adds the domain model and a task list. A one-line copy change stays light.
The gate. harness/gate.mjs runs as a Claude Code hook before each edit, and from the command line for any tool or CI. While pre-code stages are pending, editing production code or tests gets a warning by default, or is refused if your team chooses "enforce": "block".
node harness/gate.mjs status # the active run and what is pending
node harness/gate.mjs validate spec <file> # check one stage's record
node harness/gate.mjs scope --base origin/main # modules touched that no record claims
What to type
You do not need to name workflows. Describe what you want, and the agent opens the one that fits. Some requests and where they go:
| You type | Opens |
|---|---|
| I have an idea: what if customers could pause their subscription instead of cancelling? | explore |
| Add a refund button to the order page | harness |
| What does the law say about consumer refund windows in Brazil before we spec this? | research |
| Turn this feature request into a specification with acceptance criteria | spec-definition |
| The plan is done; help me choose the architecture and stack | architecture |
| We decided to use Postgres row-level security for tenants; record that decision | adr |
| Model the aggregates and invariants for enrollment before we write code | ddd |
| Decide the screens, states, and accessibility for the new onboarding flow | uiux |
| The discount is applied twice in the cart; write a failing test first | tdd |
| Run every acceptance criterion of the refund feature and give me the evidence | qa |
| Review the diff from main to HEAD against our standards and the spec | code-review |
| https://dev.azure.com/contoso/Shop/_git/web/pullrequest/120 has conflicts with main, fix them | rebase |
| Run sprint planning for the next three backlog items | scrum |
Get the most out of it
Answer the questions; that is the point
The plan, spec, and architecture stages stop until every material question is answered. Answer them, or explicitly accept a working assumption. A record that says Open Questions: None. is what lets later stages build without guessing.
Let the records be the handoff
Start the build and the code review from a fresh or compacted session (/compact or a new session in Claude Code). The records carry what was decided, so the agent does not reread the whole planning conversation for every line of code.
Spend effort where it decides
Planning, specification, architecture, domain modeling, and both reviews need the strongest model and high effort. The checklist, scenarios, implementation, and QA follow what the records decided, so a faster model is usually enough. A reviewer should never run on a weaker model than the author.
Keep decisions in one place
Business rules go in the knowledge base (docs/knowledge/) and architecture decisions in ADRs (docs/adr/). Each has a gate, a README that routes the agent to the few records a task needs, so it follows earlier decisions instead of re-making them.
Turn repeated mistakes into rules
The generated AGENTS.md starts an empty Project Rules table. When a review catches the same mistake twice, add a row with an ID, where it applies, and what enforces it. Docs then link to the ID instead of restating the rule.
Tune the harness to your repository
Edit harness/config.json to set which paths are guarded, which triggers apply, and how each record is checked. Start in warn. Switch to block only when the team agrees, because a gate that blocks recoverable mistakes tends to get turned off.
Watch what loads before the first prompt
node tools/context-audit.mjs shows what each agent tool loads at session start, largest first, against a token budget. Keep AGENTS.md a routing table, not a manual.
The gate guards against skipping stages by accident. It is not a security boundary. For damage that cannot be undone, such as leaked secrets, destructive commands, or hand-edited migrations, install guards.
All instruction groups
The output of npx skills-code-kit list, by kind. Install any of them with --groups name,name.
| Group | What it does |
|---|---|
harness | Runs every stage in order with a run record, and a gate that warns (or blocks) when code is edited before the pre-code stages are settled. Also installs product, research, knowledge, adr, architecture, dev, tdd, review, qa, and context-audit. |
explore | Think an idea through before any plan: the real problem, an honest objection, options with their cost, and a decision. |
product | Planning and specification templates: a technology-agnostic plan, the spec, and its readiness checklist. |
research | Cited research into the domain's laws, standards, and practice before the spec, proposing rules for you to confirm. |
marketing | Strategy review of specs, plus the strategy, positioning, marketing, and persuasion library. |
architecture | Suggests code and infrastructure architectures, then technologies, then walks you through layout, communication, API style, components, debug mode, and conventions. You decide, and each decision becomes an ADR. |
adr | One ADR per architectural decision, plus the gate that routes each task to the ADRs that govern it. |
knowledge | Glossary, one file per business rule, and research notes, behind a gate every stage consults. |
ddd | Domain modeling, ubiquitous language, and the DDD pattern library. |
bdd | Examples, executable Gherkin scenarios, and the BDD pattern library. |
uiux | Design handoff between specs and dev, plus the UI/UX skill library. |
dev | Implementing features and fixing bugs, in TDD or direct mode. |
tdd | The testing workflow and the TDD test pattern library. |
review | Review standards and quality checks. |
qa | One scenario per acceptance criterion and per applicable edge case, each run for real with evidence. |
code-review | Two-axis review of a committed diff against your standards, the knowledge base, and the spec. |
pull-request | A pull request a person reviews in minutes: the template, a QA script comment, CI watched until green, and review comments triaged. |
pr-review | Helps you review someone else's pull request: a summary, what no check covered, each decision walked through, and a drafted review. |
rebase | From a pull request link on GitHub, GitLab, Azure DevOps, Bitbucket, or Gitea: brings the branch up to date with its target, resolves the conflicts, runs the checks, and pushes with a lease only on your OK. |
finish | After a merge: prove it landed, close the run, remove the worktree and merged branches, and keep the lessons. |
scrum | PO, PM, Tech Lead, Dev, DBA, and DevOps roles, the ceremonies, and a board in docs/scrum/. |
guards | A Claude Code hook that refuses reading or leaking secrets, writing protected files such as migrations, destructive shell commands, and commits to protected branches. |
checks | Runs the checks a commit's diff reaches and stamps the commit. A hook refuses to open a pull request from an unstamped commit. |
ui-review | Every screen a change touches, in each state, at four widths, after a reload, with an accessibility scan. |
design-rules | The product's interface rules with stable IDs, and the defects that must not come back. |
worktrees | Gives each git worktree its own ports and database name, so several agent sessions can run the app at once. |
context-audit | What each agent tool loads before the first prompt, largest first, against a token budget CI can enforce. |
cycle-metrics | Sprint numbers from git and GitHub: merged pull requests, time to merge, reviewless merges, CI failures, reverts, and escaped defects. |
kit-updates | At the start of a Claude Code session, says when a newer version is out, with the command that updates the same groups. |
help | A first-session guide, diagnosis of known problems, a one-step undo, and a read-only check of the machine. |
writing-style | A Claude Code output style: answer first, numbers instead of adjectives, and what is not done stated plainly. |
clean-code | Core principles, elegance, and code quality. |
javascript | Idiomatic JavaScript and TypeScript for the browser and Node.js. |
modern-web | Native HTML, CSS, and browser APIs before JavaScript and libraries, with a browser support policy and a legacy-pattern catalog. |
llm | Foundation-model apps, prompts, RAG, agents, evaluation, fine-tuning, LLM internals, and production ML systems. |
dba | SQL, schema design, security, tuning, and administration for Oracle and PostgreSQL. |
data-systems | Data models, storage, replication, partitioning, transactions, and batch and stream processing. |
devops | Delivery practices, infrastructure as code, CI/CD, monitoring, and AWS or Azure per platform. |
No group matches that search.
Optional MCP server
At the end of installation you can register the bundled MCP server with Claude Code, Cursor, OpenCode, or Codex. It runs with npx -y skills-code-kit@<version> mcp, pinned to the version you installed.
- Tools:
knowledge_gate,adr_gate,capture_rule, and the harness tools (harness_open_run,harness_set_stage,harness_status,harness_close_run, and more). The harness tools use your project's ownharness/gate.mjs, so they and the hook never disagree. - Prompts: one per installed workflow, so a client can start any workflow by name.
- Resources:
AGENTS.md, the knowledge and ADR gates, and the glossary.
Update and verify
npx skills-code-kit@latest # update to the newest version
npx skills-code-kit verify # what was edited, deleted, or is outdated since install
The installer records a checksum of every file it writes in .skills-code-kit/lock.json. On the next run, unchanged files are updated without asking. Files you edited are listed, and you choose whether to overwrite them. If your project already has a custom AGENTS.md, review that list carefully.
FAQ
Which AI tools does it work with?
Any tool that reads AGENTS.md, including Claude Code, Codex, OpenCode, and Cursor. The hooks (gate, guards, checks) are Claude Code hooks, and their scripts also run from the command line, a git hook, or CI. Any MCP client can use the optional server.
Does it send my code anywhere?
No. The installer copies Markdown and Node.js scripts into your project. The update notice only checks the npm registry for a newer version, and never downloads anything.
Is this too much process for a small change?
No. A fix or chore runs only a few stages, and a feature with no triggers skips the domain model and task list. Questions and documentation-only changes need no run at all.
Can I turn the gate off?
Yes. Set "enforce": "off" in harness/config.json, or HARNESS_GATE=off for one shell. The agent is told never to do this on its own.
The library examples are in Python or Java. Will my TypeScript project get Python code?
No. The installer detects your project's languages from its build files (TypeScript, JavaScript, Java, Kotlin, C#, Go, Python, Ruby, Rust, and more, per module in a monorepo) and lists them under Project Languages in AGENTS.md. The libraries keep each book's examples in the book's language, with the language named on every code block, and agents translate them into your language and its idioms instead of copying them. With nothing detected, the agent asks you, and the architecture stage records the choice.
Will it choose my framework for me?
No. The architecture stage recommends, explains the trade-offs, and records your choice. A recommendation nobody confirmed is not a decision.