/grey-matter:init-projectfrom grey-matter
Set up a new project's agent conventions once: AGENTS.md, scratch dir, gitignore, tkt, and whatever else the installed skills need tracked. Use when the user asks to initialize a repo for this workflow, or when adopt-project needs the missing plumbing created.
Ships in grey-matter. 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.
Scaffold the conventions the skills assume, once per repo. Explore first, propose, then write, don't clobber what's already there. The goal is a project where a fresh agent and the skills both find what they expect.
Create what's missing, never all-or-nothing. Each piece of scaffolding is checked and
created independently: if some of it already exists (an AGENTS.md, a .tickets/), create
only the pieces that are genuinely absent and leave the rest untouched — never bail out of
the whole run because one piece is present, and never overwrite an existing file (reconcile
it per its step, don't replace it). This makes init-project composable: a caller like
adopt-project can run it on a partially-scaffolded (brownfield) repo, after its own
inventory/reconcile step, and trust it to fill only the real gaps. "Skip what exists" is
non-destructive by construction.
Read the repo's current state before writing anything: is there a git remote, an
AGENTS.md or CLAUDE.md, a .gitignore, a .scratch/, a .tickets/, a GLOSSARY.md,
a docs/? Which skills are installed (they decide what needs tracking, see step 3)?
Note a game engine marker (project.godot, *.uproject) so game projects get the
game-native defaults.
Check the prerequisites. This skill set depends on tkt (until a no-tkt optionality path exists). Verify both, and if either is missing, tell the user to install it before continuing, don't improvise around a missing tracker:
tkt --version);tkt-core skill is deployed to the harness's skill root (so skills like
reconcile-tickets, to-tickets, implement can call it for the command surface and
ticket standards). It ships with tkt; deploy it the way that harness installs skills.AGENTS.md is the primary agent-instructions file (the portable standard every harness
reads). CLAUDE.md is a thin pointer to it, so Claude Code reads the same source. If
only one exists, reconcile to this shape; never maintain two divergent copies.
AGENTS.md: create it (move any CLAUDE.md content into it first).CLAUDE.md has real content: move it into AGENTS.md, replace CLAUDE.md with a
one-line pointer ("See AGENTS.md.").AGENTS.md the source and CLAUDE.md the pointer.Each of these is created only if absent; if it already exists, leave it and move on.
Create .scratch/ as the project-local home for non-committed working files (handoffs,
agent notes, throwaway output) and gitignore it. Add a short ## Scratch note to
AGENTS.md stating the rule (if not already present): nothing in .scratch/ is durable;
anything worth keeping goes in committed docs/ or a ticket, and at ticket close scratch
and build artifacts are promoted, kept with a lifecycle scope, or deleted (the
repository-artifact-hygiene skill's "At ticket close" rule).
Create .references/ as the place to clone prior-art and reference material. Gitignore
its contents but commit a .references/README.md (.references/* then
!.references/README.md). That README is the rehydration index: for each reference, what
it is, why it's a reference here, and the exact clone command, so a fresh checkout on
another machine can re-clone what the gitignored dir lost. Nothing in .references/ is a
dependency, only material agents read. If .references/ already exists, confirm its README
is a current rehydration index rather than replacing it.
Each skill that carries a convention gets its config set up and a pointer from
AGENTS.md. With a grey-matter checkout at hand, keep those pointer lines in one managed block,
so later runs update them without touching the repo's own text: write them to a file in
.scratch/, then node scripts/install-agents-md.mjs --name pointer --source <that file> --target AGENTS.md.
Set up only what is installed:
tkt init if .tickets/ is absent; it writes the
tracking block into AGENTS.md. Point at docs/agents/tkt-conventions.md for the tag
vocabulary, epic convention, and lifecycle. Confirm the gitignored .context and the
push setting fit this repo.GLOSSARY.md (and docs/adr/) are created
lazily by those skills, not here; just note in AGENTS.md that they are the vocabulary
source once they exist.AGENTS.md at game-native-design and game-modeling as
the defaults, and record the engine.Verification phase: speed and one check command in the project's own runner (npm script,
just, mise, make): tier 0, any round-trip test for persisted data, one headless smoke,
under 60 s warm. List the single-test command and the slow tier with the environment it needs,
per the test-environment ladder; ask the user
for any you cannot find in the build files. Add no Git hook, agent hook or hosted CI. Only when
the owner declares Verification phase: stability: vendor grey-matter's scripts/gate.mjs and
.githooks/pre-push, write scripts/gates.json with each check's scope and measured time, and
run git config core.hooksPath .githooks only on the owner's opt-in.## Provider fallback section in its off state, exactly as
scaffolded in provider switching,
then validate it with node scripts/check-provider-fallback.mjs AGENTS.md from a grey-matter checkout.
Turn it on only when the user says which providers and task classes may take moved work.AGENTS.md pointer. Keep AGENTS.md to pointers plus the few always-on rules; detail
lives in the pointed-at docs.Show the user the AGENTS.md layout, the .gitignore additions, and which skills you
set up. Let them edit before writing. Then write, and tell them what to re-run if they
later install a skill with its own convention.
When called by another skill (e.g. adopt-project): skip the interactive confirm —
the caller owns its own approval gate — and report back the set of pieces created versus
already-present, so the caller can fold them into its single reviewable commit. Because the
run is create-what's-missing, re-invoking init-project on an already- or partially-scaffolded
repo is safe and idempotent: it creates nothing that exists and overwrites nothing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smileynet/grey-matter --plugin grey-matterOther plugins' skills for the same job
51 skills in this plugin
/adopt-projectAdopt a brownfield repo into grey-matter: characterize its as-is model, subsume existing agent config, seed a triaged board, and wire plumbing./changelogMaintain CHANGELOG.md in Keep a Changelog format with user-facing entries. Use when recording what changed for a release, updating the Unreleased section, or asked to write/update the changelog./cheat-sheetList every skill in this set by category with a one-line description. Use when the user wants a quick reference card of available skills, asks "what skills are there", or "list all commands"./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview a commit range, staged changes, or working tree on two axes (Standards + Spec) in parallel sub-agents and file findings as tickets. Use to review a branch, PR, WIP changes, or "review since X"./compassFind which skill or flow fits your situation. A router over the skills in this repo. Use when you (or the agent) are unsure which skill to reach for, want to see how the skills fit together, or ask "what should I use for X".