/farmisen-skills:bootstrap-projectfrom farmisen-skills
Bootstrap a project's coding-agent configuration — AGENTS.md (canonical), a CLAUDE.md shim, and optional .mcp.json / .codex config — by interviewing the user about the project's perimeter (purpose, stack, tracker, commands, git etiquette), then rendering from the bundled templates. Use for a new project ("set up agents config", "bootstrap this repo"), for migrating an existing AGENTS.md/CLAUDE.md, or in refresh mode ("refresh agents config", "update AGENTS.md") to repair drift between the config and the repo.
Ships in farmisen-skills. 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.
Read when SKILL.md points to them.
Produce a small, correct agent configuration for the current repository. AGENTS.md is the canonical instruction file (read natively by Codex and 25+ tools); CLAUDE.md is a one-line import shim plus Claude-only deltas. Never generate a bloated config: every line must pass the test "would removing this cause the agent to make a mistake?"
Inspect the repo first so the interview only covers what can't be inferred:
AGENTS.md, CLAUDE.md, CLAUDE.local.md, .claude/, .codex/,
.mcp.json. If AGENTS.md or CLAUDE.md already exists, this run is a migration
(see Migration mode below). Never silently overwrite.package.json (+ package manager from lockfile), Cargo.toml,
mix.exs, pyproject.toml, go.mod, CMakeLists.txt, Makefile, *.ino,
platformio.ini, *.uproject, ProjectSettings/ (Unity), *.kicad_pro, *.scad.package.json, Make targets, mix aliases, cargo
defaults — collect the likely build / test / lint / format commands to confirm rather
than ask cold.turbo.json, apps/, packages/), CI config,
existing docs (README, docs/, SPEC).docs/dev-journal/ (current convention) or a single docs/dev-journal.md
(legacy — flag it for migration in Step 3).Ask in ONE batch (use the question tool if available, otherwise a single message). Skip anything Step 1 already answered; present inferred values for confirmation instead of asking open questions. Cover:
templates/stacks/README.md; multiple allowed per axis):
ts, python, rust, go, c-cpp, elixir, rubyweb-frontend, web-node, fastapi, rails, mobile, desktop,
browser-extension, embedded, game, shader, hardware, infra-devops,
data-ml, agent-skills, mcp-serverapplication, library, or cli (monorepo is auto-detected, not asked)
Example: an encrypted pager = rust + embedded + hardware; a Next.js app =
ts + web-frontend + web-node. other is allowed on any axis.${ENV_VAR} references — never accept a literal token into a config file, even if
the user pastes one; tell them which env var to set instead.Read the chosen templates' Interview add-ons sections (templates/stacks/<axis>/<name>.md).
Infer every default the add-on names (each question says where to look), then ask ONE
batch containing only what could not be inferred plus confirmations of low-confidence
inferences. Two batches total is the interview's hard ceiling — never ask add-ons one
by one, and skip the batch entirely when everything was inferable.
From templates/ in this skill directory:
AGENTS.md from templates/AGENTS.base.md + the chosen stack templates, composed in
language → domain → shape order, placeholders filled from the interview. Target under
~120 lines regardless of how many templates were composed: merge overlapping sections
(one Verification norm, one Dependency policy — never one per template), keep only
interview-confirmed or repo-verified lines, drop empty sections and never render an
Interview add-ons section. No placeholder residue, no "N/A" sections.CLAUDE.md from templates/CLAUDE.md — the @AGENTS.md import plus only
Claude-specific deltas (usually none at bootstrap)..mcp.json from templates/mcp.json (env-var
references only) and, if the user also uses Codex here, .codex/config.toml from
templates/codex-config.toml.docs/dev-journal/ with one file per month (YYYY-MM.md), newest
entry first inside each file, plus docs/dev-journal/README.md describing the
entry format (copy templates/dev-journal-README.md). A single ever-growing
journal file is explicitly not the convention.docs/dev-journal.md: split it by its
## YYYY-MM-DD entry headings into docs/dev-journal/YYYY-MM.md files (entries
stay newest-first; an entry's full text moves untouched); move any preamble/entry-
format prose into the README. Verify before deleting: every entry heading from the
old file appears in exactly one new file and total entry count matches; show the
user the file list, then git rm docs/dev-journal.md in the same change.make check is not all of CI; hardware changes also need make erc drc" — never
render a gate claim CI contradicts.<!-- bootstrap-project v{{skill_version}} · axes: {{chosen_axes}} · {{date}} --> —
refresh mode reads it to know what produced the file and with which template era.When asked to refresh/update an existing config (or when a bootstrapped file has visibly drifted), do NOT re-run the full bootstrap:
When a journal exists (bootstrap and refresh alike), offer to record the change as an entry — what was repaired or generated, and why — in the current month's file.
Re-found the file — never append blindly, and never dump existing content into a
.local/override file. Why not: AGENTS.override.md REPLACES AGENTS.md for Codex at
that level (parking content there shadows the new file), and CLAUDE.local.md is
personal and gitignored (project truth parked there is invisible to collaborators and
other machines). "Everything extra in a hidden file" relocates bloat instead of
removing it.
CLAUDE.local.md (Claude) or a gitignored AGENTS.override.md (Codex,
remembering it replaces rather than adds) only after the user confirms.@AGENTS.md shim plus any Claude-only deltas found in triage.<name>.pre-bootstrap before replacing it.{{placeholders}}, no secrets, no
commands that don't exist in the repo, and (migration) no carried claim you did not
verify or flag.@AGENTS.md.CLAUDE.local.md
(Claude) or a gitignored AGENTS.override.md (Codex).templates/AGENTS.base.md (opens in a new tab)templates/codex-config.toml (opens in a new tab)templates/dev-journal-README.md (opens in a new tab)templates/mcp.json (opens in a new tab)templates/stacks/README.md (opens in a new tab)templates/stacks/domains/agent-skills.md (opens in a new tab)templates/stacks/domains/browser-extension.md (opens in a new tab)templates/stacks/domains/data-ml.md (opens in a new tab)templates/stacks/domains/desktop.md (opens in a new tab)templates/stacks/domains/embedded.md (opens in a new tab)templates/stacks/domains/fastapi.md (opens in a new tab)templates/stacks/domains/game.md (opens in a new tab)templates/stacks/domains/hardware.md (opens in a new tab)templates/stacks/domains/infra-devops.md (opens in a new tab)templates/stacks/domains/mcp-server.md (opens in a new tab)templates/stacks/domains/mobile.md (opens in a new tab)templates/stacks/domains/rails.md (opens in a new tab)templates/stacks/domains/shader.md (opens in a new tab)templates/stacks/domains/web-frontend.md (opens in a new tab)templates/stacks/domains/web-node.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub farmisen/skills --plugin farmisen-skills