/agent-ops:manage-project-brainfrom agent-ops
Create, audit, lint, and migrate a project knowledge repository ("brain") to the manage-project-brain/v1 standard. Use when the user wants to scaffold a new engagement brain, check an existing knowledge repo against the standard, migrate a knowledge repo to the six-page wiki model, or asks whether a document belongs in the brain or in a product repository.
Ships in agent-ops. 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; scripts run unread.
Local notes: if
~/.agents/skill-notes/manage-project-brain.mdexists, read it first. It holds this setup's private facts for this skill (names, brands, paths, house rules) and wins over the generic text here.
A brain is a private per-engagement knowledge repository. This skill holds the
manage-project-brain/v1 standard and three scripts to scaffold, audit, and lint a
brain. The full normative spec is references/standard.md; read it before migrating
an existing repo. That file is the shape. scaffold.py writes empty stubs from it.
knowledge/
├── README.md (max 15 lines, human map only)
├── AGENTS.md (max 50 lines, ~150 words: only what lint.py cannot check)
├── CLAUDE.md -> AGENTS.md
├── wiki/ (exactly six pages, max 300 words each;
│ decisions.md ledger rows are cap-exempt)
│ ├── index.md scope.md access.md stakeholders.md decisions.md glossary.md
├── workspace/ (active unresolved reasoning only)
├── status/ (optional; dated dailies and snapshots)
└── sources/ (immutable received evidence)
├── README.md (provenance manifest: file, date, origin,
│ full 64-hex SHA-256, one row per file)
├── raw/ (original non-Markdown files: PDFs, exports, assets)
└── private/ (gitignored, and the rule must actually cover it)
Repository plumbing (.gitignore, safe .mcp.json, bootstrap.sh, tools/) may remain when operationally required; it is not part of the model. Nothing else belongs at the root: a second knowledge tree (docs/, openspec/), root-level topic files (ACCESS.md, SOW.md, status files), and vendored .claude/ or .agents/ skill trees are all lint errors.
The brain owns scope, stakeholders, access ownership, direction changes, terminology,
client evidence, and active commercial or operational analysis. Product repositories own
how code works, runtime behavior, deployment, schemas and migrations, specs, testing,
and operator guides. Never remove a brain document until its unique current facts have a
verified canonical home. Details and the removal protocol: references/standard.md.
All three default to read-only. Only scaffold.py --apply mutates. It never overwrites
or truncates an existing file; its one edit to an existing file is appending
sources/private/ to a .gitignore that does not already cover it. When there is no
.gitignore it writes sources/private/.
python3 scripts/scaffold.py <brain-dir> [--apply] # create missing structure
python3 scripts/audit.py <brain-dir> [--json] # inventory and classify
python3 scripts/lint.py <brain-dir> [--stale-days N] # validate against v1
python3 run-tests.py # the script test suite
audit.py separates an informational inventory (files, hashes, file and directory
symlinks, empty directories, git state) from compliance failures; --json puts them
under the top-level keys inventory and failures.
lint.py exits nonzero on errors: wrong wiki filenames, caps exceeded, broken links,
an index.md that does not link the other five pages, missing citations or freshness
dates, invalid decision statuses, workspace files without status/updated/owner/exit-condition
metadata or stale beyond the threshold, any archive, status-history, or snapshot folder
or status/snapshot file under workspace, extra knowledge trees and unclassified files
outside the standard layout, unexpected symlinks, a manifest that omits a source file or
records an abbreviated or wrong SHA-256, a sources/private/ that is not effectively
gitignored, and inline secret literals in .mcp.json.
Tests live in scripts/tests/ and run with python3 run-tests.py or
python3 -m unittest discover -s scripts/tests. They are stdlib-only and offline.
audit.py), classify every file, hash everything.lint.py must pass; an independent reviewer compares pre/post manifests.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stevmolina/steven-skills --plugin agent-ops4 skills in this plugin
/capture-skillCapture a reusable workflow as a skills.sh skill under ~/.agents/skills/ (symlinked into ~/.claude/skills/). Defaults to the current conversation's workflow; captures a different subject if named. Use when the user says "capture this", "capture-skill", "turn this into a skill", or "make a skill from what we did"./handoffHand the current work to a fresh thread with its full context, and start that thread. Use when the user says handoff, /handoff, seed, "do this in another session", "in a new thread", "give me a prompt for another session", "send an agent to do this", or after a grill or plan is settled and building should start elsewhere./preflightBefore a task starts, list every login, key, tool and access it needs, test each one, ask the user for all the missing logins at once, then run to the end without stopping. Use at the start of any task that touches outside accounts (GitHub, Google, Slack, a ticket board, a secrets vault, a VPS, a client app, a browser login), when the user says preflight, "do you have everything you need", "can you do it yourself", or before handing work to a worker or a new thread.