/claude-harness:bootstrap-projectfrom claude-harness
Generates a harnessed repository from templates/project: documents, gate parameters, plugin declaration, CI caller and dependabot, then verifies the result against harness-invariants. Use when starting a new project, or when bringing an existing repository under the harness for the first time.
Ships in claude-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produces a repository that passes harness-invariants.yml on its first push.
Everything below comes from ~/ENV/projets/claude-harness/templates/; nothing is
improvised, because a skeleton improvised once becomes the skeleton forever.
Ask the user for anything not already obvious from the repository, and stop rather than guess. Every one of these lands in a file that later gates the build:
| Needed | Used by |
|---|---|
| Project name, one-line description | CLAUDE.md, README.md |
Stack: backend, frontend, harness or other | every gate skill and workflow |
Validation command | lot-test, the CI validate job |
Coverage tool, Coverage threshold, Coverage exclusions | lot-test, lot-audit |
Migrations directory (or n/a) | migrations-immutable.yml |
Frontend backend pair (or n/a) | integration-check |
Integration command (or n/a) | the autopilot's integration step, integration-check |
Health path, Image name (backend) | image-smoke.yml, image-publish.yml |
Dist forbidden pattern (frontend) | frontend-dist.yml |
| Language, framework, database, build tool | CLAUDE.md Stack table |
| The project's secrets and where they are read | CLAUDE.md, .env.example |
A parameter that genuinely does not apply is n/a. Never delete the row — a
missing row and an oversight look identical six months later, and
harness-invariants.yml fails on absence.
HARNESS=~/ENV/projets/claude-harness
cp -r "$HARNESS/templates/project/." .
mkdir -p .github/workflows docs/audits
cp "$HARNESS/templates/ci-caller.yml" .github/workflows/ci.yml
cp "$HARNESS/templates/dependabot.yml" .github/dependabot.yml
git -C "$HARNESS" fetch -q origin main
git -C "$HARNESS" show origin/main:CONVENTIONS.md > CONVENTIONS.md
CONVENTIONS.md is copied, never written. It is a byte-identical copy of the
harness master, and harness-invariants.yml compares the two on every build. The
same rule applies forever: to change a convention, edit the master and propagate.
It is read from main, not from the clone's working tree: harness-invariants.yml
compares against ref main (conventions_ref), so a clone sitting on develop or on
a lot branch would hand the new repository a copy that CI rejects on its first push.
If main does not carry CONVENTIONS.md yet, the harness has not been promoted —
stop and tell the user rather than copying the branch version.
On a frontend, delete Dockerfile and compose.ci.yml. On a backend,
delete the frontend-dist job from ci.yml.
Replace every {{PLACEHOLDER}} with the values from Step 0, in:
CLAUDE.md, README.md, lots.md, .env.example, .github/workflows/ci.yml,
and Dockerfile / compose.ci.yml when they are kept.
Then mirror, in the same change:
cp CLAUDE.md AGENTS.md
grep -rn '{{' . --include='*.md' --include='*.yml' --include='Dockerfile'
The grep must come back empty. A {{PLACEHOLDER}} left in ci.yml is a
workflow that fails on its first run; one left in CLAUDE.md is a gate parameter
the skills will read literally.
Keep only the package-ecosystem blocks the project actually has. A maven block
in a repository with no pom.xml produces a weekly error, and a weekly error
teaches the team to ignore dependabot.
github-actions is always kept: it keeps the pinned SHAs current.
git switch -c develop 2>/dev/null || git switch develop
git add -A
git commit -m "chore: bootstrap the project from the harness skeleton"
git push -u origin develop
main is production and develop is integration, from the first commit. If the
repository already has main and no develop, create develop from main and
say so — never fall back to working on main.
<Validation command> # from the Gate parameters just written
cmp CLAUDE.md AGENTS.md # silent
# Against main, not against the clone's working tree: comparing the copy to the
# file it was copied from is green by construction and proves nothing.
git -C ~/ENV/projets/claude-harness show origin/main:CONVENTIONS.md | cmp - CONVENTIONS.md
jq -e '.extraKnownMarketplaces["claude-harness"].source.ref == "main"' .claude/settings.json
The ref check is the one worth doing by hand. Without "ref": "main" the
project follows the harness default branch, develop, and every unpromoted
harness merge goes live here at the next session start.
Then push and read the first CI run. harness-invariants.yml green is the
acceptance criterion of this skill; anything it reports is a placeholder or a
deleted row, both fixed here rather than by loosening the workflow.
Register the repository in the harness projects.json (its projects list), in
a harness pull request to develop. Until it is listed, the sync-projects
workflow never refreshes its CONVENTIONS.md, and the first master change after
the bootstrap turns its harness-invariants red. Also give the harness sync token
access to the new repository (README, Making the harness consumable).
State: the files created, the gate parameters chosen (especially any n/a and
why), what was deleted for the stack, the harness pull request that registers it
in projects.json, and the CI run result. Then stop — writing
lot 0 is the user's call, not this skill's.
templates/, never retype. A skeleton that drifts from the templates
is a second skeleton.CONVENTIONS.md is copied from the harness master and never edited locally.n/a where it does not apply."ref": "main" in .claude/settings.json, and @main on every harness
workflow the caller uses.{{PLACEHOLDER}} survives the bootstrap.develop exists and is the working branch before any feature work starts.What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/dep-updateChecks and updates a project's dependencies, applying patch and minor bumps and proposing majors, then validating the build before commit. Use when the user asks for a dependency update, wants to know what is outdated, or before writing a lot PR./harness-syncDetects and fixes drift between a repository's harness documentation and the reality of its code, settings and lots. Use after editing CLAUDE.md or a skill, when the stack, conventions or lot scope evolved, after a lot, or when the user asks to refresh, check or improve the harness./i-have-adhdShape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with /i-have-adhd; stays on until "stop adhd mode".Other plugins' skills for the same job
npx claudepluginhub selimlbouraya/claude-harness --plugin claude-harness