This is the one linear path: brand-new to done, in five steps, with a "how do I know it worked?" checkpoint after each. Budget ~40 minutes total — most of it is the agent and the audit working, not you typing.
If a term here is unfamiliar ([inferred], Stability, slash command, …), it's
defined in one line in the Glossary. Keep it open in a tab.
You need:
- Node.js ≥ 18
The installer is zero-dependency (Node stdlib only). You also need a repo to point the kit at — your own, or the bundled sample (see "Try it risk-free" below).
Tip — try it risk-free first. Want to see the kit work without touching your own code? Run it against the bundled example and watch the plan, writing nothing:
git clone https://github.com/kunalsuri/ai-fication-kit.git cd ai-fication-kit node install.mjs shazam examples/legacy-calculator --dry-runThe legacy-calculator walkthrough takes you through the full before/after on that sample.
From the kit, point shazam at your repository:
node install.mjs shazam /path/to/your/repoThe first interactive run asks you to pick an analysis level — General
(quick profile, the default) or Indepth (adds code metrics, a dependency
graph, and architecture inference to ai/repo-indepth.json) — then asks 4–5
short questions (your familiarity with the code, a warning if you're on
main/master, and a chance to correct the detected stack), then stamps the
templates. Pass --yes to skip the prompts in CI. Every command and flag is
specified in CLI-REFERENCE.md.
✅ Checkpoint. Your repo now contains CLAUDE.md, AGENTS.md, and an ai/
folder. Confirm:
ls /path/to/your/repo/ai/guide # MODULE_MAP.md, ARCHITECTURE.md, …The closing message prints your next steps. Nothing here was written by a model yet — these are blank maps waiting to be filled. Stack misdetected? See FAQ.md → "orient detected the wrong stack".
Open the repo in Claude Code (or your agent of choice) and run:
/cold-start
It runs ~5 minutes, scanning the code and drafting MODULE_MAP.md, diagrams, and
candidate features. Every line it writes is tagged [inferred] — a guess, not
yet a fact.
Using GitHub Copilot or Google Antigravity instead? The kit installed native equivalents too — type
/cold-startin Copilot Chat or Antigravity's Agent Manager. Using Cursor or Codex? Paste the body of.claude/commands/cold-start.mdas a prompt — see FAQ.md.
✅ Checkpoint. ai/guide/MODULE_MAP.md now has real rows (one per directory),
each ending in [inferred]. If it still shows placeholder text, /cold-start
didn't finish — re-run it.
This is the human gate, and the whole method rests on it. Budget ~30 minutes.
Open ai/guide/MODULE_MAP.md and, row by row:
- Set Stability —
frozen/stable/ours/?(definitions in the Glossary; how to decide in the Audit Guide). - Flip
[inferred]→[verified](date) only on rows you confirmed first-hand — you opened the file, ran the command, or already know the module. "Sounds plausible" is not evidence. - Leave anything you're unsure about as
?— agents treat?asfrozen, so an unaudited row is safe by construction.
The full field guide, with worked examples and common mistakes, is AUDIT-GUIDE.md. Read it before you start auditing.
✅ Checkpoint. Every row has a Stability value; the rows you trust read
[verified] (YYYY-MM-DD); the top of the file has a "Last verified" date. Your
ai/ folder is now a human-approved knowledge-base.
Tip
Check your config and knowledge layer health. Once you are done auditing and before proceeding, you can run /review-agent-config in Claude Code to perform a quick diagnostic check on the structure and cross-file consistency of CLAUDE.md and AGENTS.md. You can also run /post-cold-start-verification to perform a semantic check of the drafted ai/ documents.
Two deterministic guards (no LLM) keep the map from quietly rotting:
node install.mjs verify /path/to/your/repo # do the docs still match the tree?
node install.mjs drift /path/to/your/repo # has the code outgrown the map?Add --strict to either to make it exit non-zero — drop that into CI so a stale
map fails the build.
✅ Checkpoint. verify reports missing 0 moved 0. If it flags a path, the
docs lie — fix the doc, not the code.
Now the payoff. Run:
/add-feature
The agent writes a spec, navigates using the verified maps, runs your tests, and
updates the knowledge layer — all without touching frozen code.
✅ Checkpoint. A new spec exists under ai/lab/specs/, tests pass, and the diff
stays inside the modules you marked ours/stable.
| You want to… | Read |
|---|---|
| Understand a term | GLOSSARY.md |
| Do the audit well | AUDIT-GUIDE.md |
| Look up any command or flag | CLI-REFERENCE.md |
| Understand why the method works | METHODOLOGY.md |
| Troubleshoot detection, monorepos, re-runs | FAQ.md |
| Use Copilot / Antigravity / Cursor / Codex instead | MULTI-TOOL-SETUP.md |
| See a full before/after on a sample repo | legacy-calculator |
| Understand the code of the kit itself | FUNCTIONALITY.md |