/marvin:harness-syncfrom marvin
Replicates a Claude Code harness to another machine or repo by cloning config, verifying conventions, reinstalling plugins, and reporting drift. Use for new laptop setup or sync checks.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Move a working Claude Code harness to a second machine, and keep the two from drifting apart afterwards.
Distinct from its siblings: marvin:harness-up writes doctrine into a target
repo (AGENTS.md, docs taxonomy). marvin:scaffold installs dependencies and
configs. This skill replicates the harness itself — ~/.claude.
This skill MAY: clone or pull the user's config repo, read local config,
run claude plugin install commands, run the harness validator, report drift.
This skill MAY NOT: push to any remote, commit on the user's behalf, write
credentials, overwrite an existing ~/.claude without explicit confirmation,
or copy machine-local state (logs, auto memory, plugin caches, tokens).
| Shortcut | Why It Fails | The Cost |
|---|---|---|
"Just rsync the whole ~/.claude" | Carries credentials, logs, plugin caches and per-machine auto memory | Tokens leak onto a second machine; caches for the wrong architecture |
| "Clone over the existing config, it's probably the same" | It usually is not, and the delta is invisible after the fact | Local-only skills and hooks destroyed with no record |
| "Config is tracked, so the machines match" | Plugins install out-of-band; a tracked settings.json can name marketplaces that were never added here | Skills silently missing, hooks referencing plugins that aren't installed |
| "Skip validation, the repo was fine on the other machine" | Absolute paths, missing binaries and unexecutable scripts are all machine-specific | A harness that looks installed and silently no-ops |
Entry: Skill invoked, optionally with check, install, or drift.
Resolve the mode:
| Signal | Mode |
|---|---|
| Argument given | Use it |
~/.claude/.git absent | install — nothing here yet |
~/.claude/.git present, argument absent | check |
If install and ~/.claude already contains un-tracked local work, stop and
ask via AskUserQuestion before touching anything.
Exit: Mode known.
Entry: Mode known.
Find the config repo:
git -C ~/.claude remote get-url origin if the repo existsConfirm the remote is reachable (git ls-remote --exit-code) and private
(gh repo view --json visibility). A public harness repo is a finding, not a
detail — report it and stop for confirmation. Config files routinely name
internal hostnames, project paths and tooling.
Exit: Reachable private remote identified.
Entry: Source identified.
This split is the substance of the skill. State it explicitly before acting.
Travels — the portable harness:
CLAUDE.md · settings.json · output-styles/ · rules/ · skills/ ·
agents/ · hooks/ · scripts/ · docs/
Never travels — machine-local or secret:
| Path | Why |
|---|---|
.credentials.json | Auth token for this machine only |
secrets/ | API keys |
logs/, history.jsonl, hook-approvals.log | Capture raw tool inputs — this is how credentials leak into a repo |
projects/ | Auto memory, per-machine and per-repo by design |
plugins/ | Caches reinstalled from marketplaces, often arch-specific |
daemon/, jobs/, tasks/, session-env/, shell-snapshots/, file-history/ | Runtime state |
If any of these are tracked in the source repo, report it as a finding before cloning. Something has already gone wrong upstream.
Exit: Split confirmed against the repo's actual .gitignore.
Entry: Split confirmed.
install~/.claude (or into a temp dir and merge, if the directory is
non-empty and the user confirmed).chmod +x every script under hooks/ and scripts/ — the executable bit
survives git, but verify rather than assume.settings.json.extraKnownMarketplaces, then
install each plugin listed in enabledPlugins.checkgit -C ~/.claude fetch then report ahead/behind against origin/main, plus
any uncommitted local changes. Do not pull automatically — local edits may be
deliberate work not yet committed.
driftCompare this machine against the committed state and report:
settings.json that are not installed hereenabledPluginssettings.json that are missing or non-executableExit: Installed, or drift reported.
Entry: Config present locally.
Run the harness validator if the repo ships one
(~/.claude/scripts/validate-harness.sh). Otherwise assert directly:
settings.json parsestimeout:* — prefix
matchers cannot express either, so those rules are silently droppeddescription; no agent: value that is not a real
subagent typejq, formatters) are present on this machineReport failures verbatim. A harness that installs cleanly and silently no-ops is the failure mode this phase exists to catch.
Exit: Verification reported.
Entry: Verified.
Report: what was installed, what differs from the source, what needs manual attention (launchd agents, OS-level permissions, credentials to authenticate on this machine).
State plainly that credentials were not copied and must be established
here — claude login, and any API keys the skills expect in secrets/.
marvin:harness-up.marvin:scaffold.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ondrej-svec/heart-of-gold-toolkit --plugin marvin13 skills in this plugin
/compoundCapture knowledge — solutions, context docs, learnings, and principles. Use after fixing non-trivial bugs, creating context for AI, or discovering patterns worth preserving. Triggers: compound, document solution, capture fix, save solution, knowledge compound, document this, save this fix, context, create context, update context, build context, learn, save learning, remember this.
/copy-editorTwo-layer copy editor. Layer 1 is a deterministic typography audit (regex-level, auto-closeable). Layer 2 is LLM judgment — reject-list hits, nominal-style detection, clarity/ambiguity pass for participant-facing content, voice/register check, and spoken- readability read. Loads repo-local .copy-editor.yaml to compose the baked-in language profile with the repo's style guide, reject list, examples, and voice doctrine. Czech is a full profile; English is a stub. **Activate automatically when the conversation edits or creates any file matching a repo's .copy-editor.yaml include scope, when the user asks about Czech or participant-facing copy, when reviewing content PRs, or when a work slice would otherwise close without a Layer 2 pass on edited visible-surface content.** Do not wait to be invoked by name. Explicit trigger phrases: copy edit, editorial pass, czech review, czech copy review, audit copy, check typography, review prose, tighten copy.
/groundSurvey a repo and ground externally on the relevant parts of the internet. Local manifest scan + CLAUDE.md/AGENTS.md + recent git activity, then external grounding via WebSearch, WebFetch, and gh — synthesized into a terse, dated, sourced briefing cached at docs/ground/<fingerprint>.md with a 7-day freshness window. Composable: invoked standalone or embedded as a pre-flight phase in other skills. Triggers: ground, ground yourself, ground myself, survey and ground, pre-flight grounding, research the stack, what's new in.
/harness-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.
/redteamAdversarial review — find weaknesses and expose them with failing tests. Checks architecture conformance, stub detection, security, and story completeness. Never modifies implementation. Standalone or pipeline-aware via env vars. Triggers: redteam, adversarial review, attack, probe, find weaknesses.
Other plugins' skills for the same job