agentleFS
real-casereal-case/marvin-toolkit/CLAUDE.md

marvin-toolkit

CLAUDE.md0 starsChanged 5 months agoMITView on GitHub

Marvin is a Claude Code plugin marketplace that ships one plugin (marvin) backed by a single MCP server (per ADR-0001). The plugin exposes the whole development lifecycle — core dev tools, a spec-driven task pipeline, security scanners, and a lightweight task board tracker — under one slash prefix /marvin:. There is no eject/scaffold step; the plugin works as installed by /plugin install. Until 2026-06 the toolkit was four independently-installable packs each with its own server (/marvin-core:*, /marvin-sec:*, /marvin-tm:*, /marvin-tasks:*). ADR-0001…

The file

We split this CLAUDE.md into the rules it gives an agent

10 rules. About 0 are common, 0 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every service file marvin generates lives under a single hidden .marvin/ directory at the project root, one subdirectory per command group …

    line 50
  2. Very specific:

    All three entry points lead to the same prose.

    line 139
  3. Very specific:

    Only intended lines differ, so build here and commit.

    line 295
  4. Very specific:

    Create plugins/marvin/skills/<command>/SKILL.md with YAML frontmatter (name matching the directory, description).

    line 392
  5. Very specific:

    Create plugins/marvin/commands/<command>.md with frontmatter description and a body that instructs Claude to read skills/<command>/SKILL.md …

    line 393
  6. Very specific:

    Add an entry to plugins/marvin/mcp/server/src/prompts/index.ts:

    line 394
  7. Very specific:

    Run npm run build inside plugins/marvin/mcp/server to refresh dist/server.js.

    line 402
  8. Very specific:

    Commit src/, dist/, the new SKILL.md and the command file together — CI verifies dist is in sync and that SKILL.md / commands have valid …

    line 403
  9. Very specific:

    Create plugins/marvin/mcp/server/src/tools/<name>.ts with a defineTool({...}) export.

    line 410
  10. Very specific:

    Create plugins/marvin/agents/<agent-name>.md with YAML frontmatter containing description.

    line 417

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What is this

Marvin is a Claude Code plugin marketplace that ships one plugin (marvin) backed by a single MCP server (per ADR-0001). The plugin exposes the whole development lifecycle — core dev tools, a spec-driven task pipeline, security scanners, and a lightweight task board tracker — under one slash prefix /marvin:. There is no eject/scaffold step; the plugin works as installed by /plugin install.

Until 2026-06 the toolkit was four independently-installable packs each with its own server (/marvin-core:*, /marvin-sec:*, /marvin-tm:*, /marvin-tasks:*). ADR-0001 consolidated them into one plugin/one server so every command shares the /marvin: prefix. See docs/adr/0001-single-plugin-consolidation.md.

Architecture

The single plugin delivers one MCP server, plus skills/<name>/SKILL.md, markdown slash commands under commands/, and agents/*.md files (all auto-loaded by Claude Code on /plugin install):

plugins/marvin/
├── .claude-plugin/plugin.json        # name: "marvin"
├── .mcp.json                         # registers server key "marvin" (+ context7, gitmcp; MARVIN_TASKS_* default to .marvin/track + .marvin/config.json)
├── CHANGELOG.md
├── skills/<command>/SKILL.md         # source of truth for prompt bodies (dir name == command)
├── commands/<command>.md             # short markdown slash entries
├── agents/*.md                       # Claude Code subagents
├── hooks/hooks.json + *.mjs          # SHIPPED-BY-DEFAULT blocking PreToolUse guards on Bash (ADR-0040); loader-discovered by existence, so plugin.json declares no `hooks` key
├── widgets/*.html                    # COMMITTED self-contained MCP Apps widget documents (built by packages/marvin-widgets; served as ui:// resources, ADR-0024)
└── mcp/server/
    ├── package.json
    ├── tsconfig.json
    ├── tsup.config.ts
    ├── src/
    │   ├── server.ts                 # entry: name "marvin"; registers prompts + tools + widget resources
    │   ├── prompts/
    │   │   └── index.ts              # 59 prompt entries (skill-backed + inline track)
    │   ├── tools/                    # 14 MCP tools: board task / task-detail / tracker (board + widget reads), help + dashboard (toolbox state), verify, spec, metrics (task pipeline; one of three callers of the .marvin/metrics/ writer, ADR-0043/0044), lessons, summary, handoff (task pipeline), adr (decision lifecycle), audit (sec-* structured findings), report (unified .marvin/ reports viewer)
    │   ├── resources/widgets.ts      # buildWidgetResources(packRoot): ui:// widget ResourceDefs (no ext-apps import; server stays SDK-free)
    │   ├── storage/ flows/ lib/      # board persistence + helpers
    └── dist/server.js                # COMMITTED build artefact

Working directory (.marvin/)

Every service file marvin generates lives under a single hidden .marvin/ directory at the project root, one subdirectory per command group (ADR-0007):

PathWritten byContents
.marvin/task/task-* pipelinespec <NNN>-<slug>.md files (numeric-prefixed so the dir sorts by creation order; slug stays the identity) + the current verification.md
.marvin/task/runs/verify (when a valid specSlug is passed)per-spec verification runs <slug>.md, byte-identical to the verification.md the same run writes (ADR-0035). A subdirectory on purpose: the three top-level enumerators (readMdFiles, countMarkdown/specDigest, findLatestSpec) are non-recursive readdirSync + .endsWith(".md"), so a directory is invisible to all of them by construction rather than by an exclusion list. runs/<slug>.md means "the latest run for that spec"; verification.md keeps meaning "the latest run in this project". Its first sibling is the oracle journal runs/<slug>.oracles.md (ADR-0036) — append-only, one json oracle-run block per acceptance-oracle run, keyed by the spec's contract_sha; it lives here for the same invisibility reason, and a red and a green in it are what the delivery gate reads as a proof. Its second sibling is the progress journal runs/<slug>.progress.md — append-only, one json spec-progress block per entry, written by the spec tool's action: "progress" from task-start (step 1.5 onward), task-implement (per completed criterion) and the headless marvin-tm-executor (§1, whose entry anchors a headless run's implementation time, then per criterion and at §3/§5) and read back by action: "resume", so an intake interrupted mid-dialogue or a run whose context was compacted can say where it got to; it lives here for the same structural-invisibility reason as its two siblings. This makes spec a writer: every other path in that tool was existsSync/readFileSync, and the DoR gate it is otherwise described as still only validates. The journal was the one thing it wrote until ADR-0044 gave it a second — the seal gate now creates the task's .marvin/metrics/ record, fail-open and conditioned four ways. Its third sibling is the verification-run journal runs/<slug>.verify.md (ADR-0043) — append-only, one ```json verify-run block per entry, two entry kinds under one tag: run, appended by verify after every per-spec run it writes (verdict, mode, execution, the only subset or null, per-gate status and duration, wall-clock and summed-gate ms, head_sha), and gate, appended by action: "gate" on every delivery-gate decision for a resolved slug (decision, verdict, staleness, allowStale, red_green, the artifact judged). Both writes are fail-open — a throw is swallowed and never changes a verdict or a decision. It exists because runs/<slug>.md is OVERWRITTEN by every run, so how many attempts preceded the surviving one (T3 and R4 of the metrics series) was unrecoverable, and because action: "gate" persisted nothing, so a freshness waiver (Q5) had no source. A feature/bug run that passes no specSlug now warns — PASS WITH WARNINGS — because no per-spec run and no journal entry is written for it; a standalone run keeps no warning
.marvin/metrics/three callers of one writer (ADR-0044): the spec seal gate CREATES the record for every started run, the verify delivery gate appends the terminal block on ALLOW, and the metrics tool's action: "record" adds the live events from the pipeline prose sites (task-start 7F/7B and 8F/8B, task-implement 6F/9B, its Fix-cycle and SPEC GAP protocols, the executor's §3–§5) with action: "rollup" left for marvin-tm-executor §5.0, which never reaches the delivery gatethe task-metrics series (ADR-0043): one committed record per spec, <NNN>-<slug>.md, named after the spec's own file so nothing is allocated, two parallel branches cannot mint the same number, and both directions of the join are a filename lookup (<slug>.md for a spec that lives unnumbered in a host directory, and for an event task-start records against a draft the corpus cannot yet see). Append-only, two block tags chosen to differ by more than one letter: live ```json metric-event blocks during the run — six kinds, fix-round, spec-gap, open-item, critic-dispatch, critic-verdict, gate-call, each fail-closed on its own required fields, so a half-written event is refused rather than counted — and one ```json task-metrics block per delivery, derived by the pure rollUpMetrics in lib/metrics-rollup.ts from the spec, the three runs/ journals, the verify-result block, the receipts and git, of which the LAST is authoritative. Every metric is nullable and null means the source was absent, never zero; the block's sources map says which of the eight inputs was on disk, and a record with no events reports every event-sourced counter as null. .gitignore negates the directory (!.marvin/metrics/ after .marvin/*) so the record reaches dev in the delivery PR; a host project must do the same, and the rollup answer reports ignored when it has not. Not a report group (ADR-0043 §5): the reading surface is metrics action: "series" behind the inline-body prompt /marvin:task-metrics — count, median, mean and maximum per metric over the records where the field is present, a coverage line against the shipped corpus, type/since filters, a slug mode that renders one record in full, and Q11 (review-fix commits, through gh) and Q12 (escaped defects, a join over the shipped specs' contract paths) computed there at query time and never stored — plus the dashboard's metrics section (MetricsSummary, an optional additive field of DashboardState). MARVIN_METRICS_DIR repoints it; no self-written .gitignore, for the reason critiqueDir gives
.marvin/security/sec-* scannersscan / threat-model / compliance / pentest reports
.marvin/refactor/refactor-* familynumbered findings-register reports NNN-audit-<slug>.md / NNN-smells-<slug>.md (F<n> id, severity, effort, evidence, direction — ADR-0029) + sequenced step plans NNN-plan-<slug>.md (one shared number sequence)
.marvin/audit/the audit-* family (audit-plan, audit-run, audit-summary)the formal project-audit programme: the plan A-00-plan-<slug>.md, one report per audit A-XX-<slug>.md plus its rendered A-XX-<slug>.pdf, and the consolidation A-99-summary-<slug>.md. Each report carries a fixed frontmatter (commit, tool versions, coverage, confidence), the seven-section skeleton and one ```json findings block whose vocabulary is ASCII regardless of the report's LANG — that block is the ONLY interface audit-summary reads, which is what lets audits run in isolated sessions and still be joined. Not a report group of the report tool, and not written by any tool: the three commands are skill-backed prompts and every byte under .marvin/audit/ is written by the calling session
.marvin/track/track-* trackertask .md board (the MARVIN_TASKS_DIR default)
.marvin/memory/lessons tool (marvin-debugger, task-deliver)team-shared lessons-learned: MEMORY.md index + typed lesson files (ADR-0021)
.marvin/handoff/handoffsession-continuation handoff docs <NNN>-<slug>.md (numeric-prefixed, creation order)
.marvin/critique/the calling session — task-start 8F/8B and task-implement 6F/9B, not a toolcritic receipts <NNN>-<slug>.md (numeric-prefixed, creation order; slug is the SPEC's slug, so a task's two receipts differ only by their number): the critic's report verbatim plus one ```json critic-verdict block carrying two axes — compliance and quality — and no roll-up, which is derived by the single rollUp declaration in lib/reports.ts (ADR-0039). Ingested by report as the fifth ReportGroup and linked from /marvin:task-summary. A receipt is evidence, never a veto: enforcement stays at task-deliver's draft PR on a surviving BLOCK, and test/critique-protocol.test.mjs asserts the delivery gate's block is byte-identical with and without one. Written only for a TERMINAL verdict (NEEDS_CONTEXT is structurally unrecordable), and never for the diff critic's standalone mode, which has no spec slug to hold. Does not decay: a dated judgement of one artifact stays as true a year later
.marvin/research-results/marvin-researcher agent (creates the dir on first write)dated library/API research notes <library>-<topic>-<YYYY-MM-DD>-<HHmmss>.md, capped at 200 lines each. Write-only: the agent is forbidden from reading them back, because a cached lookup is exactly the stale answer it exists to avoid. Not ingested by the report tool
.marvin/usage/usage-log middleware (runPackServer)local, never-committed telemetry: events.jsonl — one JSONL event {ts, kind, name} per prompt-get / tool-call — plus a self-written .gitignore = * so nothing here reaches git; size-capped with rotation to events.jsonl.1; read only by /marvin:dashboard. Kill-switch usage.enabled: false; fail-open (ADR-0030)
.marvin/report/report tool, action: "triage" with snapshot: truethe triage baseline triage.json — {version: 1, updatedAt, findings: [{fingerprint, firstSeen, lastSeen, present}]} — plus a self-written .gitignore = *, both created lazily and ONLY on the snapshot path (ADR-0038). Not a report group at all, despite sitting beside the five the tool scans (security, refactor, task, handoff, critique): it holds the tool's own state, is never enumerated by the viewer, and MARVIN_REPORT_DIR repoints it. present: false is what makes a regressed finding expressible — nextBaseline RETAINS a fingerprint that has left the live set rather than dropping it, and without that retention a reappearance would classify as new
.marvin/preview/widget-preview command (mcp/server/bin/widget-preview.mjs)rendered widget panels <widget>.html — the committed ui:// document plus the tool's live structuredContent and an inlined ~90-line postMessage host, in one self-contained file — plus a self-written .gitignore = *. The way to see a widget on a host that does not resolve _meta.ui.resourceUri, which the Claude Code CLI does not (ADR-0034)
.marvin/export/report-export skill (Claude fills the shipped template in-session — no server export code, ADR-0033)shareable report exports <group>-<source-basename>.<md|html> (print-ready HTML = the PDF path) + a self-written .gitignore = * — derived artifacts, never versioned
.marvin/config.jsontrack-* tracker, verifybase_branch (auto-detected from origin/HEAD when absent), tracker_url_template, optional branch_template, the board's statuses vocabulary ({key, role, tracker_status?}, ADR-0026), verify gate overrides (gates, ADR-0009), the spec corpus location (spec.dir, ADR-0037), the by-product scope exemptions (scope.exempt, a list of path patterns the scope gate and the metrics roll-up do not count against a task's allowlist; no defaults ship, ADR-0045), the host's merge_obligations (a list of strings that replaced the per-spec host-bindings block, proposed once per project by task-start, ADR-0046), and the usage telemetry kill-switch ({enabled}, ADR-0030) — the MARVIN_TASKS_CONFIG default, shown/edited via /marvin:track-config (the task tool's config action; foreign keys survive the read-modify-write)

Spec location stays host-adaptive (ADR-0005) and is now resolved by one function, resolveSpecDir in storage/spec.ts (ADR-0037): config spec.dir wins, else the first existing candidate in SPEC_DIRS order (.marvin/task/, specs/, docs/specs/, docs/rfcs/, rfcs/ — .marvin/task/ leads detection, which is code order and what every reader already did), else the .marvin/task/ default. Every enumerator goes through it — the DoR gate's depends_on, summary, verify, specDigest and the dashboard's spec count — while a slug lookup keeps searching all five via specSearchDirs, so configuring a directory never orphans specs that already live elsewhere. The artifacts do not follow the specs: verification.md and runs/ stay .marvin/-pinned per ADR-0007 whatever spec.dir says. The MARVIN_TASKS_* env vars in .mcp.json can repoint the board paths. Project deliverables are deliberately not swept in — ADRs stay under docs/adr/, CHANGELOG.md and README.md at the root.

Command naming scheme

Commands are /marvin:<group>-<command>; singletons stay bare. Groups:

GroupSourceExamples
(bare)core dev tools/marvin:onboard, /marvin:commit, /marvin:debug, /marvin:adr, /marvin:changelog, /marvin:readme, /marvin:migration-plan, /marvin:explain, /marvin:docs-search, /marvin:handoff, /marvin:dashboard, /marvin:reports, /marvin:report-export, /marvin:widget-preview
adr-*ADR lifecycle around the bare /marvin:adr create (ADR-0027; accept/supersede/sync are human-run via disable-model-invocation)/marvin:adr-review, /marvin:adr-accept, /marvin:adr-audit, /marvin:adr-coverage, /marvin:adr-supersede, /marvin:adr-sync
pr-*core PR ops (full PR lifecycle)/marvin:pr-create, /marvin:pr-review, /marvin:pr-resolve, /marvin:pr-merge
task-*spec pipeline (taskmaster)/marvin:task-start, /marvin:task-implement, /marvin:task-verify, /marvin:task-deliver, /marvin:task-summary, /marvin:task-metrics, /marvin:task-audit
sec-*security scanners/marvin:sec-scan, /marvin:sec-secrets, /marvin:sec-deps, /marvin:sec-gate, /marvin:sec-threat-model, /marvin:sec-iac, /marvin:sec-ci, /marvin:sec-fix, /marvin:sec-compliance, /marvin:sec-pentest, /marvin:sec-report
refactor-*code-health family, read → plan → apply (ADR-0029)/marvin:refactor-audit, /marvin:refactor-smells, /marvin:refactor-plan, /marvin:refactor-apply
audit-*the formal A-01…A-22 project-audit programme — plan, run one, consolidate/marvin:audit-plan, /marvin:audit-run, /marvin:audit-summary
track-*lightweight task tracker (board-only, ADR-0025; seven-command surface, ADR-0032)/marvin:track-menu, /marvin:track-new, /marvin:track-list, /marvin:track-show, /marvin:track-start, /marvin:track-move, /marvin:track-config

task-* (heavyweight spec pipeline) and track-* (quick tracker) are intentionally distinct domains — keep them separate.

The audit family is three commands over twenty-three data files

audit-plan, audit-run and audit-summary are the whole command surface of the A-01…A-22 programme, and a twenty-third audit is a file, not a fourth command. audit-run carries the programme under skills/audit-run/references/: one shared report-contract.md (parameters, report skeleton, finding schema, S0–S4 severity with its mapping onto the sec-scan rubric, evidence rules, sampling budget, prohibitions, and the canonical machine forms of the path exclusion set — RG_EXCLUDE is **/-prefixed and GIT_EXCLUDE carries :(exclude,glob) because the naive forms of both leave part of the tree IN, measured rather than assumed); pdf-release.md with two committed generators under references/tools/ (audit-pdf.py refuses to render rather than emit empty boxes when no TTF with verified Cyrillic coverage is found; audit-verify.py fails the release when the finding ids in the prose, the register and the PDF disagree); audit-index.md (catalogue, waves, and a dependency matrix whose two columns are ONE relation — "Hands to" is derived from "Needs on input", never edited alone); spec-authoring.md (template plus the acceptance checklist a new audit is reviewed against); and one audits/A-XX-<slug>.md per audit holding only the half that differs.

test/audit-family.test.mjs pins what no other gate reaches: the catalogue and the spec files as one set in both directions, the thirteen-section template, the S0–S4 vocabulary, the Origin column's two values, the 150–250-line budget, that every skills/… path in the family resolves (scripts/lib/skill-datasets.mjs deliberately does not walk reference files, and this family is mostly reference files pointing at one another), that every report-contract.md §N reference names a section the contract has, and that the register schema in the contract and the required-field tuple in audit-verify.py are the same set — two statements of one contract, the prose a report is written to and the check that fails its release.

Adding an audit means the spec file, the audit-index.md row in both the catalogue and the matrix, and nothing else — no new skill, no new prompt, no new dataset.

Call it your way

The same SKILL.md is reached through three independent entry points:

  1. Claude Code auto-discovery. Skills live under plugins/marvin/skills/<command>/SKILL.md. Their YAML frontmatter (name, description, optional disable-model-invocation) is what Claude Code matches against user prose like "сделай коммит" — the skill loads automatically. The name matches the directory and the command.
  2. Markdown slash commands. Each plugins/marvin/commands/<command>.md is a thin Claude Code slash command that instructs the model to read its matching SKILL.md and pass $ARGUMENTS. Surfaces as /<command> (e.g. /commit, /sec-scan, /task-start).
  3. MCP slash commands. Each prompt entry in plugins/marvin/mcp/server/src/prompts/index.ts declares skill: "<command>". At request time the server reads the corresponding SKILL.md, strips its frontmatter, and returns the prose as a prompt body. Surfaces as /marvin:<command> (e.g. /marvin:commit).

All three entry points lead to the same prose. Editing SKILL.md updates all three paths without a server rebuild (the slash and MCP entries read it at runtime; chat auto-discovery picks it up on the next match).

Instrument types

  • Skills (plugins/marvin/skills/<command>/SKILL.md) — Markdown with frontmatter. Source of truth for workflow content. Dir name, name:, and command all match.
  • Markdown commands (plugins/marvin/commands/<command>.md) — Short slash wrappers with frontmatter description and a body that delegates to the matching skill. Optional $ARGUMENTS placeholder.
  • MCP prompts — Thin server-side registration that exposes a skill (or, for the track-* group, an inline body:) under /marvin:<command>.
  • MCP tools — Deterministic TypeScript invoked from prompts or by the model. Each tool declares a zod input schema. Used where determinism matters: the board task/help tools (file CRUD, role-driven transitions over the configured status set plus a generic move — ADR-0026, PR-URL capture via link-pr — ADR-0025, the config action that shows/edits .marvin/config.json fail-closed, dashboards), verify — the task pipeline's quality-gate runner (concurrent gates, single merge point, config-first gate resolution from .marvin/config.json, writes verification.md; see ADR-0002/0009; a gate whose binary is absent is recorded not-run rather than failed, and every run records the tree it proved — head_sha, branch, dirty, a worktree_digest over a structural path list, ADR-0035; two optional inputs carry that: specSlug writes/reads .marvin/task/runs/<slug>.md, and allowStale waives the gate's freshness refusal only, never a FAIL and never the unwaivable no-test-evidence BLOCK; a third action oracles runs a sealed spec's acceptance oracles rather than the project's gates — refusing a tampered or unsealed contract before any child process, resolving each criterion through the ADR-0009-shaped chain (command → oracle.run → a kind: command ref → gates.test_one → a three-row default table → not-run, never a guess), and appending each outcome to .marvin/task/runs/<slug>.oracles.md; the delivery gate reads that journal into an advisory red_green field that never flips decision, ADR-0036 — every regression: true criterion of a bugfix, and since ADR-0047 any one kind: test criterion of a feature, whose red the feature path records on its first such criterion; and since ADR-0044 an ALLOW for a resolved slug also appends the terminal task-metrics block, beside the answer and never inside it — gateResult serialises reason into the deliver-gate block that critique-protocol.test.mjs pins, so the record's path goes into the markdown) — and spec, the tool-backed Definition-of-Ready gate for /marvin:task-start (parses and zod-validates the spec-contract YAML block fail-closed — schema, file-path existence, the AC⇄files⇄tests traceability triple — including its transpose, so a satisfies list that denies a criterion naming it is a FAIL rather than a finding the critic pays minutes to catch — typed oracles, and the decidable half of grounding and oracle runnability: a path:line citation past the end of its file (cite-lines, resolved through git ls-files when written relative to a package), an oracle command naming a file that neither exists nor is planned (oracle-paths), a test-name filter starting with - (oracle-filter), all FAILs, plus warnings for a whole-suite oracle and a missing failure: line, and — since ADR-0046 shrank the required sections to Goal, Chosen Approach, Non-goals and Open Questions — advisory size warnings that never fail (spec-size over 3 KB + 400 B per file + 500 B per criterion, ac-length, intent-length, and security-nfr for a risk: high feature without that section); see ADR-0003/0004/0005; its surface is action: dor | seal | scope | next | list | audit | progress | resume (where scope FAILs on any changed file outside the contract files plus the caller's allow list — diffed from the merge base of base and HEAD, so base-branch commits that landed after the fork are not counted — never counts .marvin/ or the spec file, and reports paths matching a scope.exempt pattern as exempted by-products rather than violations (ADR-0045), through partitionScope in lib/scope.ts, the one judgement it shares with the roll-up's Q1 so the two cannot disagree; with no scope.exempt its answer is byte-identical to before), with mode kept as a deprecated synonym bounded to the original three — action ?? mode ?? "dor", a disagreeing pair refused naming both; seal now returns two checks rather than one hand-picked verdict, refusing a shipped/superseded spec as well as a tampered contract and warning when the frontmatter carries no status at all, and since ADR-0044 it also creates the task's metrics record on a non-FAIL verdict, but only for a spec it READ FROM DISK whose slug is kebab-case — the four conditions are in ensureMetricsRecord; next and list are corpus reads over readSpecCorpus that emit a json spec-corpus block instead of a verdict and never error on an empty or absent directory, ADR-0037; audit lints the corpus as a whole — duplicate numbers, bounded numbering holes, slug collisions, dangling depends_on, missing seals, statuses outside the vocabulary, files that do not identify themselves as specs — behind /marvin:task-audit; and progress/resume append to and read back the resumability journal, which is what makes spec a writer for the first time). lessons is the tool-backed lessons-learned store (.marvin/memory/: add/search typed lessons captured at delivery and by marvin-debugger, recalled at task-start intake; see ADR-0021). adr owns the decision-record lifecycle mechanics (ADR-0027): host-adaptive corpus resolution, a dual-style parser, next | list | index | audit reads, and the fail-closed mutating pair — gate-checked accept, paired-link supersede — surfaced by the adr-* skills, whose accept/supersede/sync entries are human-run. dashboard renders the whole-toolbox state report (ADR-0030): board/config/git plus the configured MCP servers, the current-work digest (active board cards + pipeline specs in flight), recent handoffs with their age, audit findings by severity for the newest security and refactor report, artifact counts with freshness, lessons stats, the ADR corpus by status, and the local usage summary when .marvin/usage/events.jsonl exists — emitting the extended DashboardState contract alongside the text. The v1 SecurityInventory / RefactorInventory blocks were removed in 0.10.0: DashboardAudits supersedes them, and the refactor register counts by kind were dropped rather than relocated. metrics is the fourteenth tool and one of three callers of the .marvin/metrics/ writer (ADR-0043/0044 — the writer is storage/metrics.ts, reached through the shared lib/metrics-record.ts that owns the record's filename rule; the other two callers are the spec seal gate, which CREATES the record for every started run, and the verify delivery gate, which appends the terminal block on ALLOW only, so a record no longer depends on a session issuing a prose-instructed call): record appends one live metric-event block — validated fail-closed per kind against the runtime mirror of contracts/metrics.ts in storage/metrics.ts, which test/metrics.test.mjs compiles beside the contract and asserts agrees with it, and answering a critic-dispatch with that critic's dispatch budget from lib/critic-budget.ts (two for the spec critic, one on the light tier, three for the diff critic) as within, final or exceeded, recording the event either way; the roll-up's rework.critic_budget_exceeded (R5) judges the same budget — and rollup collects the eight inputs in lib/metrics-collect.ts (the progress journal from the SPEC directory's runs/, the oracle and verification-run journals and the per-spec run from the .marvin/-pinned runs/, receipts and events through projectScopedDir, git through the changedFilesForScope the scope gate now shares from lib/git.ts, and the config's scope.exempt list, which the roll-up judges with the scope gate's own partitionScope so exempt by-products leave scope_drift.undeclared for scope_drift.exempt — null when no list is configured) and hands them to the pure rollUpMetrics (which also records the spec's spec_size — bytes, words and the ADR-0046 budget — reported as Q13/Q14), appending the terminal task-metrics block and reporting whether git ignores the record. Its input is .strict(), the third tool after spec and report. Four read-side helpers round out the fourteen tools: summary aggregates a finished task's criteria, gates, commits, lessons and links into a delivery digest (/marvin:task-summary), handoff lists the session-continuation docs under .marvin/handoff/ (/marvin:handoff-list), audit recovers the typed audit-report blocks the sec-* scanners write under .marvin/security/ and returns them as an AuditListPayload (/marvin:sec-report; ADR-0024 #7 Tier-2), and report scans every document marvin generates under .marvin/ — security, refactor, task, handoff, critique — into one ReportListPayload with server-computed staleness (/marvin:reports; docs/design/reports-widget.md). ADR-0039 added the fifth group: .marvin/critique/ receipts arrive as document envelopes tagged critique · <rollUp>, carrying a spec LinkRef on their subject slug; staleness became a total Record<ReportGroup, boolean> (DECAYS) so the next group cannot default silently through a removed else branch, and test/report-groups.test.mjs derives the group set from the contract and asserts it against every code enumeration and twelve pinned prose sites. report gained finding identity in ADR-0038: every ReportFinding carries a server-computed fingerprint (sha256 over kind, path, category and title slug, first 16 hex chars — line numbers deliberately excluded, so an unrelated insertion above a finding does not mint a new identity), filled at both construction sites in lib/reports.ts and nowhere else; a second action triage reconciles the live findings against the .marvin/report/ baseline into new/persisting/regressed plus a resolved roll-up, where the live set is every security envelope except a fix record, plus only the NEWEST refactor register per (kind, slug) — the scanners overwrite fixed filenames, while refactor registers and sec-fix's fix-<slug>.md both accumulate, and a fix record states what was CLOSED rather than what is open — and a superseded register's findings are left unreconciled rather than relabelled. Both actions reconcile (read-only); only snapshot: true writes, because _meta.ui.resourceUri binds at tool level, so an action-keyed write would let a host that merely opens the widget consume the baseline. report is also the second tool after spec with a .strict() input schema: a caller who intends snapshot: true and mistypes the key must get an error, not a successful-looking call that wrote nothing.
  • Hooks (plugins/marvin/hooks/) — the only instrument that runs whether or not a model chooses to invoke it (ADR-0040). hooks.json is the plugin wrapper shape (events under a top-level hooks key) and is loader-discovered by existence, so plugin.json must declare no hooks key. Two blocking PreToolUse guards on the Bash matcher, shipped by default and armed with no enablement step: bypass-guard.mjs refuses git commit --no-verify/-n and git merge --no-verify, plus a force-push or deletion whose resolved target is in the protected union (config base_branch ∪ origin/HEAD ∪ main/master/dev/develop); secret-guard.mjs refuses a commit whose added lines match SECRET_PATTERNS, mirrored into the sec-gate skill's secret-patterns block and parity-tested. Both share lib/hook-io.mjs, exit 2 ONLY on a confirmed match and 0 on every other path including any throw, and are disabled by hooks.enabled: false in .marvin/config.json or MARVIN_HOOKS_DISABLED=1 — a switch the hooks read from $CLAUDE_PROJECT_DIR alone, deliberately ignoring MARVIN_TASKS_CONFIG. scripts/lint-manifests.mjs rule 8 checks the manifest resolves to real scripts.
  • Agents (plugins/marvin/agents/*.md) — Claude Code subagents, auto-loaded on /plugin install. The read-only / read-mostly agents (marvin-auditor, marvin-refactor-auditor, marvin-guide, marvin-tm-writer, the two marvin-tm-*-critics, and marvin-debugger) pin their access with a tools: frontmatter allowlist — a subagent that omits tools: inherits every tool, so the allowlist is what actually enforces the read-only contract. Code-writing agents (marvin-tm-executor, marvin-tm-review-fixer) and marvin-researcher deliberately omit tools: and inherit the full toolset.

The track-* group has no skills/ or commands/ entries. Its 7 prompts (ADR-0032) are thin tool-invocation wrappers (inline body:) that call and route between the task/task-detail/tracker MCP tools. There is no standalone workflow prose to duplicate into a skill. Git operations on board tasks live in the board-aware commit/pr-create skills (ADR-0025).

Server key and slash prefix

PluginServer keySlash prefix
marvinmarvin/marvin:*

MCP Apps widget layer (ADR-0024)

Rich MCP hosts can render a tool's structuredContent in a sandboxed ui:// iframe. Marvin's widgets live in a dedicated browser workspace and are wired to tools without pulling any browser SDK into the server bundle:

  • packages/marvin-widgets/ — the browser widget bundle (@modelcontextprotocol/ext-apps). Vite
    • vite-plugin-singlefile build each widget to one self-contained, minified HTML file (a strict host CSP blocks external hosts) written to the committed plugins/marvin/widgets/<name>.html. Widgets are React-shaped code that renders on Preact: react/react-dom are aliased to preact/compat via @preact/preset-vite (the ADR-0024 bundle-size escape hatch — the inlined bundle is ~95% zod via ext-apps, so the committed HTML is a compact, hash-guarded build artifact, minified like dist/). Tests use @testing-library/preact; Storybook keeps @storybook/react-vite with the compat aliases injected via viteFinal. Two reusable primitives are the foundation: <ListDetail> (master-detail) and <Markdown> (a dependency-free GFM-subset renderer that emits DOM elements via the JSX runtime — no dangerouslySetInnerHTML, no sanitiser; text is JSX-escaped and link hrefs are scheme-allowlisted), plus a 3-type link model (links.ts, over the shared LinkRef). A mock-host util (a fake ext-apps host over an in-memory transport) drives the real handshake in vitest and Storybook without a real iframe.
  • The server stays ext-apps/React free. src/resources/widgets.ts returns ResourceDef[] for the ui://marvin/<name>.html documents (mimeType text/html;profile=mcp-app), served through the shared registerResource (NOT ext-apps' registerAppResource); its read loads the committed HTML from packRoot at request time (ADR-0008). The task tool binds its widget with a plain meta.ui.resourceUri object literal — so tsup never bundles ext-apps/React into dist/server.js.
  • The terminal fallback is unchanged for a client that does not advertise the extension. _meta is additive; such a client ignores it and receives byte-identical content, exactly as before. A client that does advertise extensions["io.modelcontextprotocol/ui"] receives a one-line digest in place of the markdown panel, plus a _rendered key injected into structuredContent telling the model the payload is already on screen — otherwise the host draws the widget and the model rebuilds the same panel from the payload, and the user sees it twice. The rule is decided once in the shared registerTool rather than per tool, so a tenth widget-bound tool inherits it; it is declined whole if the tool binds no widget, the result carries no structuredContent, the result is an error, or the payload already owns a _rendered key (ADR-0041).
  • No host in the Claude Code loop renders these. Measured 2026-07-31: the CLI that spawns the plugin server contains no MCP Apps implementation (resourceUri / profile=mcp-app / ui:// all absent), so every widget-bound tool shows its markdown fallback there. The desktop app does implement the extension, but only for the servers it connects (claude_desktop_config.json), not for plugin servers the CLI spawns. mcp/server/bin/widget-preview.mjs is the escape hatch (ADR-0034): it drives the committed dist/server.js over stdio, resolves the widget generically from tools/list _meta.ui.resourceUri, and writes the document + payload + a ~90-line postMessage host into one self-contained file under .marvin/preview/. Surfaced as /marvin:widget-preview.
  • scripts/verify-widgets.mjs guards the committed HTML like verify-dist guards dist/: it rebuilds @marvin-toolkit/mcp-shared then @marvin-toolkit/widgets, hash-compares each committed plugins/marvin/widgets/*.html against the fresh build, and asserts each file is self-contained.
  • Visual regression baselines are committed under packages/marvin-widgets/__image_snapshots__/<platform>/ (darwin only today, ~5 MB of PNGs — one per story, jest-image-snapshot via the test-storybook postVisit hook). They are NOT regenerable junk and NOT guarded by CI (ubuntu has no committed baseline dir, so it skips the comparison by design): after an intentional visual change, update them on darwin with npm run test-storybook:update -w @marvin-toolkit/widgets and commit the changed PNGs alongside the source. Full workflow (theming, parameters.visual opt-out, platform bootstrap) in packages/marvin-widgets/README.md.

The committed widgets — task-list, task-detail, tracker-list, handoffs, audit, task-summary, dashboard, help, and reports — reuse this foundation (<ListDetail> for the master-detail browsers, single-object panels for the rest). The whole family renders on one theme module, packages/marvin-widgets/src/theme/: a token stylesheet scoped to a .mvroot class (light

  • dark via prefers-color-scheme, pinnable with data-theme), the MvRoot boundary component that injects it once, and TS token constants (TOKENS/SEVERITY_TOKENS/BAR_TOKENS) widgets reference inline — literal colors live only in the theme module. The help widget renders the welcome dashboard from the help tool's HelpState: a CSS gradient wordmark, the project summary, the configured MCP servers lit/dim by enabled state, and the full curated command index — the rich counterpart to the tool's markdown/emoji terminal fallback. The reports widget is the unified viewer over every generated .marvin/ report (report tool, /marvin:reports): KPI strip, group segments, local search, per-kind detail bodies, copy-only continuation-command chips.

Shared library

packages/marvin-mcp-shared/ provides:

  • typed PromptDef / ToolDef interfaces and defineTool helper
  • runPackServer({ name, version, promptsDir, packRoot, build, onInvoke? }) — the standard server entry. The optional onInvoke(event) middleware hook fires once per prompt-get and per tool-call with { kind, name }, before the handler runs; it is fire-and-forget and fail-open (throws and rejected promises are swallowed), leaving dispatch byte-for-byte unchanged. marvin wires it to the .marvin/usage/ log (ADR-0030); the shared library stays project-agnostic.
  • elicit(server, message, zodSchema) + canElicit(server) — typed MCP elicitation wrapper with client-capability detection (tools degrade to instructive errors on hosts without elicitation)
  • resolvePromptBody, promptsDirFromMeta, packRootFromMeta, interpolateArgs — body loaders
  • contracts/ — zod data contracts for the MCP Apps widget family (LinkRef, TaskCard, TaskSummary, AuditReport, DashboardState, HelpState, …); one schema per artifact block, reused across storage / gates / structuredContent / widget props (ADR-0024). Data-only — no runtime effect until a tool imports a schema.

The server bundles the shared lib via tsup (noExternal: [/^@marvin-toolkit\//, ...]) into a single self-contained dist/server.js.

Validation

# Lint manifests + structure
node scripts/lint-manifests.mjs

# Lint the authored surfaces — frontmatter allowlists, skills/… references, wrapper coverage
node scripts/lint-skills.mjs

# Trigger-eval harness — guard it, then sweep every dataset with the mock decider
npm run eval:self-test
npm run eval:trigger

# Build the server
npm run build

# Test
npm run test

# Verify committed dist/ is in sync with source
node scripts/verify-dist.mjs

# Verify committed widget HTML is in sync + self-contained (ADR-0024)
node scripts/verify-widgets.mjs

# Storybook interaction + visual tests (widgets; CI runs the same trio)
npm run build-storybook -w @marvin-toolkit/widgets
npx http-server packages/marvin-widgets/storybook-static --port 6006 --silent &
npm run test-storybook -w @marvin-toolkit/widgets

# Local plugin validation
claude plugin validate .

CI (.github/workflows/validate-plugins.yml) runs the same checks plus ESLint, Prettier, and a stdio smoke-test that sends initialize to the server and verifies a valid response (serverInfo.name == "marvin").

Both drift guards take their baseline from git show HEAD:<path>, never from the working tree (scripts/lib/committed-artifact.mjs). They rebuild the artifact in place, and so does the build step that precedes them in CI, so a working-tree baseline would leave them comparing a fresh build against itself — which it did, until a bundle built inside a git worktree reached dev past two green guard steps. The consequence for local use: they judge what is committed, so a rebuilt artifact you have not staged yet is reported as out of sync (git add it). npm run test covers them through the root test/ suite, which runs after the workspace suites.

Whether a build is committable turns on the checkout having its own installed node_modules, not on it being a worktree. git worktree add gives you one with none, so @marvin-toolkit/* resolves by walking up past the checkout and esbuild bakes that longer relative depth into every module-path comment in dist/server.js: functionally identical, byte-different. tsup.config.ts warns when it sees no node_modules in the checkout; that warning means run npm install here, or rebuild in the main checkout, before committing. A worktree that has been installed into builds a committable bundle. Settle it either way without touching the committed artifact, which verify-dist cannot do because it rebuilds in place:

TMP=$(mktemp -d)
npm run build -w @marvin-toolkit/server -- --out-dir "$TMP"
diff <(git show HEAD:plugins/marvin/mcp/server/dist/server.js) "$TMP/server.js"

Only intended lines differ, so build here and commit. Hundreds of ../../../../node_modules comment lines differ, so use the main checkout.

Testing unreleased changes in a locally installed plugin

A local install (a symlink at ~/.claude/skills/<name> → plugins/marvin) serves build artefacts, not sources: mcp/server/dist/server.js and widgets/*.html. Only SKILL.md bodies are live. npm run dev:plugin rebuilds all three workspaces the plugin serves, in dependency order (mcp-shared → widgets → server); a new dist/server.js needs a session restart, while a rebuilt widget document is picked up on the host's next resources/read. While iterating on one widget, npm run build:watch -w @marvin-toolkit/widgets -- <name> keeps its committed HTML current.

npm run dev:watch is the standing loop that removes the manual step. It watches the three source trees plus every file a build actually reads without living under src — each workspace's compiler or bundler config, the tsconfig.base.json they extend, and each workspace's package.json — then maps each change to the smallest set of workspaces that can be affected and reruns their existing build scripts. A change under one widget's directory rebuilds that widget alone (≈1 s); shared widget code rebuilds all nine (≈5 s); a shared-package change rebuilds every consumer. Test and story files build nothing. Changes are coalesced. A failed build aborts the rest of that pass — like dev:plugin's && chain, so nothing is built against an artefact the failed step did not update — but never stops the watch itself, and the session-restart notice is printed only for a dist/server.js that was actually produced. Run it in a checkout that has its own node_modules: without one the bundle is byte-different and not committable, as above. npm run dev:watch -- --dry-run prints the plan and the current watch counts without building anything, which is the list to consult rather than one written out here.

Seeing the widgets render in chat

The plugin server is spawned by the Claude Code CLI, which implements no part of the MCP Apps extension, so a widget-bound tool always falls back to markdown there (ADR-0034). The desktop application's own MCP client does implement it — it advertises extensions: { "io.modelcontextprotocol/ui": { mimeTypes: ["text/html;profile=mcp-app"] } } — but only for the servers listed in claude_desktop_config.json. The local plugin symlink is no help either: it resolves to the main checkout, so a feature branch's widgets are invisible twice over.

npm run dev:widget-host closes both gaps. It rebuilds the three artefact workspaces of the checkout it is run from, then writes mcpServers.marvin-dev in claude_desktop_config.json pointing at that checkout, with CLAUDE_PROJECT_DIR set to it so the tools read that tree's .marvin/. Run it again from another worktree to follow another branch. Every other key in the config survives the read-modify-write, and the previous file is kept as .marvin-backup.

Restart the desktop application afterwards — the server process is spawned once per connection. A rebuilt widget document needs no restart: the ui:// resource is read from disk per request (ADR-0008), so build:watch is live. Only a new dist/server.js requires one.

Routing rule: which copy to call

Both copies of the tools are then in scope, marvin-dev (renders widgets) and the plugin's own (markdown fallback). They expose identical names, so the choice of server — not the tool, not the prompt — decides whether the user sees a widget. The intended contract is a widget in chat and the markdown fallback only in a terminal, so in this repository:

  • In the desktop application, a widget-bound tool is always invoked on marvin-dev. This overrides the prompt bodies, which name the marvin server: those bodies ship to end users, who have no second registration, and must stay as they are.
  • In the terminal, only the plugin's copy is connected, and it returns the markdown fallback by design. Nothing needs to be selected there, and marvin-dev must not be assumed present.
  • Nine tools bind a widget: audit, dashboard, handoff, help, report, summary, task, task-detail, tracker. Every other tool is text-only, so either copy will do.

marvin-dev follows whichever checkout dev:widget-host was last run from, and a merged worktree leaves the entry pointing at a path that still exists. Before trusting a rendered widget, confirm the entry resolves to the tree you are working in:

node -p "require(require('os').homedir()+'/Library/Application Support/Claude/claude_desktop_config.json').mcpServers['marvin-dev'].args[0]"

/marvin:widget-preview remains the answer for terminal users and for anyone who does not want a second server: it renders one widget plus its live payload into a self-contained file under .marvin/preview/.

Manually driving a tool

To exercise a tool over stdio without a rich MCP host (the same JSON-RPC conversation the e2e tests drive), use the dev driver after npm run build:

node scripts/mcp-call.mjs --list                              # enumerate registered tools
node scripts/mcp-call.mjs handoff '{"action":"list"}'         # call a tool; prints text + structuredContent
MARVIN_HANDOFF_DIR=/tmp/fix node scripts/mcp-call.mjs handoff '{"action":"list"}'   # point storage at a fixture
node scripts/mcp-call.mjs task '{"action":"create","type":"bug"}' --accept '{"title":"demo"}'  # drive an elicitation
node scripts/mcp-call.mjs verify '{"action":"run"}' --timeout 1800000   # widen the budget for a slow tool

The whole exchange is bounded by one budget: --timeout <ms> beats MARVIN_MCP_CALL_TIMEOUT_MS beats a default of 900000 (15 minutes). The default is generous because verify shells out to the project's real gates and takes minutes; nothing is lost by it, because a server that crashes on startup is reported the moment it exits rather than at the end of the budget.

Adding a new prompt

The canonical path is skill-backed — same content, three entry points:

  1. Create plugins/marvin/skills/<command>/SKILL.md with YAML frontmatter (name matching the directory, description). The description is the auto-discovery trigger Claude Code matches in chat. Follow the <group>-<command> naming scheme.
  2. Create plugins/marvin/commands/<command>.md with frontmatter description and a body that instructs Claude to read skills/<command>/SKILL.md and pass $ARGUMENTS. Use existing commit.md / sec-scan.md as templates. Every prompt outside the track-* group ships a wrapper — scripts/lint-skills.mjs fails the build without one.
  3. Add an entry to plugins/marvin/mcp/server/src/prompts/index.ts:
    {
      name: "<command>",            // becomes /marvin:<command>
      description: "...",           // short, slash-menu blurb
      skill: "<command>",           // points to skills/<command>/SKILL.md
    }
  4. Run npm run build inside plugins/marvin/mcp/server to refresh dist/server.js.
  5. Commit src/, dist/, the new SKILL.md and the command file together — CI verifies dist is in sync and that SKILL.md / commands have valid frontmatter.
  6. Bump the version with npm run sync-version <x.y.z> (see Version bumping).

For prompts with no skill (thin tool wrappers), use body: "..." inline and skip step 1. Step 2 applies to every group except track-*: a skill-less prompt is still a command a user types, so it ships a commands/ wrapper. track-* is the one group the pin exempts, and the exemption is enforced in both directions — a track-* prompt gets no commands/ entry, and scripts/lint-skills.mjs fails the build if one is added, because those prompts route between tools and have no prose to duplicate. Either way, a skill-less prompt gets no skill directory and no trigger dataset (a dataset with no matching skill directory is reported as an orphan).

Adding a new MCP tool

  1. Create plugins/marvin/mcp/server/src/tools/<name>.ts with a defineTool({...}) export.
  2. Wire it into src/server.ts (the build factory returns it under tools).
  3. Tool input schemas use zod. Use elicit(server, message, schema) for interactive forms inside handlers.
  4. Rebuild and commit dist/.

Adding a new agent

  1. Create plugins/marvin/agents/<agent-name>.md with YAML frontmatter containing description.
  2. Specify available tools and domain constraints in the body.
  3. Bump the version with npm run sync-version <x.y.z> (see Version bumping).

Version bumping

The whole repo shares one version, sourced from plugins/marvin/.claude-plugin/plugin.json. Bump everything with a single command:

npm run sync-version 0.2.0   # set the version everywhere, then rebuild
npm run sync-version         # re-propagate the current plugin.json version
npm run build                # rebuild dist/ so the server reports the new version

sync-version propagates the version to every workspace package.json and the marketplace plugin entry. The server's runtime VERSION is injected from its package.json at build time (tsup.config.ts), never hand-edited. npm run lint:manifests fails the build when any of them drift, so a partial bump can never ship. The marketplace's top-level metadata.version is deliberately independent — bump it by hand only when the manifest schema or plugin list changes.

  • Patch — prompt body tweaks, bug fixes
  • Minor — new prompts, tools, or agents
  • Major — breaking changes (server key rename, prompt name removal/rename, schema break)

Branching & releases

Two long-lived branches (ADR-0019): dev is the integration branch and the base for all work; main is release-only. Cut topic branches (feat/*, fix/*, chore/*, docs/*, sec/*) off dev and open every PR into dev — never commit directly to dev or main. A release is a dev → main promotion PR followed by a vX.Y.Z tag on main, which .github/workflows/release.yml turns into a GitHub Release (ADR-0014).

Key files

  • .claude-plugin/marketplace.json — marketplace manifest (single marvin plugin)
  • plugins/marvin/.claude-plugin/plugin.json — plugin manifest
  • plugins/marvin/.mcp.json — MCP server registration (the slash prefix lives here)
  • plugins/marvin/mcp/server/src/prompts/index.ts — the 59 prompt registrations
  • packages/marvin-mcp-shared/ — shared TypeScript library consumed by the server
  • docs/adr/0001-single-plugin-consolidation.md — current architecture decision
  • docs/adr/0002-tool-backed-verification.md — verify gate moved from prose to a tool
  • docs/adr/0003-tool-backed-dor.md — Definition-of-Ready moved from prose to the spec tool
  • docs/adr/0007-marvin-working-directory.md — the unified .marvin/ working-directory convention
  • docs/adr/0008-mcp-door-resource-resolution.md — the MCP door resolves skills/... resource paths; per-resource delegation convention
  • docs/adr/0013-self-contained-server-bundle.md — why dist/server.js is bundled and committed
  • docs/adr/0014-distribution-release-model.md — git-tag → GitHub Release; no npm publish
  • docs/adr/0020-debugger-agent.md — root-cause analysis as the marvin-debugger agent
  • docs/adr/0021-lessons-feedback-loop.md — the tool-backed .marvin/memory/ lessons feedback loop
  • docs/adr/0023-pr-command-family.md — the unified pr-* PR lifecycle (create / review / resolve / merge)
  • docs/adr/0024-mcp-apps-widget-architecture.md — MCP Apps widget layer: data-first staging + shared contracts/ data schemas
  • docs/adr/0025-kanban-board-only.md — kanban goes board-only; git ops fold into the commit/pr-create skills, link-pr captures the PR URL
  • docs/adr/0026-configurable-status-model.md — statuses are project data (.marvin/config.json statuses), lifecycle commands are role-driven, contracts carry {key, role} + role roll-ups
  • docs/adr/0027-tool-backed-adr-lifecycle.md — the adr tool + adr-* surface: host-adaptive corpus, dual-style parser, human-gated accept/supersede/sync
  • docs/adr/0028-lessons-hygiene-and-recall-expansion.md — lessons v2: stats/prune hygiene surface, near-duplicate guard on add, wider recall/capture wiring
  • docs/adr/0029-refactoring-command-family.md — the refactor-* family: read → plan → apply split, findings registers under .marvin/refactor/, verify-gated apply rails
  • docs/adr/0030-toolbox-dashboard-and-usage-log.md — the dashboard tool (whole-toolbox report, extended DashboardState) + the local self-ignoring .marvin/usage/ events log (implemented by WP7)
  • docs/adr/0031-track-command-group-rename.md — the kanban-* group renamed to track-*; the artifact is the "board" (.marvin/track/, board_counts), accepted ADRs keep the old name as history
  • docs/adr/0032-track-surface-reduction.md — the track surface reduced 14 → 7 prompts (track-new, routing track-list/track-move); tools, actions, and widget bindings unchanged
  • docs/adr/0033-report-export.md — report export is template-only: Claude fills the shipped print template (skills/report-export/references/, .mvroot-locked by export-template.test.ts); no export code in the server
  • packages/marvin-widgets/ — the React browser workspace for MCP Apps ui:// widgets (ADR-0024); builds committed self-contained HTML to plugins/marvin/widgets/
  • plugins/marvin/mcp/server/src/resources/widgets.ts — server-side ui:// widget ResourceDefs (no ext-apps import)
  • scripts/lint-manifests.mjs — manifest + structure linter
  • scripts/verify-dist.mjs — committed-dist freshness guard
  • scripts/verify-widgets.mjs — committed widget-HTML freshness + self-contained guard (ADR-0024)
  • .github/workflows/validate-plugins.yml — CI pipeline

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.