How Claude Code worksPart 11
Your setup as a kit
On this page
In short: When a shop opens a new branch, it does not reinvent the recipes. It gets the manual and the toolkit the first branch proved. Do the same with your Claude setup: pack the skills, reviewers, alarms and phone lines from this series into one plugin, copy the starter files each project owns, publish it in a marketplace, and give every new repository the same way of working in one install.
Part 10 made work carry across sessions. This part makes it carry across projects. The kit and the project here are invented examples.
From one project to every project
Think of it like this: The first branch worked out the hard way that the fridge must be checked at 6, and that new staff shadow for a week. The manual means the second branch knows from day one.
By now one project has everything: a spec skill, a contract rule, a type check alarm, a verify alarm, reviewers, a handoff routine and locked doors. Copying those by hand into the next repo works once. By the third, something gets missed. Part 4 showed that a plugin is a packed toolbox. Here is what goes in it.
twin-kit/
.claude-plugin/plugin.json name, version, description
skills/
write-spec/SKILL.md Part 7: spec with AC IDs
plan-from-spec/SKILL.md Part 7: plan and tasks that point back
handoff/SKILL.md Part 10: end-of-session note
adr/SKILL.md Part 10: one decision, one file
kit-init/SKILL.md copies the starter files below
agents/
spec-reviewer.md Part 9: checks every AC
security-reviewer.md Part 9: secrets, input, permissions
hooks/hooks.json Part 8 and 9: type check, verify on stop
.mcp.json Part 4: the tracker line
templates/
CLAUDE.md plan first, contract rule, session routine
settings.json Part 5: deny, ask, allow, plan mode
spec.md handoff.md adr.md
Two kinds of contents
Some things are tools: they work the same in any project and should update together. Others are house rules: each project needs its own copy that its team can change.
- In the plugin: skills, subagents, hooks and MCP servers. They load in every project that installs the kit. Skills are named after the kit, such as
/twin-kit:write-spec. - Copied into the repo:
CLAUDE.md,.claude/settings.jsonwith the permission lists, and the templates. Akit-initskill writes them, and you review them in a pull request.
Under the hood: plugin layout and paths
- The manifest is
.claude-plugin/plugin.json. Skills go inskills/, subagents inagents/, hooks inhooks/hooks.json, and servers in.mcp.jsonat the plugin root. - In hook commands,
${CLAUDE_PLUGIN_ROOT}is the plugin’s installed folder, so scripts are found wherever the kit lives. /pluginlists what is installed and lets you turn plugins on and off. Installing at project scope records it in the project’s settings so teammates are prompted to install it.- Plugin hooks run with your permissions on your machine. Read them before installing someone else’s kit.
From an empty repo to the first ticket
Building the kit, step by step
- 1 · The manifest
A name, a version and a line that says what it is for.
// twin-kit/.claude-plugin/plugin.json { "name": "twin-kit", "version": "1.0.0", "description": "Spec-first workflow: specs, contracts, verify, handoffs" } - 2 · The alarms travel with it
Hooks in the plugin run in every project that installs it.
${CLAUDE_PLUGIN_ROOT}points at the kit's own folder.// twin-kit/hooks/hooks.json { "hooks": { "PostToolUse": [{ "matcher": "Edit|Write", "hooks": [{ "type": "command", "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/typecheck.mjs" }] }], "Stop": [{ "hooks": [{ "type": "command", "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/verify.mjs" }] }] } } - 3 · Starter files go into the repo
Permissions and
CLAUDE.mdbelong to the project, so a skill copies them in, and you review them like any change.> /twin-kit:kit-init
- 4 · Publish it in a team marketplace
A git repository with a list of plugins. Pin a tag so everyone gets the same version (Part 4).
/plugin marketplace add your-team/claude-plugins#v1.0.0 /plugin install twin-kit@your-team-plugins
- 5 · Improve it like code
When a habit proves itself in one project, add it to the kit, bump the version, and every project can update.
When a kit is worth it
- The same setup has worked in two or more projects.
- New repos keep missing a rule or an alarm.
- Several people should work the same way.
- You have one project and are still changing things daily.
- Parts only make sense for one codebase. Keep those in that repo.
- Nobody has read what the hooks run. Read them first.
Where this fits in the bigger picture
Think of it like this: The manual is what turns one good shop into a chain that works the same way everywhere.
This is the point the series has been building to. Parts 1 to 10 each added a habit. The kit makes those habits portable: any repository, any teammate, the same spec-first loop, the same guards, the same proof of done. It works the way you work because you wrote every piece of it, and you can read and change every piece in review.
If you use Spec-Kit Plus from Part 7, the two fit together: its commands run the spec loop, and your kit adds the contract rule, the alarms, the reviewers and the handoffs around it.
Which one fits?
- Two of my repos need the same setup: A plugin kitSkills, agents, hooks and servers in one folder. Install it in each repo.
- Permissions and CLAUDE.md differ per repo: Templates, copied inAn init skill writes starter files. Each repo keeps and edits its own copy.
- The team should get updates: A pinned marketplaceA tag per release. Projects move to a new version on purpose, not by surprise.
- I found the kit online: Read before you installHooks and servers run as you. Read them, try at local scope, then share.
- I want the Spec-Kit Plus commands too: Use bothSpec-Kit Plus gives the spec loop; your kit adds your guards, reviewers and handoffs around it.
Your setup so far
- Part 1 · where it worksYou know which machine does what, and which folders Claude can reach.
- Part 2 · what it remembersOne task per notebook; photocopies in their own folder; helpers for noisy side jobs.
- Part 3 · how it behavesFridge rules for what is always true, recipe cards for procedures, alarms for musts, specialists for checks.
- Part 4 · what it can reachPhone lines to your tracker and tools, checked before trusted; your setup packed as one toolbox.
- Part 5 · what it may doKeys for routine work, a knock for anything that publishes, locked doors for secrets.
- Part 6 · how it stays sharpA clear desk: fresh sessions, focused summaries, helpers for big reads, rules only where they apply.
- Part 7 · what it builds fromA written spec with acceptance criteria, rules with IDs, and a plan agreed before code.
- Part 8 · how it avoids guessingContract first: generated types are the only truth, and a hook makes Claude state the facts.
- Part 9 · how it proves the workOne verify command, reviewers in parallel, and evidence before anything is called done.
- Part 10 · how it hands overA tracker, a changelog and decision records that keep the next session on the truth.
- Part 11 · how it travelsThe whole setup as one kit that installs into any repository.
- NextPart 12 · rolling it out
Three rules of thumb
A habit earns a place in the kit after it works in a real project, not before.
The kit brings tools. Each repo owns its permissions and CLAUDE.md, reviewed in git.
Tags, a changelog and pinned installs. A kit that changes silently breaks trust.
QuizYour kit should give every project the same deny list for secrets. Where should that list live?
Show the answer
Answer: In each repo’s .claude/settings.json, copied in by the init skill
Permissions belong to the project, where the team can see and review them. The kit’s job is to write a good starting copy; each repo then owns its own.
Words in this post:
- Kit: this series’ name for a plugin that holds a whole way of working.
- Plugin: a folder of skills, subagents, hooks and servers installed as one unit.
- Manifest:
plugin.json, the file that names and versions the plugin. - Marketplace: a list of plugins and where to get each one.
- Starter files: templates the kit copies into a repo, which the repo then owns.
Plugin details were checked against the Claude Code documentation on plugins in November 2026. These features change often, so the docs are the final word for your version.
Next, Part 12: Rolling it out takes the kit to a whole team, one week at a time.
Setting up Claude Code or AI agents for your team?
I help teams build this: agents, RAG search and Claude Code setups that hold up in production.
Series
How Claude Code works
- How Claude Code worksWhere Claude runs
- How Claude Code worksSessions and forks
- How Claude Code worksSkills, hooks and subagents
- How Claude Code worksMCP servers and plugins
- How Claude Code worksPermissions and safety
- How Claude Code worksContext and cost
- How Claude Code worksSpecs as the source of truth
- How Claude Code worksContract first
- How Claude Code worksVerify against the spec
- How Claude Code worksHandoffs and memory
- How Claude Code worksYour setup as a kityou are here
- How Claude Code worksRolling it out