/marvin:redteamfrom marvin
Performs adversarial code review to find weaknesses in architecture, stubs, security, and story completeness, exposing them with failing tests.
Ships in marvin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find weaknesses and expose them with failing tests. You are the adversary — your job is to break things, not fix them.
This skill MAY: read all code, write NEW test files, run tests, grep for patterns. This skill MAY NOT: modify implementation code, modify existing tests, fix bugs, delete files.
NEVER modify implementation. Only EXPOSE problems with new failing tests.
| Shortcut | Why It Fails | The Cost |
|---|---|---|
| "Just fix the bug — it's a one-liner" | You're the adversary, not the implementer. Fixing undermines the feedback loop | The implementer never sees the issue, learns nothing |
| "Skip architecture check — the code works" | Working code with wrong architecture is a time bomb | Tech debt accumulates invisibly |
| "The stubs are fine for now" | "For now" becomes "forever" without a failing test to enforce it | Stubs ship to production |
| "Security isn't relevant here" | Every input boundary is a security boundary | Vulnerabilities ship undetected |
Skip if no architecture doc is available.
If $ARCH_PATH is set (pipeline mode): Read the architecture doc.
If standalone: Search for *.architecture.md near the source code, or ask.
For each dependency in the architecture doc's Dependencies table:
# Check if the dependency is imported in source files
grep -r "from ['\"]${DEPENDENCY}['\"]" src/ --include="*.ts" --include="*.js"
For each missing import: Write a conformance test that fails:
it("should import ${dependency} (per architecture doc)", () => {
const source = readFileSync("src/services/${file}", "utf-8");
expect(source).toMatch(/import.*from\s+['"]${dependency}['"]/);
});
For each integration pattern in the architecture doc:
Exit: All architecture violations exposed with failing tests.
Scan implementation files for common stub patterns:
# Hardcoded returns
grep -rn "return.*{.*:.*}" src/ --include="*.ts" | grep -v "test\|spec\|mock"
# TODO/FIXME/stub markers
grep -rn "TODO\|FIXME\|STUB\|HACK\|XXX\|PLACEHOLDER" src/ --include="*.ts"
# "Not implemented" patterns
grep -rn "throw.*not.*implement\|NotImplementedError\|TODO" src/ --include="*.ts"
# Regex classifiers where LLM calls should be
grep -rn "new RegExp\|\.match(\|\.test(" src/ --include="*.ts" | grep -v "test\|spec"
See stub-patterns.md for the complete detection playbook.
For each stub found: Write a test that exposes it:
it("should produce different outputs for different inputs (not hardcoded)", () => {
const result1 = process(input1);
const result2 = process(input2);
expect(result1).not.toEqual(result2);
});
Exit: All stubs exposed with failing tests.
Scan for common security issues at input boundaries:
Input validation:
Auth/authz:
Data handling:
For each issue found: Write a test that exposes the vulnerability:
it("should reject SQL injection in search query", () => {
expect(() => search("'; DROP TABLE users; --"))
.toThrow(); // or return error, not execute the injection
});
Exit: Security issues exposed with failing tests.
Skip if no stories available.
Read the stories file and check each acceptance criterion:
For any gap found: Write a test that exposes it.
Exit: All story gaps exposed with failing tests.
After all priorities are checked, summarize findings:
## Red Team Report
### Architecture Conformance
- {N} violations found, {M} tests written
- Missing dependencies: {list}
- Pattern violations: {list}
### Stub Detection
- {N} stubs found, {M} tests written
- {list of stub locations}
### Security
- {N} issues found, {M} tests written
- {list of issues}
### Story Completeness
- {N} gaps found, {M} tests written
- {list of missing criteria}
### New Test Files
- {path}: {what it tests}
Before completing, verify:
./attack-categories.md — Security and architecture audit checklist./stub-patterns.md — Common stub patterns and grep commands to detect themWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ondrej-svec/heart-of-gold-toolkit --plugin marvin13 skills in this plugin
/compoundCapture knowledge — solutions, context docs, learnings, and principles. Use after fixing non-trivial bugs, creating context for AI, or discovering patterns worth preserving. Triggers: compound, document solution, capture fix, save solution, knowledge compound, document this, save this fix, context, create context, update context, build context, learn, save learning, remember this.
/copy-editorTwo-layer copy editor. Layer 1 is a deterministic typography audit (regex-level, auto-closeable). Layer 2 is LLM judgment — reject-list hits, nominal-style detection, clarity/ambiguity pass for participant-facing content, voice/register check, and spoken- readability read. Loads repo-local .copy-editor.yaml to compose the baked-in language profile with the repo's style guide, reject list, examples, and voice doctrine. Czech is a full profile; English is a stub. **Activate automatically when the conversation edits or creates any file matching a repo's .copy-editor.yaml include scope, when the user asks about Czech or participant-facing copy, when reviewing content PRs, or when a work slice would otherwise close without a Layer 2 pass on edited visible-surface content.** Do not wait to be invoked by name. Explicit trigger phrases: copy edit, editorial pass, czech review, czech copy review, audit copy, check typography, review prose, tighten copy.
/groundSurvey a repo and ground externally on the relevant parts of the internet. Local manifest scan + CLAUDE.md/AGENTS.md + recent git activity, then external grounding via WebSearch, WebFetch, and gh — synthesized into a terse, dated, sourced briefing cached at docs/ground/<fingerprint>.md with a 7-day freshness window. Composable: invoked standalone or embedded as a pre-flight phase in other skills. Triggers: ground, ground yourself, ground myself, survey and ground, pre-flight grounding, research the stack, what's new in.
/harness-syncReplicate a known-good Claude Code harness onto another machine or into another repo. Clones or updates the user's config repo, verifies it against the shipped conventions, reinstalls plugin marketplaces, and reports drift between two machines. Use when setting up a second machine, onboarding a new laptop, recovering a harness, or checking whether two machines have diverged. Triggers - harness sync, replicate harness, set up my config on this machine, sync claude config, new laptop setup, harness drift, are my machines in sync./harness-upInstall harness-engineering doctrine into a repository — short root AGENTS.md, docs/ taxonomy (plans, ADRs, solutions), verification rules, and project-scoped Claude Code plugins. Works on empty repos (greenfield scaffold), existing repos (survey + upgrade), and ports of existing systems. Distinct from `marvin:scaffold` (which installs deps and configs); distinct Triggers: harness up, harness this repo, set up AGENTS.md, agent doctrine, make this repo agent-ready, init harness, scaffold agent context.
/quick-reviewFast opinionated quality pass — simplicity, test integrity, and correctness. Not a deep review. One pass, one voice. For depth, use /review (deep-thought). Triggers: quick review, quality check, sanity check, check my code, is this good.
Other plugins' skills for the same job