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
- Very specific: line 50
Every service file marvin generates lives under a single hidden .marvin/ directory at the project root, one subdirectory per command group …
- Very specific: line 139
All three entry points lead to the same prose.
- Very specific: line 295
Only intended lines differ, so build here and commit.
- Very specific: line 392
Create plugins/marvin/skills/<command>/SKILL.md with YAML frontmatter (name matching the directory, description).
- Very specific: line 393
Create plugins/marvin/commands/<command>.md with frontmatter description and a body that instructs Claude to read skills/<command>/SKILL.md …
- Very specific: line 394
Add an entry to plugins/marvin/mcp/server/src/prompts/index.ts:
- Very specific: line 402
Run npm run build inside plugins/marvin/mcp/server to refresh dist/server.js.
- Very specific: line 403
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 …
- Very specific: line 410
Create plugins/marvin/mcp/server/src/tools/<name>.ts with a defineTool({...}) export.
- Very specific: line 417
Create plugins/marvin/agents/<agent-name>.md with YAML frontmatter containing description.
≈ “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.
Files
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. Seedocs/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 artefactWorking 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):
| Path | Written by | Contents |
.marvin/task/ | task-* pipeline | spec <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 gate | the 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-* scanners | scan / threat-model / compliance / pentest reports |
.marvin/refactor/ | refactor-* family | numbered 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-* tracker | task .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/ | handoff | session-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 tool | critic 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: true | the 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.json | track-* tracker, verify | base_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:
| Group | Source | Examples |
| (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:
- Claude Code auto-discovery. Skills live under
plugins/marvin/skills/<command>/SKILL.md. Their YAML frontmatter (name,description, optionaldisable-model-invocation) is what Claude Code matches against user prose like "сделай коммит" — the skill loads automatically. Thenamematches the directory and the command. - Markdown slash commands. Each
plugins/marvin/commands/<command>.mdis a thin Claude Code slash command that instructs the model to read its matchingSKILL.mdand pass$ARGUMENTS. Surfaces as/<command>(e.g./commit,/sec-scan,/task-start). - MCP slash commands. Each prompt entry in
plugins/marvin/mcp/server/src/prompts/index.tsdeclaresskill: "<command>". At request time the server reads the correspondingSKILL.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 frontmatterdescriptionand a body that delegates to the matching skill. Optional$ARGUMENTSplaceholder. - MCP prompts — Thin server-side registration that exposes a skill (or, for the
track-*group, an inlinebody:) 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/helptools (file CRUD, role-driven transitions over the configured status set plus a genericmove— ADR-0026, PR-URL capture vialink-pr— ADR-0025, theconfigaction that shows/edits.marvin/config.jsonfail-closed, dashboards),verify— the task pipeline's quality-gate runner (concurrent gates, single merge point, config-first gate resolution from.marvin/config.json, writesverification.md; see ADR-0002/0009; a gate whose binary is absent is recordednot-runrather than failed, and every run records the tree it proved —head_sha,branch,dirty, aworktree_digestover a structural path list, ADR-0035; two optional inputs carry that:specSlugwrites/reads.marvin/task/runs/<slug>.md, andallowStalewaives the gate's freshness refusal only, never a FAIL and never the unwaivable no-test-evidence BLOCK; a third actionoraclesruns 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→ akind: commandref →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 advisoryred_greenfield that never flipsdecision, ADR-0036 — everyregression: truecriterion of a bugfix, and since ADR-0047 any onekind: testcriterion 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 terminaltask-metricsblock, beside the answer and never inside it —gateResultserialisesreasoninto thedeliver-gateblock thatcritique-protocol.test.mjspins, so the record's path goes into the markdown) — andspec, the tool-backed Definition-of-Ready gate for/marvin:task-start(parses and zod-validates thespec-contractYAML block fail-closed — schema, file-path existence, the AC⇄files⇄tests traceability triple — including its transpose, so asatisfieslist 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: apath:linecitation past the end of its file (cite-lines, resolved throughgit ls-fileswhen 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 missingfailure: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-sizeover3 KB + 400 B per file + 500 B per criterion,ac-length,intent-length, andsecurity-nfrfor arisk: highfeature without that section); see ADR-0003/0004/0005; its surface isaction: dor | seal | scope | next | list | audit | progress | resume(wherescopeFAILs on any changed file outside the contractfilesplus the caller'sallowlist — diffed from the merge base ofbaseandHEAD, so base-branch commits that landed after the fork are not counted — never counts.marvin/or the spec file, and reports paths matching ascope.exemptpattern as exempted by-products rather than violations (ADR-0045), throughpartitionScopeinlib/scope.ts, the one judgement it shares with the roll-up's Q1 so the two cannot disagree; with noscope.exemptits answer is byte-identical to before), withmodekept as a deprecated synonym bounded to the original three —action ?? mode ?? "dor", a disagreeing pair refused naming both;sealnow returns two checks rather than one hand-picked verdict, refusing ashipped/supersededspec 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 inensureMetricsRecord;nextandlistare corpus reads overreadSpecCorpusthat emit ajson spec-corpusblock instead of a verdict and never error on an empty or absent directory, ADR-0037;auditlints the corpus as a whole — duplicate numbers, bounded numbering holes, slug collisions, danglingdepends_on, missing seals, statuses outside the vocabulary, files that do not identify themselves as specs — behind/marvin:task-audit; andprogress/resumeappend to and read back the resumability journal, which is what makesspeca writer for the first time).lessonsis the tool-backed lessons-learned store (.marvin/memory/:add/searchtyped lessons captured at delivery and bymarvin-debugger, recalled attask-startintake; see ADR-0021).adrowns the decision-record lifecycle mechanics (ADR-0027): host-adaptive corpus resolution, a dual-style parser,next | list | index | auditreads, and the fail-closed mutating pair — gate-checkedaccept, paired-linksupersede— surfaced by theadr-*skills, whose accept/supersede/sync entries are human-run.dashboardrenders 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.jsonlexists — emitting the extendedDashboardStatecontract alongside the text. The v1SecurityInventory/RefactorInventoryblocks were removed in 0.10.0:DashboardAuditssupersedes them, and the refactor register counts by kind were dropped rather than relocated.metricsis the fourteenth tool and one of three callers of the.marvin/metrics/writer (ADR-0043/0044 — the writer isstorage/metrics.ts, reached through the sharedlib/metrics-record.tsthat owns the record's filename rule; the other two callers are thespecseal gate, which CREATES the record for every started run, and theverifydelivery gate, which appends the terminal block on ALLOW only, so a record no longer depends on a session issuing a prose-instructed call):recordappends one livemetric-eventblock — validated fail-closed per kind against the runtime mirror ofcontracts/metrics.tsinstorage/metrics.ts, whichtest/metrics.test.mjscompiles beside the contract and asserts agrees with it, and answering acritic-dispatchwith that critic's dispatch budget fromlib/critic-budget.ts(two for the spec critic, one on the light tier, three for the diff critic) aswithin,finalorexceeded, recording the event either way; the roll-up'srework.critic_budget_exceeded(R5) judges the same budget — androllupcollects the eight inputs inlib/metrics-collect.ts(the progress journal from the SPEC directory'sruns/, the oracle and verification-run journals and the per-spec run from the.marvin/-pinnedruns/, receipts and events throughprojectScopedDir, git through thechangedFilesForScopethe scope gate now shares fromlib/git.ts, and the config'sscope.exemptlist, which the roll-up judges with the scope gate's ownpartitionScopeso exempt by-products leavescope_drift.undeclaredforscope_drift.exempt— null when no list is configured) and hands them to the purerollUpMetrics(which also records the spec'sspec_size— bytes, words and the ADR-0046 budget — reported as Q13/Q14), appending the terminaltask-metricsblock and reporting whether git ignores the record. Its input is.strict(), the third tool afterspecandreport. Four read-side helpers round out the fourteen tools:summaryaggregates a finished task's criteria, gates, commits, lessons and links into a delivery digest (/marvin:task-summary),handofflists the session-continuation docs under.marvin/handoff/(/marvin:handoff-list),auditrecovers the typedaudit-reportblocks thesec-*scanners write under.marvin/security/and returns them as anAuditListPayload(/marvin:sec-report; ADR-0024 #7 Tier-2), andreportscans every document marvin generates under.marvin/— security, refactor, task, handoff, critique — into oneReportListPayloadwith server-computed staleness (/marvin:reports; docs/design/reports-widget.md). ADR-0039 added the fifth group:.marvin/critique/receipts arrive asdocumentenvelopes taggedcritique · <rollUp>, carrying a specLinkRefon theirsubjectslug; staleness became a totalRecord<ReportGroup, boolean>(DECAYS) so the next group cannot default silently through a removedelsebranch, andtest/report-groups.test.mjsderives the group set from the contract and asserts it against every code enumeration and twelve pinned prose sites.reportgained finding identity in ADR-0038: everyReportFindingcarries a server-computedfingerprint(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 inlib/reports.tsand nowhere else; a second actiontriagereconciles the live findings against the.marvin/report/baseline intonew/persisting/regressedplus aresolvedroll-up, where the live set is every security envelope except afixrecord, plus only the NEWEST refactor register per(kind, slug)— the scanners overwrite fixed filenames, while refactor registers andsec-fix'sfix-<slug>.mdboth 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); onlysnapshot: truewrites, because_meta.ui.resourceUribinds at tool level, so an action-keyed write would let a host that merely opens the widget consume the baseline.reportis also the second tool afterspecwith a.strict()input schema: a caller who intendssnapshot: trueand 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.jsonis the plugin wrapper shape (events under a top-levelhookskey) and is loader-discovered by existence, soplugin.jsonmust declare nohookskey. Two blockingPreToolUseguards on theBashmatcher, shipped by default and armed with no enablement step:bypass-guard.mjsrefusesgit commit --no-verify/-nandgit merge --no-verify, plus a force-push or deletion whose resolved target is in the protected union (configbase_branch∪origin/HEAD∪main/master/dev/develop);secret-guard.mjsrefuses a commit whose added lines matchSECRET_PATTERNS, mirrored into thesec-gateskill'ssecret-patternsblock and parity-tested. Both sharelib/hook-io.mjs, exit 2 ONLY on a confirmed match and 0 on every other path including any throw, and are disabled byhooks.enabled: falsein.marvin/config.jsonorMARVIN_HOOKS_DISABLED=1— a switch the hooks read from$CLAUDE_PROJECT_DIRalone, deliberately ignoringMARVIN_TASKS_CONFIG.scripts/lint-manifests.mjsrule 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 twomarvin-tm-*-critics, andmarvin-debugger) pin their access with atools:frontmatter allowlist — a subagent that omitstools:inherits every tool, so the allowlist is what actually enforces the read-only contract. Code-writing agents (marvin-tm-executor,marvin-tm-review-fixer) andmarvin-researcherdeliberately omittools:and inherit the full toolset.
The
track-*group has noskills/orcommands/entries. Its 7 prompts (ADR-0032) are thin tool-invocation wrappers (inlinebody:) that call and route between thetask/task-detail/trackerMCP tools. There is no standalone workflow prose to duplicate into a skill. Git operations on board tasks live in the board-awarecommit/pr-createskills (ADR-0025).
Server key and slash prefix
| Plugin | Server key | Slash prefix |
| marvin | marvin | /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). Vitevite-plugin-singlefilebuild each widget to one self-contained, minified HTML file (a strict host CSP blocks external hosts) written to the committedplugins/marvin/widgets/<name>.html. Widgets are React-shaped code that renders on Preact:react/react-domare aliased topreact/compatvia@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 likedist/). Tests use@testing-library/preact; Storybook keeps@storybook/react-vitewith the compat aliases injected viaviteFinal. 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 — nodangerouslySetInnerHTML, no sanitiser; text is JSX-escaped and linkhrefs are scheme-allowlisted), plus a 3-type link model (links.ts, over the sharedLinkRef). Amock-hostutil (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.tsreturnsResourceDef[]for theui://marvin/<name>.htmldocuments (mimeTypetext/html;profile=mcp-app), served through the sharedregisterResource(NOT ext-apps'registerAppResource); itsreadloads the committed HTML frompackRootat request time (ADR-0008). Thetasktool binds its widget with a plainmeta.ui.resourceUriobject literal — sotsupnever bundles ext-apps/React intodist/server.js. - The terminal fallback is unchanged for a client that does not advertise the extension.
_metais additive; such a client ignores it and receives byte-identicalcontent, exactly as before. A client that does advertiseextensions["io.modelcontextprotocol/ui"]receives a one-line digest in place of the markdown panel, plus a_renderedkey injected intostructuredContenttelling 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 sharedregisterToolrather than per tool, so a tenth widget-bound tool inherits it; it is declined whole if the tool binds no widget, the result carries nostructuredContent, the result is an error, or the payload already owns a_renderedkey (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.mjsis the escape hatch (ADR-0034): it drives the committeddist/server.jsover stdio, resolves the widget generically fromtools/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.mjsguards the committed HTML likeverify-distguardsdist/: it rebuilds@marvin-toolkit/mcp-sharedthen@marvin-toolkit/widgets, hash-compares each committedplugins/marvin/widgets/*.htmlagainst 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 thetest-storybookpostVisit 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 withnpm run test-storybook:update -w @marvin-toolkit/widgetsand commit the changed PNGs alongside the source. Full workflow (theming,parameters.visualopt-out, platform bootstrap) inpackages/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 withdata-theme), theMvRootboundary 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. Thehelpwidget renders the welcome dashboard from thehelptool'sHelpState: 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. Thereportswidget is the unified viewer over every generated.marvin/report (reporttool,/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/ToolDefinterfaces anddefineToolhelper runPackServer({ name, version, promptsDir, packRoot, build, onInvoke? })— the standard server entry. The optionalonInvoke(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 loaderscontracts/— 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 themarvinserver: 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-devmust 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 toolThe 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:
- Create
plugins/marvin/skills/<command>/SKILL.mdwith YAML frontmatter (namematching the directory,description). Thedescriptionis the auto-discovery trigger Claude Code matches in chat. Follow the<group>-<command>naming scheme. - Create
plugins/marvin/commands/<command>.mdwith frontmatterdescriptionand a body that instructs Claude to readskills/<command>/SKILL.mdand pass$ARGUMENTS. Use existingcommit.md/sec-scan.mdas templates. Every prompt outside thetrack-*group ships a wrapper —scripts/lint-skills.mjsfails the build without one. - 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 } - Run
npm run buildinsideplugins/marvin/mcp/serverto refreshdist/server.js. - Commit
src/,dist/, the newSKILL.mdand the command file together — CI verifies dist is in sync and that SKILL.md / commands have valid frontmatter. - 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
- Create
plugins/marvin/mcp/server/src/tools/<name>.tswith adefineTool({...})export. - Wire it into
src/server.ts(thebuildfactory returns it undertools). - Tool input schemas use
zod. Useelicit(server, message, schema)for interactive forms inside handlers. - Rebuild and commit
dist/.
Adding a new agent
- Create
plugins/marvin/agents/<agent-name>.mdwith YAML frontmatter containingdescription. - Specify available tools and domain constraints in the body.
- 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 versionsync-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 (singlemarvinplugin)plugins/marvin/.claude-plugin/plugin.json— plugin manifestplugins/marvin/.mcp.json— MCP server registration (the slash prefix lives here)plugins/marvin/mcp/server/src/prompts/index.ts— the 59 prompt registrationspackages/marvin-mcp-shared/— shared TypeScript library consumed by the serverdocs/adr/0001-single-plugin-consolidation.md— current architecture decisiondocs/adr/0002-tool-backed-verification.md—verifygate moved from prose to a tooldocs/adr/0003-tool-backed-dor.md— Definition-of-Ready moved from prose to thespectooldocs/adr/0007-marvin-working-directory.md— the unified.marvin/working-directory conventiondocs/adr/0008-mcp-door-resource-resolution.md— the MCP door resolvesskills/...resource paths; per-resource delegation conventiondocs/adr/0013-self-contained-server-bundle.md— whydist/server.jsis bundled and committeddocs/adr/0014-distribution-release-model.md— git-tag → GitHub Release; no npm publishdocs/adr/0020-debugger-agent.md— root-cause analysis as themarvin-debuggeragentdocs/adr/0021-lessons-feedback-loop.md— the tool-backed.marvin/memory/lessons feedback loopdocs/adr/0023-pr-command-family.md— the unifiedpr-*PR lifecycle (create / review / resolve / merge)docs/adr/0024-mcp-apps-widget-architecture.md— MCP Apps widget layer: data-first staging + sharedcontracts/data schemasdocs/adr/0025-kanban-board-only.md— kanban goes board-only; git ops fold into thecommit/pr-createskills,link-prcaptures the PR URLdocs/adr/0026-configurable-status-model.md— statuses are project data (.marvin/config.jsonstatuses), lifecycle commands are role-driven, contracts carry{key, role}+ role roll-upsdocs/adr/0027-tool-backed-adr-lifecycle.md— theadrtool +adr-*surface: host-adaptive corpus, dual-style parser, human-gated accept/supersede/syncdocs/adr/0028-lessons-hygiene-and-recall-expansion.md— lessons v2:stats/prunehygiene surface, near-duplicate guard onadd, wider recall/capture wiringdocs/adr/0029-refactoring-command-family.md— therefactor-*family: read → plan → apply split, findings registers under.marvin/refactor/, verify-gated apply railsdocs/adr/0030-toolbox-dashboard-and-usage-log.md— thedashboardtool (whole-toolbox report, extendedDashboardState) + the local self-ignoring.marvin/usage/events log (implemented by WP7)docs/adr/0031-track-command-group-rename.md— thekanban-*group renamed totrack-*; the artifact is the "board" (.marvin/track/,board_counts), accepted ADRs keep the old name as historydocs/adr/0032-track-surface-reduction.md— the track surface reduced 14 → 7 prompts (track-new, routingtrack-list/track-move); tools, actions, and widget bindings unchangeddocs/adr/0033-report-export.md— report export is template-only: Claude fills the shipped print template (skills/report-export/references/,.mvroot-locked byexport-template.test.ts); no export code in the serverpackages/marvin-widgets/— the React browser workspace for MCP Appsui://widgets (ADR-0024); builds committed self-contained HTML toplugins/marvin/widgets/plugins/marvin/mcp/server/src/resources/widgets.ts— server-sideui://widgetResourceDefs (no ext-apps import)scripts/lint-manifests.mjs— manifest + structure linterscripts/verify-dist.mjs— committed-dist freshness guardscripts/verify-widgets.mjs— committed widget-HTML freshness + self-contained guard (ADR-0024).github/workflows/validate-plugins.yml— CI pipeline
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
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.

