/maruda:setupfrom maruda
Installs the full maruda harness into a project via interview: CLAUDE.md, hooks, settings, rules, and skill wiring. Asks for languages and commands, writes files only after user approval.
Ships in maruda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn the current repository into a project that runs the Diagnose → Register/Draft → Plan → Resolve ⇄ Verify cycle with mechanical guardrails (hooks) and a lean CLAUDE.md.
Skills alone are L1. This setup adds L2–L3: a short project brain (CLAUDE.md), hard rails (hooks + settings), and cycle guidance (rules). It never creates scheduled or cron-driven automation (L4); event-driven GitHub Actions — strict CI and the opt-in PR Agent review — are L2–L3 and in scope.
go.mod,
package.json, etc., even when they exist. This setup targets
pre-development projects where detection misleads. File existence is
used only for overwrite/merge prompts..claude/rules/.Ask one phase at a time and wait for answers. If the user says "use defaults", still require the primary language choice, then apply the defaults table below to everything else.
When a structured question tool (e.g. AskUserQuestion) is available, use one call per phase, and keep every call within the tool's contract — violating it aborts the turn with "Invalid tool parameters":
git init if not).CLAUDE.md, .claude/settings.json, .claude/hooks/,
.claude/rules/maruda-cycle.md, .claude/skills/.main (Recommended) / master
(anything else via Other).staging
(anything else via Other). It is recorded in CLAUDE.md, not detected.individual (Recommended — one PR per Issue) / batch (collect them on
epic/<n>-<slug>, verify as a whole, one PR) / stack (each PR targets
the branch of the Issue it depends on). This is only the default: whether
Issues are batched is decided by asking "do these ship together?", never
by the dependency graph.Ask for the primary language in full; for additional languages a quick confirm of the defaults is enough. Propose these defaults:
| Language | Install | Test | Lint | Format (hook) |
|---|---|---|---|---|
| Go | go mod download | go test ./... | golangci-lint run (fallback go vet ./...) | goimports (fallback gofmt) |
| Python (uv) | uv sync | uv run pytest | uv run ruff check | uv run ruff format |
| Python (pip) | pip install -e . | pytest | ruff check | ruff format |
| Python (poetry) | poetry install | poetry run pytest | poetry run ruff check | poetry run ruff format |
| TypeScript | {pm} install | {pm} test | {pm} run lint | Prettier |
| JavaScript | {pm} install | {pm} test | {pm} run lint | Prettier |
{pm}.{pm} exec tsc --noEmit /
a script name / none).pip install in favor of
uv add?" (Y/n).Q-H1. Components (multi-select, every entry recommended ON by default):
CLAUDE.md /
format hook / bash-guard hook / SessionStart + Stop guidance hooks /
.claude/rules/ (cycle contract + score-aligned coding principles +
per-language rules for the chosen languages) /
GitHub Actions CI (ci.yml per language + security-scan.yml +
.gitleaks.toml + .semgrepignore; gitleaks and semgrep are hard
gates from day one — shift-left — while trivy starts as informational
continue-on-error) /
.env guard (.gitignore entries + .env.example).
Q-H1b. Optional paid add-on (default OFF; independent of the CI
answer — it composes with a project's existing CI): PR Agent
(.github/workflows/pr-agent.yml + .pr_agent.toml; advisory
qodo-ai/pr-agent review — describe / review / improve when a PR opens,
/review on each push, slash commands for repository members). Needs an
OPENAI_KEY repository secret and API billing; it is advice, never a
required status check.
Q-H1c. How the skills get installed (single choice, propose plugin):
/maruda:spec-doc), and the skills always match the setup.sh that
installed the harness. Maps to --plugin (add --plugin-ref <tag> when the
user wants a pinned release rather than main). Say plainly that Claude Code
does not auto-install from settings: --plugin records the marketplace
and marks the plugin enabled, and each person still runs
/plugin install maruda@northraystudio once.npx skills add northraystudio/maruda --skill '*' --agent claude-code -y --copy.
Works with agents other than Claude Code; commands have no namespace
(/spec-doc), so they can collide with other skill collections. Maps to
--with-skills.--plugin and --with-skills are two ways to install the same skills, so the
installer rejects them together. If the project already has
.claude/skills/yds-* from an older install, say that those directories are now
stale and should be deleted — the plugin ships the same skills under their new
names, and leaving both registers each skill twice.
Q-H2. Per existing file: merge (append only the missing sections) / back up then replace / skip.
Q-H3. Bash guard strength: standard (rm -rf /, force-push to the
default branch, redirects into .env) / standard + pip guard (uv
projects) / none.
Show a summary of every answer and every file that will be created or modified. Wait for explicit approval. On approval, apply as follows.
Preferred path — run the installer, then refine:
Locate harness/scripts/setup.sh, in this order — the first hit wins:
this skill's own plugin copy, "${CLAUDE_PLUGIN_ROOT}/harness/scripts/setup.sh".
When maruda runs as a plugin, CLAUDE_PLUGIN_ROOT is set in the shell, the
whole repository is in the plugin cache, and the script keeps its executable
bit. Prefer it: the installer is then guaranteed to be the same version as
the skills running the interview. Check with
[[ -n "${CLAUDE_PLUGIN_ROOT:-}" && -f "${CLAUDE_PLUGIN_ROOT}/harness/scripts/setup.sh" ]].
the working repository, if it is maruda or contains a clone/submodule
(harness/scripts/setup.sh, .claude/maruda/harness/scripts/setup.sh).
the network, via the official one-liner. Pin a release tag rather than
main so the installer matches a known version (network required):
curl -fsSL https://raw.githubusercontent.com/northraystudio/maruda/main/harness/scripts/install.sh \
| bash -s -- --langs <langs> --pm <pm> --python-pm <py-pm> --branch <branch> --name <name> \
[--integration-branch <branch>] [--default-flow <individual|batch|stack>] \
[--guard-pip] [--with-skills] [--pr-agent]
Map EVERY Phase 1b / Phase 3 answer to a flag — the applied changes must equal the
approved summary exactly: languages (primary first) → --langs,
Node PM → --pm, Python PM → --python-pm, pip guard → --guard-pip,
integration branch → --integration-branch (omit when it equals the
default branch), default flow → --default-flow,
skill install method → --plugin (+ --plugin-ref) or --with-skills or
neither, CI OFF → --no-ci, format hook OFF →
--no-format-hook, bash guard OFF → --no-bash-guard, guidance hooks
OFF → --no-guidance-hooks, rules OFF → --no-rules, .env guard OFF →
--no-env-guard, PR Agent ON → --pr-agent (allowed with --no-ci,
never with --minimal). If the user wants branch protection applied and gh
is authenticated with admin rights, add --protect.
The installer never overwrites existing files, which is exactly the
merge-safe behavior wanted here.
Then reconcile whatever the installer reported as "kept existing" or "proposed" against the user's Phase 3 answers:
<file>.new. For each one, show the user the
diff and offer to merge it (or discard the .new) — apply only what
they approve, then delete the .new file.harness/templates/CLAUDE.md.template.hooks block by hand,
preserving every existing user hook.Adjust generated CLAUDE.md commands to any non-default answers from Phase 2 (e.g. a custom test script name).
Fallback (no network, no local copy): report that the harness templates are unavailable and stop after writing only what can be written faithfully from this document — do not improvise hook scripts from memory.
Print a final checklist:
[maruda harness]
skills: OK (N) / MISSING
CLAUDE.md: CREATED / MERGED / SKIPPED
hooks: OK (selected scripts, executable)
settings: OK / MERGED / needs manual merge
rules: OK / skipped
CI: OK / skipped
flow: integration branch: <branch> | default: <individual|batch|stack>
protection: configured / NOT CONFIGURED / applied
pr-agent: disabled / written (OPENAI_KEY secret required)
next: restart Claude Code to load hooks, then try /maruda:software-evaluation .
Two follow-ups matter for the gates to actually gate:
Branch protection. A CI check only blocks merges once it is a
required status check. The installer reports the state; if it says
NOT CONFIGURED, treat setup as incomplete and either re-run with
--protect (needs gh auth + admin + a pushed default branch) or walk
the user through GitHub settings. Do not report overall success while
protection is unconfigured — report it as an explicit remaining step.
Strict CI. The generated jobs intentionally fail when lint / typecheck / test scripts (or any tests) are missing. Tell the user the first code PR must land with those in place — that is the shift-left contract, not a bug.
PR Agent secret. If --pr-agent was applied, the PR Agent workflow
fails on every PR until the OPENAI_KEY repository secret exists. Report
it as an explicit remaining step; it is advisory and must never be added
to required status checks.
Remind the user that hooks load at session start — a restart (or new session) is needed before the guard/format hooks take effect.
# TODO stack block for the rest, and say so.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub northraystudio/maruda --plugin marudaOther plugins' skills for the same job
15 skills in this plugin
/data-validationInspect a project's data for correctness and produce a read-only validation report — record counts, NULL rates, value distribution, uniqueness, referential integrity, format validity, and sampled evidence rows. Data is read only from the project's own test fixtures/seed data or from an explicitly configured connection; never from a guessed or production source. Triggers on requests like "validate the data", "check data quality", "データ検証", "データの妥当性を確認", "NULL率を調べて", "件数がおかしい", "/maruda:data-validation", or when `gh-issue-resolver` verifies a data-related change. Does NOT modify any data or code — read-only inspection only. Produces no JSON.
/dependency-auditAudit third-party dependencies for known vulnerabilities (OWASP A06) without running SAST. Scans lockfiles under a path (plus the owning workspace root lockfile) and explicitly named container images with a pinned Trivy; reports severity, package, version, fixed version, source, and reachability. Records what was scanned and marks what could not be as "not run" with the reason, never as zero. Writes a security-audit-format report for `report-to-issues` and a JSON summary. Only when the user asks, also converts each scanned target into an SBOM (CycloneDX by default, or SPDX) — never by default. Triggers on requests like "依存の脆弱性を調べて", "依存を監査して", "ロックファイルの脆弱性", "ベースイメージの脆弱性", "dependency audit", "check dependencies for CVEs", "scan the lockfile", "scan this image", "SBOMも出して", "generate an SBOM", "CycloneDX", "SPDX", "/maruda:dependency-audit", or when `vulnerability-scan` or `gh-issue-resolver` delegates the dependency audit. Read-only: never upgrades, installs, regenerates a lockfile, or builds an image.