Skip to content
zeeshare.com

writing / FDE and agents

How Claude Code works

How Claude Code worksPart 11

Your setup as a kit

On this page
  1. From one project to every project
  2. Two kinds of contents
  3. From an empty repo to the first ticket
  4. Building the kit, step by step
  5. When a kit is worth it
  6. Where this fits in the bigger picture
  7. Which one fits?
  8. Your setup so far
  9. Three rules of thumb

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.

Claude The kit Your project Phone lines Alarms and guards You

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/ · an invented example
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
Everything from Parts 3 to 10, in one folder you can version and install.

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.json with the permission lists, and the templates. A kit-init skill 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 in skills/, subagents in agents/, hooks in hooks/hooks.json, and servers in .mcp.json at the plugin root.
  • In hook commands, ${CLAUDE_PLUGIN_ROOT} is the plugin’s installed folder, so scripts are found wherever the kit lives.
  • /plugin lists 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

Install the kit add marketplace install twin-kit skills, agents, hooks on Set up the project /twin-kit:kit-init CLAUDE.md, settings, templates commit, review First ticket read ACME-170 write-spec, plan, build verify, handoff Starter files are copied into the repo, so the team can read and change them in review.
A new branch of a well-run shop opens with the same manual, the same tools and the same checks.

Building the kit, step by step

  1. 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. 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. 3 · Starter files go into the repo

    Permissions and CLAUDE.md belong to the project, so a skill copies them in, and you review them like any change.

    > /twin-kit:kit-init
  4. 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. 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

Make a kit when
  • 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.
Not yet when
  • 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

your setup so far · parts 1 to 11
  1. Part 1 · where it worksYou know which machine does what, and which folders Claude can reach.
  2. Part 2 · what it remembersOne task per notebook; photocopies in their own folder; helpers for noisy side jobs.
  3. Part 3 · how it behavesFridge rules for what is always true, recipe cards for procedures, alarms for musts, specialists for checks.
  4. Part 4 · what it can reachPhone lines to your tracker and tools, checked before trusted; your setup packed as one toolbox.
  5. Part 5 · what it may doKeys for routine work, a knock for anything that publishes, locked doors for secrets.
  6. Part 6 · how it stays sharpA clear desk: fresh sessions, focused summaries, helpers for big reads, rules only where they apply.
  7. Part 7 · what it builds fromA written spec with acceptance criteria, rules with IDs, and a plan agreed before code.
  8. Part 8 · how it avoids guessingContract first: generated types are the only truth, and a hook makes Claude state the facts.
  9. Part 9 · how it proves the workOne verify command, reviewers in parallel, and evidence before anything is called done.
  10. Part 10 · how it hands overA tracker, a changelog and decision records that keep the next session on the truth.
  11. Part 11 · how it travelsThe whole setup as one kit that installs into any repository.
  12. NextPart 12 · rolling it out

Three rules of thumb

Pack what is proven

A habit earns a place in the kit after it works in a real project, not before.

Rules live in the repo

The kit brings tools. Each repo owns its permissions and CLAUDE.md, reviewed in git.

Version it like code

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.

See services
Next in this seriesHow Claude Code worksRolling it out4 min read