/repertoire:project-initializerfrom repertoire
Bootstraps a repository for agent-driven development by creating init scripts, smoke checks, feature lists, progress files, and baseline commits. Use once before any feature work begins.
Ships in repertoire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Build the scaffolding that every later session depends on, and nothing else. The user is watching on purpose: every call you make here (what counts as working, which features exist, what's out of scope) is cheap to correct now and expensive after a dozen sessions have built on it. Show each decision before you commit it.
Hard gate: write no feature in this session. A scaffold that boots is not a feature. The first list item is. When the harness is committed, stop, even if the user asks you to "just do the first one". Point them at the ralph-loop skill, or a fresh session that reads the progress file first.
README.md, an issue, or the user. If none exists, ask for one before step 5; don't invent features.git init. Dirty tree: ask the user to commit or stash first. Don't commit their changes with yours.init.sh, the smoke check, a section of CLAUDE.md, feature_list.json, claude-progress.md, and one commit. Nothing under source directories except the smoke check if the project's e2e framework is where it belongs.The file names above are defaults. Step 1 may replace them with the project's own convention. Whatever you choose, step 4 writes the names into CLAUDE.md, so the session-handoff and ralph-loop skills find the files by reading CLAUDE.md, not by guessing.
Run git status --porcelain and git log --oneline -5. Then find, without changing anything:
package.json, pyproject.toml, Cargo.toml, go.mod, Makefile), lockfiles, and .tool-versions or similar.dev or start script, a Procfile, a docker-compose.yml, test and build targets. Wrap what exists rather than replacing it. Convention beats Anthropic's names.CLAUDE.md, AGENTS.md, feature list, or progress file. If any exists, read Failure handling, "Rerun", before touching it.Stop and ask when the stack is ambiguous (two manifests, no lockfile) or the repository is empty. An empty repository needs a scaffold, and the choice of framework is the user's.
Write init.sh (or the project's equivalent) so that it installs dependencies when they're missing, starts the app, and exits non-zero if the app doesn't come up. Make it safe to run twice: a second run must not reinstall from scratch or fail because a port is held by the first. Then run it twice.
init.sh blocks after the ready line. Run it in the background for step 3, and stop it (kill the process or use the project's stop command) for the broken run.Write one check that proves the sentence from step 1, end to end, the way a user would exercise it: request the route and assert on the body, run the CLI with a real input, or one test in the project's e2e framework if it has one. Default name smoke.sh beside init.sh; use the framework's location when there is one. It must exit non-zero on failure.
Run it twice:
Record both results verbatim for the report. If the check can't pass without writing feature code, the sentence in step 1 was a feature, not a baseline. Shrink it to what boots today.
Append a section to CLAUDE.md (create it if absent; never rewrite existing content) using ${CLAUDE_SKILL_DIR}/assets/claude-md-section.md as the shape. It lists, in order: install, build, test, start, smoke. Each line is the exact command, what passing looks like (the last line of output or the exit code), and roughly how long it takes. It also names the feature list and progress file by path.
Run the install, build, and test commands you found in step 1 and record the exit code and last line of each; anything you couldn't run goes under Unverified. Write only commands you ran in this session and saw pass. A wrong command is worse than none, because the next session trusts it and stops thinking. If a command exists but you couldn't run it (a missing credential, a service that isn't reachable), list it under Unverified instead of in CLAUDE.md.
If CLAUDE.md already has a commands section, correct it only where you observed it to be wrong, and say what you changed.
Read references/feature-list.md for the entry shape, the quality bar, and the ratchet rule, then write feature_list.json.
"passes": false. No exceptions, including behavior the scaffold already exhibits; if it isn't on the list, it isn't a feature.id as well as the fields in the reference; the checker below requires it.After writing the file, validate it (on a rerun with existing "passes": true entries, omit --initial):
node "${CLAUDE_SKILL_DIR}/scripts/check-feature-list.mjs" feature_list.json --initial
It prints {"valid": ..., "errors": [...]}. Exit 0: valid, every passes is false. Exit 1: invalid JSON or entries; fix each listed error and rerun. Exit 2: the file is missing or unreadable, or the arguments were wrong; check the path.
Stop and ask when the source yields fewer than three features or more than roughly forty. Fewer means the project may not need this harness; more means the scope needs cutting before a loop touches it.
Copy ${CLAUDE_SKILL_DIR}/assets/claude-progress.md and fill in the first entry: what this session set up, each check with its command and result, the decisions the user made in step 5 and the reasons, and the next step, which is the first list item. Mark every claim with the date it was verified. The file is append-only from here; say so in its header so no later session summarizes the failures away.
Stage only the files this skill wrote or changed. Run git status --porcelain and confirm nothing else is staged or modified. Commit with a message that says it's the harness baseline and names no feature. Let the project's pre-commit hooks run; if one fails, fix the cause once; if it fails again, leave the tree uncommitted and report it under Failed. Never bypass a hook.
On a rerun, before committing, check the ratchet against the last commit:
git show HEAD:feature_list.json > "<scratchpad>/feature_list.old.json"
node "${CLAUDE_SKILL_DIR}/scripts/check-feature-list.mjs" diff "<scratchpad>/feature_list.old.json" feature_list.json
Exit 0: nothing but passes changed. Exit 1: an entry was reworded, removed, or added; undo it, and add new entries only at the end with the user's approval (then validate again). Exit 2: a file is unreadable.
Then confirm git status --porcelain is empty and git log -1 shows your commit. Stop here.
All of the following are observable:
init.sh runs to a started app, twice in a row.CLAUDE.md lists install, build, test, start, and smoke, each run in this session and each with what passing looks like.check-feature-list.mjs feature_list.json --initial exits 0, and the user has seen and corrected the list.claude-progress.md has one dated entry ending in a next step.git status shows exactly what to resume from. On resume, rerun steps 2 and 3 before trusting their files.init.sh and the smoke check and fix them only if they fail. Never delete or rewrite an entry in feature_list.json, and never reset "passes": true to false; add missing entries at the end and report them. Never truncate claude-progress.md; append a new entry. Commit only if something changed, and report "skipped" for everything that was already right.End with this shape, and nothing after it:
Completed: <each file written or changed, one line each, with the commit hash>
Checks:
$ <command>
(exit <code>)
<last relevant lines, verbatim>
...
Failed: <what didn't work and the error; or "none">
Skipped: <what already existed and was left alone, or what the user cut; or "none">
Unverified: <commands listed nowhere because you couldn't run them, with why; or "none">
Suggested: <hook or diff check to enforce the ratchet rule, or "none">
Next: run the first item in feature_list.json in a fresh session, or start the ralph-loop skill.
Keep observed results (you ran it) apart from inference (it should work), and label them.
What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/agentic-coding-patternsRoutes a recurring failure with coding agents, or a task about to start, to one of fifteen patterns, checks the pattern's reasons not to use it, and names the repertoire component or mechanism that implements it. Use when an agent claims done too early, a plan went wrong late, a session repeats a past dead end, or an unattended run must be made safe. Not for executing a pattern, debugging one bug (debugging-protocol), writing a plan or spec (plan-writer, interview-to-spec), or authoring a component (skill-builder)./browser-checkChecks the agent's own UI work in a real browser by starting the app locally, writing short Playwright scripts that look before they act, reading the console, and fixing what it finds in the same session. Use after changing anything a user sees in a web app, before calling the change done. Not for writing the permanent end-to-end suite, reviewing visual design, browsing external sites, or checking a deployed environment unless the user names one, or proving non-UI work before completion (repertoire:verification-gate)./commit-and-pr-authorTurns a session's changes into a reviewable history. Splits unrelated changes into separate commits, writes each message to the repository's commit convention (discovered first) with the why taken from the conversation, and fills a pull request description with the problem, approach, rejected alternatives, the verification commands actually run with their output, and where to review first. Use when work is ready to commit or a pull request needs writing. Never pushes or opens the pull request unless asked. Not for reviewing the change (/repertoire:review-change), not for fixing CI or review comments on an open pull request (pr-shepherd, taking-review-feedback), and not for merging./consult-codexGets a second opinion from OpenAI Codex by running one read-only, ephemeral `codex exec` and verifying its claims against the source before reporting them. Use when a question benefits from a model with different blind spots, such as risky logic before a merge, a same-model review that keeps approving, or the user asking what Codex thinks. Not for same-model review (/repertoire:review-change, repertoire:stickler), letting Codex edit anything, or calling Claude Code from Codex./debugging-protocolStops the agent from guessing at fixes. Before any fix for a bug, failing test, or unexpected behavior, it reproduces, compares with working code, tests one hypothesis at a time, then fixes from a failing test, asking repertoire:advisor after two failed fixes. Use the moment a fix is about to be proposed, even an obvious one. Not for building new behavior (test-first-loop), for proving finished work before calling it done (verification-gate), or for a bug in unfamiliar code with many suspects, which /repertoire:localize-fault investigates in parallel./delegation-briefMakes the main agent write a full brief before every Agent or Workflow call: the bounded assignment, inputs and revision, owned paths, allowed actions, what is withheld by role, the output shape with permission to return nothing, and the stopping condition; one brief per independent problem when fanning out. Use at the moment of delegation; preload it in repertoire:orchestrator. Not for changing a worker's definition (/repertoire:optimize-component), judging the result (repertoire:referee), or a task smaller than its brief.npx claudepluginhub stevekinney/repertoire --plugin repertoireOther plugins' skills for the same job