Guide · version 1.14.1

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.

npx skills-code-kit
Claude CodeCodexOpenCodeCursorAny MCP clientNode.js 20+

Quick start

Run the installer from the root of the project you want to improve. Nothing to clone, no account to create.

1

Install

Run npx skills-code-kit, pick Install everything or the groups you need, review the file list, and confirm.

2

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.

3

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 stackAdd 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.

  1. 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.
  2. PlanGoals, users, scope, and success criteria, with zero open questions. Technology-agnostic: no stack is chosen here.
  3. Research when the domain is regulated or unfamiliarCited research into laws, standards, and practice, proposing business rules for you to confirm.
  4. Specification and checklistTestable requirements and acceptance criteria, cut into slices that ship apart, then checked for readiness.
  5. Strategy customer-facingIs this the right bet for the right customer? Positioning, first release, and a metric.
  6. Architecture new in 1.9Suggested code and infrastructure architectures, then technologies, then the engineering conversation. You decide every choice. More below.
  7. Domain model domain concepts or rulesBounded context, ubiquitous language, aggregates, and invariants.
  8. ScenariosConcrete examples and executable Gherkin scenarios: the outer test loop.
  9. UI/UX user-facing surfaceFlows, screens in every state, accessibility, copy, and UI acceptance checks.
  10. Knowledge and ADR gatesRead the business rules and architecture decisions that govern the change, and only those.
  11. Build with TDDSmall tasks, each with the command that proves it; tests first, scenarios as the outer loop.
  12. Review and QAReview the whole diff, then run every acceptance criterion and edge case for real, with evidence.
  13. 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

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.

CommandWhat it does
/kit-nextSays where the work stands and what to type next. Only reads.
/kit-runRuns the whole pipeline through the harness, stopping at your questions.
/kit-explore · /kit-plan · /kit-research · /kit-specFrom an idea to a checked specification.
/kit-strategy · /kit-architecture · /kit-domain · /kit-scenarios · /kit-uiuxDesign before code; each runs only when it applies.
/kit-build · /kit-review · /kit-qa · /kit-code-reviewBuild test first, then review and prove it.
/kit-pr · /kit-finishOpen 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.

1

Drivers

Users and load, latency, availability, data, integrations, clients, compliance, team, budget, and deadline, all in product terms.

2

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.

3

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.

4

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:

ModeWhenStages before code
FeatureNew or changed behavior someone will noticePlan, research, spec, checklist, strategy, architecture, scenarios, UI/UX, knowledge and ADR gates
FixBehavior is wrong against an existing spec, rule, or contractReproduce with a failing test, knowledge and ADR gates
ChoreNo behavior change: dependencies, build, refactoring under green testsADR 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 typeOpens
I have an idea: what if customers could pause their subscription instead of cancelling?explore
Add a refund button to the order pageharness
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 criteriaspec-definition
The plan is done; help me choose the architecture and stackarchitecture
We decided to use Postgres row-level security for tenants; record that decisionadr
Model the aggregates and invariants for enrollment before we write codeddd
Decide the screens, states, and accessibility for the new onboarding flowuiux
The discount is applied twice in the cart; write a failing test firsttdd
Run every acceptance criterion of the refund feature and give me the evidenceqa
Review the diff from main to HEAD against our standards and the speccode-review
https://dev.azure.com/contoso/Shop/_git/web/pullrequest/120 has conflicts with main, fix themrebase
Run sprint planning for the next three backlog itemsscrum

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.

GroupWhat it does
harnessRuns 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.
exploreThink an idea through before any plan: the real problem, an honest objection, options with their cost, and a decision.
productPlanning and specification templates: a technology-agnostic plan, the spec, and its readiness checklist.
researchCited research into the domain's laws, standards, and practice before the spec, proposing rules for you to confirm.
marketingStrategy review of specs, plus the strategy, positioning, marketing, and persuasion library.
architectureSuggests 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.
adrOne ADR per architectural decision, plus the gate that routes each task to the ADRs that govern it.
knowledgeGlossary, one file per business rule, and research notes, behind a gate every stage consults.
dddDomain modeling, ubiquitous language, and the DDD pattern library.
bddExamples, executable Gherkin scenarios, and the BDD pattern library.
uiuxDesign handoff between specs and dev, plus the UI/UX skill library.
devImplementing features and fixing bugs, in TDD or direct mode.
tddThe testing workflow and the TDD test pattern library.
reviewReview standards and quality checks.
qaOne scenario per acceptance criterion and per applicable edge case, each run for real with evidence.
code-reviewTwo-axis review of a committed diff against your standards, the knowledge base, and the spec.
pull-requestA pull request a person reviews in minutes: the template, a QA script comment, CI watched until green, and review comments triaged.
pr-reviewHelps you review someone else's pull request: a summary, what no check covered, each decision walked through, and a drafted review.
rebaseFrom 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.
finishAfter a merge: prove it landed, close the run, remove the worktree and merged branches, and keep the lessons.
scrumPO, PM, Tech Lead, Dev, DBA, and DevOps roles, the ceremonies, and a board in docs/scrum/.
guardsA Claude Code hook that refuses reading or leaking secrets, writing protected files such as migrations, destructive shell commands, and commits to protected branches.
checksRuns the checks a commit's diff reaches and stamps the commit. A hook refuses to open a pull request from an unstamped commit.
ui-reviewEvery screen a change touches, in each state, at four widths, after a reload, with an accessibility scan.
design-rulesThe product's interface rules with stable IDs, and the defects that must not come back.
worktreesGives each git worktree its own ports and database name, so several agent sessions can run the app at once.
context-auditWhat each agent tool loads before the first prompt, largest first, against a token budget CI can enforce.
cycle-metricsSprint numbers from git and GitHub: merged pull requests, time to merge, reviewless merges, CI failures, reverts, and escaped defects.
kit-updatesAt the start of a Claude Code session, says when a newer version is out, with the command that updates the same groups.
helpA first-session guide, diagnosis of known problems, a one-step undo, and a read-only check of the machine.
writing-styleA Claude Code output style: answer first, numbers instead of adjectives, and what is not done stated plainly.
clean-codeCore principles, elegance, and code quality.
javascriptIdiomatic JavaScript and TypeScript for the browser and Node.js.
modern-webNative HTML, CSS, and browser APIs before JavaScript and libraries, with a browser support policy and a legacy-pattern catalog.
llmFoundation-model apps, prompts, RAG, agents, evaluation, fine-tuning, LLM internals, and production ML systems.
dbaSQL, schema design, security, tuning, and administration for Oracle and PostgreSQL.
data-systemsData models, storage, replication, partitioning, transactions, and batch and stream processing.
devopsDelivery practices, infrastructure as code, CI/CD, monitoring, and AWS or Azure per platform.

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 own harness/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.

Where is the source?

On GitHub, with the full reference in the README and releases on npm.