wayfinder
MAmattpocock/skills337k4,978 new stars in the last 7 days
Adopt Blueprint into an existing brownfield codebase by surveying shipped behavior and generating plans, standards, commands, adapter choices, and visibility setup. Use for /adopt or requests to bootstrap Blueprint into an established app. Use onboard for a fresh scaffold.
Context reuse: Reuse any required file already loaded in project instructions or the current session. Read it again only if absent, changed, or exact current bytes or line references are needed.
First action: Before project inspection, preflight, or any other tool call,
publish running to blueprint/.state/run.json when blueprint/.state/
exists. From the project root, run the first helper that exists,
node .agents/skills/blueprint-doctor/scripts/run-state.mjs or
node .claude/skills/blueprint-doctor/scripts/run-state.mjs, with start --command <skill> --summary "<truthful summary>" --boundary <read-only|reviewed|local-only>. Use update at milestones, with --status blocked --resume <command> for a blocker, and finish --status ready|completed
at the end; --help lists every option and blueprint/workflow.md has the full
activity contract. A missing or failing helper is a warning, not a blocker.
Where this sits in the workflow:
existing codebase -> [adopt] -> project-plan + build-plan + coding-standards -> /overview -> normal loop
(already has code) (survey + (seeded from the real code; shipped (project- (/feature,
interview) features already checked off) overview.md) /implement, ...)
The standard onboarding assumes a freshly scaffolded, near-empty app: you write
the two plans from scratch and build forward. That doesn't fit a project that
already has thousands of lines of working code. /adopt is the brownfield
on-ramp: it reads what's already there, asks you only for what the code can't tell
it (the why and the roadmap), and produces the same input files the rest of
the workflow expects - so an existing project joins the loop without you
hand-writing everything.
It generates the inputs; it does not generate project-overview.md. That stays
/overview's job. /adopt ends by telling you to run /overview.
A description of what the project is, if the user offers one. Otherwise just the repository itself. No argument is required.
Look at blueprint/project-plan.md and blueprint/build-plan.md.
Never overwrite a filled-in plan without explicit confirmation. Never run a framework scaffolder (the blueprint is an overlay, never a generator).
Protect the project README:
README.md already looks like a real project README, leave it
alone.README.md is the copied Blueprint workflow doc (for example it
starts with # AI Coding Blueprint), report it as obsolete overlay content
and ask before replacing or removing it. Do not move it into blueprint/.Read the repo to establish the facts. Change nothing in this step. Establish:
package.json, requirements.txt, pyproject.toml, go.mod,
Gemfile, Cargo.toml, etc.). Note the package manager actually in use (lockfile).AGENTS.md and, per the testing opt-in switch, decide
whether a testing gate even applies..github/workflows/, or external CI. Preserve what already exists.Keep notes; you'll turn them into the files in Step 3.
The code reveals what and how, never why or what next. Ask the user a short set of questions (aim for three to five, not an interrogation) to fill the gaps:
If the user already gave intent up front, skip what they've answered. Don't ask what you can read from the code.
Write these, drawn from the survey (facts) and the interview (intent). Mark every
inference you're unsure of with a clear > TODO (confirm) so the user can correct
it rather than inherit a wrong guess.
blueprint/project-plan.md - the what & why, following the existing
worksheet structure (problem, users, features, data, tech, monetization, UI/UX).
The "features" and "tech" sections describe what already exists; the rest comes
from the interview.blueprint/build-plan.md - the ordered feature list as a checklist. Mark
shipped features - [x] (this is the brownfield difference: the build plan
reflects reality, so most of an existing app starts checked) and the roadmap
items from the interview as - [ ]. This makes /blueprint-status and /feature work
immediately - the next unchecked item is genuinely what's next.blueprint/context/coding-standards.md - rewrite the default to match the
project's actual conventions from Step 1, not the shipped Next.js/Prisma
defaults. Keep the Writing and Comments sections; replace the stack-specific ones
with what the code really does. Its Testing section must reflect the real testing
state (the opt-in switch is a test command in AGENTS.md).AGENTS.md Commands section - fill in the real dev / build / test / lint
commands you found, so the rest of the workflow (and the testing gate) uses the
project's actual scripts. Include Verify when a real combined command exists.
Remove the shipped <!-- blueprint:onboarding-required --> marker and the
For a standard Next.js project instruction when replacing the placeholder
commands. Status and doctor use that marker to report incomplete setup, so
leaving it sends the user to /onboard after adoption.CLAUDE.md title - if CLAUDE.md exists and still has the placeholder
# Project Name, replace it with the project name. Keep @AGENTS.md and any
other existing lines.Do not write project-overview.md; that's /overview's job, downstream of these.
Do not create or change Verify commands or GitHub workflows during adoption. Report any verification command or CI already present. When equivalent automatic pull-request checks are absent, mention the optional standalone setup:
Run /ci or $ci when you want automatic GitHub checks.
Explain that CI is not required to finish adoption. The /ci skill owns
project-specific Verify and GitHub workflow setup.
Ask how the Blueprint workflow files should be handled in git, unless the user already gave a preference:
Blueprint visibility?
1. Commit Blueprint workflow files
Portable. Best for teams and working across machines.
2. Keep Blueprint workflow files local
Adds .agents/, .claude/, blueprint/, and CLAUDE.md to .gitignore.
Keeps AGENTS.md public as the lightweight project agent guide.
Recommend option 1 by default. If the user chooses option 2:
Add this block to .gitignore, preserving existing entries:
# AI Blueprint local workflow files
.agents/
.claude/
blueprint/
CLAUDE.md
Keep AGENTS.md tracked. It remains the lightweight public project guide for
commands and conventions.
Make AGENTS.md public-safe: keep project description, commands, testing gate,
and coding conventions, but remove or avoid Blueprint workflow explanations,
hidden adapter paths, workflow-document pointers, and core skill lists that
would expose the local-only workflow.
Explain that local-only mode hides the workflow contents from the repo, but the
.gitignore names still reveal the ignored paths.
Explain that Blueprint state, specs, findings, and history will not travel with the repo; another machine needs the Blueprint reinstalled or restored locally.
Because adoption runs right after the Blueprint files were added to an
existing repository, they are more likely to already be staged or committed
than in a fresh install. If any of .agents/, .claude/, blueprint/, or
CLAUDE.md are already tracked, say .gitignore will not hide tracked files.
Ask before running
git rm --cached -r .agents .claude blueprint CLAUDE.md, and
only run it if the user explicitly approves. Never delete the local files.
Stop and show the user what you generated, calling out:
> TODO (confirm) you left,These files are the ones the user owns. Have them review and adjust, then tell
them to run /overview to distill the plans into project-overview.md and start
the normal loop.
coding-standards.md must match the code
that exists. A project using Zustand and REST routes should not be handed
standards about Server Actions and Prisma just because that's the default.AGENTS.md;
record only established usage or trust constraints and leave unknowns blank.> TODO (confirm). Silent guesses about purpose are the main failure mode.AGENTS.md public in local-only mode unless the user explicitly asks for
a more advanced setup.git rm --cached without a separate
explicit approval.Format the output to match the project's conventions in
blueprint/context/ai-interaction.md: concise, scannable markdown, with lists for
enumerations and tables for matrices rather than dense paragraphs.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days