/marvin:harness-upfrom marvin
Installs harness-engineering doctrine — AGENTS.md, docs/ taxonomy (plans, ADRs, solutions), verification rules, and project-scoped Claude Code plugins. Works on empty, existing, and ported repos.
Ships in marvin. 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.
A repository that confuses an agent confuses a teammate too. The fix isn't a longer prompt — it's the smallest durable operating surface that points the next pair of hands, human or model, at the next safe move. This skill installs that surface.
This skill MAY: read repo state, ask scoping questions, write doctrine docs (AGENTS.md, CLAUDE.md, docs/agents-md-standard.md, docs/plans/README.md, ADR/solutions templates), create .claude/settings.json (or merge), record marketplace add commands in a setup section, scaffold empty docs/ subdirectories with README stubs.
This skill MAY NOT: write application source code, write tests, install npm/pnpm/pip dependencies (that is marvin:scaffold's job), run tests or builds, deploy, modify production state, overwrite an existing AGENTS.md without merging.
You install doctrine. You do not write the application.
| Shortcut | Why It Fails | The Cost |
|---|---|---|
| "Skip the survey — drop in the template" | Templates bury real conventions; downstream links go dead | AGENTS.md routes agents to files that don't exist; the first session breaks on a 404 |
| "Add every plugin — they're free" | Each plugin loads on every session; cognitive load compounds | Slow starts, abandoned skills, contributors disabling the lot |
| "Empty repo, no brainstorm — fill in later" | Doctrine without mission reads generic | Agent has no routing anchor; produces boilerplate every invocation |
| "Copy the reference shape 1:1" | The doctrine describes a shape, not a section list; every repo owns different surfaces | Sections nobody owns rot into doctrine debt within weeks |
marvin:scaffold.Entry: User invoked the skill.
Run git rev-parse --is-inside-work-tree, ls AGENTS.md CLAUDE.md docs package.json pyproject.toml Cargo.toml go.mod .claude. Classify as greenfield-blank (empty), greenfield-with-concept (manifest/README, no doctrine), or brownfield (AGENTS.md or docs/ already present). Announce in one line. If ambiguous, AskUserQuestion (header: "Mode", options matching the three classes plus "let me describe").
Exit: Mode known.
Entry: Mode known.
A doctrine without a mission is filler. AskUserQuestion (header: "Mission") with: clear concept (describe now), brainstorm first (exit to /deep-thought:brainstorm, re-invoke this skill once docs/brainstorms/... lands), or it's a port (describe source — mine it for mission and content shape).
If brownfield with a strong existing AGENTS.md: skip — mission is already there. Confirm with the user in one sentence.
Exit: Mission captured, or skill exits to brainstorm without writing partial doctrine.
Entry: Mode + mission known.
Inventory the repo: read any existing AGENTS.md / CLAUDE.md fully (never overwrite blindly), detect framework from package.json, note docs/ shape and .claude/settings.json state, note git remote. Produce a one-paragraph "what exists / what's missing / what conflicts" report.
Exit: Inventory surfaced to the user.
Entry: Survey complete.
Use AskUserQuestion with multiSelect: true (header: "Doctrine", question: "Which doctrine surfaces should I install or upgrade? Pick all that apply.") — defaults reflect the harness-engineering standard:
Root AGENTS.md — operating map: mission, read-first, task routing, verification, done — recommended for every repo
CLAUDE.md mirror — single-line @AGENTS.md for tools that look there
Direction matters. Default is AGENTS.md-primary with CLAUDE.md as the mirror. But if the repo already has a substantial CLAUDE.md and no AGENTS.md — a personal Claude Code harness, most commonly — invert it: keep CLAUDE.md as the real document and make AGENTS.md the one-line pointer. Do not relocate a doctrine file that is already working and already loaded every session; ask before flipping an existing repo.
Bespoke reviewers (.claude/agents/) — one or two project-specific
review agents, named for this repo's actual failure modes rather than
generic categories. See Phase 4.
docs/agents-md-standard.md — what AGENTS.md commits to (the 12 PASS/FAIL checks)
docs/plans/ — plan lifecycle (approved | in_progress | complete | superseded | captured) with archive rules
docs/adr/ — architecture decision records template
docs/solutions/ — searchable problem→fix log, paired with marvin:compound
docs/agent-ui-testing.md — Chrome DevTools MCP loop for UI-bearing repos
.claude/settings.json — permission allowlist defaults, optional lint-on-save hook
Subtree AGENTS.md for one major directory (ask which)
Then AskUserQuestion with multiSelect: true (header: "Plugins", question: "Which Claude Code plugins should be project-scoped? Project-scoped means anyone cloning the repo gets them, regardless of their global setup."):
Then AskUserQuestion with multiSelect: false (header: "Scope", question: "Where should plugin selections live?"):
.claude/settings.json (recommended; collaborators get the same setup)~/.claudeExit: Decisions captured.
Entry: Decisions captured.
Source templates from ${CLAUDE_PLUGIN_ROOT}/knowledge/harness-doctrine.md — the shipped standard: five jobs of a root AGENTS.md, the anti-goals, the PASS/FAIL scoring appendix, and the plan lifecycle. Substitute mission and stack from Phases 1-2. Cap AGENTS.md at ~180 lines (the map_not_dump heuristic).
Write in this order — each step depends on the prior:
AGENTS.md — root operating map; every other doc routes back to itCLAUDE.md mirror (@AGENTS.md) if selecteddocs/ skeleton — plans/, adr/, solutions/ as empty directories with README.md stubs that carry only lifecycle rulesdocs/agents-md-standard.md if selected.claude/agents/*.md — bespoke reviewers, if selected. See below..claude/settings.json — last, references everything above. Merge into an existing file when present; never replace itThe highest-value thing this skill installs, and the least obvious. Measured across one power user's 90 days of transcripts, project-specific review agents were dispatched 60+ times while a 43-agent library of generic personas was dispatched 4 times. Specific beats comprehensive, reliably.
Derive one or two from what Phases 1-2 actually found — never from a menu of categories. Good ones read like a bug report the repo has already filed:
If Phases 1-2 surfaced no such failure mode, write none. An invented reviewer is the 14-archived-skills mistake with extra steps.
Each generated agent must carry: an explicit model (never inherit — routing
downward is the point), tools restricted to read-only (Read, Grep, Glob)
unless it demonstrably needs more, a description naming this repo's failure
mode, and two or three concrete examples drawn from real code in the repo. Cap
at ~80 lines. Register them in AGENTS.md's task-routing table so they are
discoverable without being always-on.
For the AGENTS.md drafting (root and any subtree), use Agent with subagent_type: harness-author — the dedicated agent loads the harness-engineering standard and verifies its output against the 12-check rubric before returning. Pass mission, target path, and the survey output. The skill writes the body to disk; the agent does not write files itself. For unrelated tasks beyond doctrine adaptation (e.g. content scraping a port source), fall back to general-purpose.
Plugin scoping: for project scope, merge .claude/settings.json. Marketplace add commands are interactive in Claude Code — record them as a "First-time setup" section in AGENTS.md for collaborators to run once on clone.
Exit: Files written, no source code touched.
Entry: Files written.
Print a manifest grouped by surface — every file created or modified, with a one-line purpose. Suggest a single branch (harness-up/scaffold) so the doctrine lands as one reviewable diff. Then AskUserQuestion (header: "Next"): done — commit, adjust a section, generate a subtree AGENTS.md, open a brainstorm for an unfilled section.
Exit: Manifest delivered, next move chosen.
Before delivering, verify each:
AGENTS.md is ≤ 180 lines (map_not_dump heuristic)harness-author self-verification passed before its draft was written../agents/harness-author.md — dedicated drafting agent dispatched in Phase 4 for AGENTS.md generation. Already loads the harness-engineering rubric.${CLAUDE_PLUGIN_ROOT}/knowledge/harness-doctrine.md — AGENTS.md shape and anti-goals, the 12 PASS/FAIL checks, plan lifecycle, the AGENTS.md↔CLAUDE.md bridge. Shipped with the plugin; always present.${CLAUDE_PLUGIN_ROOT}/knowledge/conventions.md — authoring standard, when writing skills or agents into the target repo.Never cache generated templates inside the plugin directory: the installed tree
at ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/ is replaced
wholesale on every version bump, so anything written there is destroyed by the
next update. Write to the target repo instead.
The smallest durable surface, not the longest prompt. Surveys before generating. Matches harness-engineering vocabulary exactly so marvin:compound works the day after install.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ondrej-svec/heart-of-gold-toolkit --plugin marvin13 skills in this plugin
/compoundCapture knowledge — solutions, context docs, learnings, and principles. Use after fixing non-trivial bugs, creating context for AI, or discovering patterns worth preserving. Triggers: compound, document solution, capture fix, save solution, knowledge compound, document this, save this fix, context, create context, update context, build context, learn, save learning, remember this.
/copy-editorTwo-layer copy editor. Layer 1 is a deterministic typography audit (regex-level, auto-closeable). Layer 2 is LLM judgment — reject-list hits, nominal-style detection, clarity/ambiguity pass for participant-facing content, voice/register check, and spoken- readability read. Loads repo-local .copy-editor.yaml to compose the baked-in language profile with the repo's style guide, reject list, examples, and voice doctrine. Czech is a full profile; English is a stub. **Activate automatically when the conversation edits or creates any file matching a repo's .copy-editor.yaml include scope, when the user asks about Czech or participant-facing copy, when reviewing content PRs, or when a work slice would otherwise close without a Layer 2 pass on edited visible-surface content.** Do not wait to be invoked by name. Explicit trigger phrases: copy edit, editorial pass, czech review, czech copy review, audit copy, check typography, review prose, tighten copy.
/groundSurvey a repo and ground externally on the relevant parts of the internet. Local manifest scan + CLAUDE.md/AGENTS.md + recent git activity, then external grounding via WebSearch, WebFetch, and gh — synthesized into a terse, dated, sourced briefing cached at docs/ground/<fingerprint>.md with a 7-day freshness window. Composable: invoked standalone or embedded as a pre-flight phase in other skills. Triggers: ground, ground yourself, ground myself, survey and ground, pre-flight grounding, research the stack, what's new in.
/harness-syncReplicate a known-good Claude Code harness onto another machine or into another repo. Clones or updates the user's config repo, verifies it against the shipped conventions, reinstalls plugin marketplaces, and reports drift between two machines. Use when setting up a second machine, onboarding a new laptop, recovering a harness, or checking whether two machines have diverged. Triggers - harness sync, replicate harness, set up my config on this machine, sync claude config, new laptop setup, harness drift, are my machines in sync./quick-reviewFast opinionated quality pass — simplicity, test integrity, and correctness. Not a deep review. One pass, one voice. For depth, use /review (deep-thought). Triggers: quick review, quality check, sanity check, check my code, is this good.
/redteamAdversarial review — find weaknesses and expose them with failing tests. Checks architecture conformance, stub detection, security, and story completeness. Never modifies implementation. Standalone or pipeline-aware via env vars. Triggers: redteam, adversarial review, attack, probe, find weaknesses.
Other plugins' skills for the same job