/harness-config:setup [check|apply|wsl-profile]from harness-config
Checks jq/curl prerequisites and harness-config.yaml suppressions, applies fixes, or prints WSL hardening profile.
Ships in harness-config. 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.
Read when SKILL.md points to them; scripts run unread.
check's tool probes ran at load time. Read these rows instead of re-issuing them; each shows the
tool's path when present, or absent when missing:
jq: !command -v jq 2>/dev/null || echo absentcurl: !command -v curl 2>/dev/null || echo absentawk: !command -v awk 2>/dev/null || echo absentsort: !command -v sort 2>/dev/null || echo absentA row reading [shell command execution disabled by policy] carries no result: run that tool's
command -v probe via Bash instead.
Setup per the uniform setup contract (docs/plugin-philosophy.md "Setup is explicit and repeatable" in
the marketplace repository): check inspects and reports, apply resolves. This plugin's
userConfig options are set in /config, never by this skill. The audit_pass_suppressions_file
option reads ${user_config.audit_pass_suppressions_file} here; empty or a literal
${user_config.…} placeholder means unset. The skill has two setup concerns:
apply is guidance-and-verify
with no write path: it points at platform install instructions and never installs a system package;audit and audit-pass read, the suppressions
mapping of <home>/harness-config.yaml, the one file apply may write. <home> is the
convention home the repository binds in the pointer region of its AGENTS.md or CLAUDE.md
(bash ${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh prints it), else docs/conventions.Action routing: no argument or check runs the check; apply runs the check first, then remediation;
wsl-profile runs only its own section. All are non-interactive, so never prompt when the action is
given.
check (read-only)The bundled scripts are the single source of truth for what this plugin requires.
Read it first. Probe what it actually does, don't recite this file. Then read the pre-computed tool rows, run the remaining probes via Bash, and report a PASS/FAIL/INFO table with one remediation line per FAIL. Do not modify anything.
The runtime scripts and their tools:
${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/check-plugin-drift.sh: jq and curl${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/check-structure.sh, check-hook-coverage.sh and fix-plugin-drift.sh: jq${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/audit-engine.sh: jq plus awk and sort; check-effort-pins.sh: jq plus awk${CLAUDE_PLUGIN_ROOT}/skills/audit-automation-gaps/scripts/inventory.sh: jq plus awk${CLAUDE_PLUGIN_ROOT}/skills/audit-permission-grants/scripts/permission-rule-check.sh: jq plus awk and sort${CLAUDE_PLUGIN_ROOT}/skills/audit-permission-state/scripts/*.sh: jq (required; permission-state.sh exits 2 without it), awk and sort; automode-block-lint.sh and automode-entry-diff.sh add python3 for an optional lane${CLAUDE_PLUGIN_ROOT}/skills/draft-auto-mode-rules/scripts/draft-automode-block.sh: jq${CLAUDE_PLUGIN_ROOT}/skills/audit-pass/scripts/run-state.sh: jq (falls back to python3, then to a scan that announces itself)${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh: awk (no jq)${CLAUDE_PLUGIN_ROOT}/skills/audit-pass/scripts/state-digest.sh and finding-identity.sh: sort${CLAUDE_PLUGIN_ROOT}/skills/audit-instructions/scripts/instruction-scan.sh: grep, tr and awk (no jq)${CLAUDE_PLUGIN_ROOT}/skills/audit-instructions/scripts/conflict-scan.sh: awk and sort (no jq)Most scripts that need jq probe for it, but only conflict-scan.sh and instruction-scan.sh probe
for awk and sort; the rest call those with no guard, so read each script's actual calls rather than trusting a single script's prerequisite block to
speak for the plugin.
jq, from the pre-computed jq row. FAIL if absent: the JSON-parsing scripts need it (inventory.sh degrades
to an empty inventory; run-state.sh falls back to python3, then to a structural scan that says so;
the others exit 2 with an install remediation). Missing jq blocks every
skill whose scripts parse JSON (audit, audit-automation-gaps, audit-permission-grants,
audit-permission-state and draft-auto-mode-rules); audit-pass's run-state helper degrades
rather than stops, and audit-instructions scans markdown and is unaffected.curl, from the pre-computed curl row. FAIL if absent, but scoped: only the plugin-drift check
(check-plugin-drift.sh) uses it and exit 2s without it. The rest of audit and every other
skill still run; say so in the remediation line.awk and sort, from the pre-computed awk and sort rows. FAIL if either is absent, and not
scoped to one skill: conflict-scan.sh and instruction-scan.sh probe and exit 2 naming the
missing one, while the other scripts in the list above that use them have no prerequisite check
at all, so their skills fail mid-run on a bare command not found rather than on a named
prerequisite. Say in the
remediation line that this FAIL reaches six skills (audit, audit-automation-gaps,
audit-pass, audit-permission-grants, audit-permission-state and audit-instructions), not
just audit-instructions. Report awk and sort by name rather than as one row, since a
minimal shell can carry one and not the other.[[ ]], process substitution, BASH_SOURCE),
run through Claude Code's Bash tool. Report the resolved interpreter; FAIL only if no bash is
resolvable. Pointer: for which shell a platform's sessions get, native Windows included, fetch
tools reference: PowerShell tool
live.audit's drift/freshness fetches read
raw.githubusercontent.com, and a failed fetch degrades to SKIP rather than a setup failure. Do not
fetch here; check performs no network call.audit-pass suppression recordaudit-pass reads a tracked suppression record layered per the marketplace's config-cascade
convention. Read the operative shape from
${CLAUDE_PLUGIN_ROOT}/skills/audit-pass/reference/suppression.md rather than inferring it. That
reference ships inside this plugin, so it resolves in an installed cache where a path out to the
marketplace's own docs does not. The cross-consumer key contract is the marketplace's published
finding-suppression convention, which is not a runtime dependency of this plugin. All layers
absent is a valid state (no suppressions), so report INFO, never FAIL, when none exists.
Anchor at the repo root (${CLAUDE_PROJECT_DIR}, else git rev-parse --show-toplevel), never a
CWD-relative read, which resolves a different (or missing) file depending on the subdirectory or
nested worktree the skill was invoked from, then report one row per layer. The same
tracked/ignored question has opposite correct answers per layer, so verify each on its own terms:
audit_pass_suppressions_file names: outside the worktree; no git
command applies. INFO only, unset when the option is.<home>/harness-config.yaml: must be tracked, probed as the pair:
git check-ignore -v reports no match (a match is FAIL with the pattern) and
git ls-files --error-unmatch exits 0. Untracked while present is a hard STOP:
teammates never receive the shared suppressions. Parse it with
awk -v STRICT=1 -f ${CLAUDE_PLUGIN_ROOT}/lib/yaml-subset.awk <file>, the parser the audit engine
uses: a non-zero exit is FAIL with the line it prints, because the engine then drops the whole team
layer. The common cause is an unquoted anchor/v1 key; the parser takes a plain key only of
letters, digits, _ and -, so the key is written "anchor/v1":.<home>/audit-pass.local.md: must be gitignored and never staged. Staged or
tracked is a FAIL: a personal deviation can reach team history.bash "${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh" --manifest "${CLAUDE_PLUGIN_ROOT}/retirements.yaml" --root "<root>",
with <root> the repo root anchored above. Exit 0 → PASS. Exit 1 → one finding per TSV row:
migrate is FAIL, delete/remove-line WARN, report-only INFO.
Exit 2 → FAIL, never silent. Bash unavailable → report the step UNKNOWN with remediation, never
green. Record harness-config-r001 (.claude/audit-pass.local.md) is report-only:
harness-config no longer reads that file. See config locations.Parse each present layer and report as malformed any entry missing any of its five required
keys: check, claim, sites, reason, date. Checking only reason and date would pass an
entry that audit-pass itself rejects, so readiness would report green on configuration that cannot
suppress anything. Report as malformed too an entry whose stored constituents do not hash to its own
key: the constituents are authoritative and the key is derived from them. A malformed entry does not
suppress, and a silent partial parse would turn a formatting slip into a lost check.
Report a userConfig or personal override entry for an id the team layer does not carry as INFO
personal-only, not applied, naming promotion to the team layer as what makes it take effect. The
team layer is the only one that enacts a suppression, so a personal-only entry that looks live is a
finding the operator believes is accepted and is not.
apply (idempotent)Run check, then for each FAIL give the platform install instructions from the README Requirements.
This skill never installs system packages:
jq: the platform's jq install (for example winget install jqlang.jq, brew install jq, or apt-get install jq); rerun check after.curl: the platform's curl install. Modern Windows and Git Bash already ship curl.
Only the plugin-drift check needs it, so the rest of the plugin works meanwhile.awk or sort: both ship with every POSIX userland, so absence means the shell
environment is minimal rather than that one package is missing. Git Bash and Windows busybox
shims are where this shows up. Remediate by installing a full userland rather than the single tool:
Git for Windows, which bundles both; the distribution's gawk/mawk and coreutils on Linux;
brew install gawk coreutils on macOS. Report the two separately, since a minimal shell can carry
one and not the other. The skills check step 3 names depend on them, and only
conflict-scan.sh and instruction-scan.sh exit 2 cleanly, so do not offer the others as still
working meanwhile.[[ ]],
process substitution, and BASH_SOURCE, so they need a real bash on PATH: Git for Windows on
native Windows, the distribution's bash elsewhere. Nothing bundled runs until it resolves, so
say that this FAIL blocks the plugin rather than offering a partial workaround.The network row stays INFO and has no apply entry on purpose: a failed fetch degrades to SKIP by
design, so there is nothing to remediate.
After any install, re-run the relevant probe via Bash (command -v <tool>; the pre-computed rows
predate the install) and report its actual result. Never claim resolved
on the install command's exit code alone. Re-running apply once every probe passes changes nothing and
reports "already configured".
Then converge the one surface this plugin owns, conservatively:
<home>/harness-config.yaml with the documented shape only on an
explicit request.git add the operator should
run. Never stage on their behalf.<home>/**/*.local.* line
and leave the .gitignore edit to the consumer.Every write names the file and the exact change before making it, and preserves unrelated content.
wsl-profile (print only)An opt-in settings profile for Claude Code inside WSL. Read reference/wsl-profile.md for what it holds and its limits.
bash ${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/wsl-profile.sh detect. Exit 1 means this is
not a WSL host: say the profile does not apply and stop.bash ${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/wsl-profile.sh print. It fills in the
running user's paths and the Windows host's /mnt/<drive>/Users/<user> directories. Show the
block, relay its stderr notes (several Windows users, or placeholders left to fill in), and tell
the user to merge it into their own settings file.appendWindowsPath=false in wsl.conf and the PowerShell symlink as host steps the human
runs.This action writes no file, edits no settings and never touches wsl.conf or creates the symlink. To
check an edited profile, run ... wsl-profile.sh lint <file>.
userConfig layer. The option's file sits outside the worktree, so git check-ignore and git status return a meaningless verdict there, or a
confidently wrong one when the home directory is itself a git repository.<home>/**/*.local.*
covers flat, folder-form, and profiled personal overrides alike; the narrower <home>/*.local.*
silently misses any nested personal override. The consumer's ignore file is their artifact; this skill never writes it./harness-config:audit,
audit-automation-gaps, audit-instructions, audit-pass, audit-permission-grants,
audit-permission-state, audit-prompting-postures, draft-auto-mode-rules, unhobble).pluginConfigs; wsl-profile prints a block and the user merges it..gitignore, stage anything, or edit an operator's suppression entries.check makes no network call; the audit skills' own doc/marketplace fetches are
theirs, not setup's.What SKILL.md sets; muted values are Claude Code's defaults
bashThree short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin harness-config10 skills in this plugin
/auditIf update-config resolves in this session, prefer it to change settings; this skill audits settings.json, settings.local.json, .mcp.json, hooks, plugins, permissions, env vars (correctness, security, drift vs official docs; --fix confirms auto-fix). Use when: 'audit settings', 'check config', 'check for config drift', after Claude Code update./audit-automation-gapsAudit automation gapsAudit a repo's Claude Code automation (hooks, MCP servers, skills, subagents, scheduled tasks) vs enforcement hierarchy with PASS/REJECT/CONDITIONAL verdicts (REJECT default); --implement applies, or filter hooks|mcp|skills|subagents|scheduled. Use when: 'audit automations', 'what automations should we add', 'should I add an MCP server for X'./audit-instructionsAudit instructionsIf claude-api resolves in this session, prefer it for app prompts; this skill audits Claude Code instructions (CLAUDE.md, AGENTS.md, rules, skills, agents, hooks) report-only for stale/conflicting text. Use when: 'audit instructions', 'too prescriptive', 'which instruction wins'. Not for missing text: /harness-config:audit-prompting-postures./audit-passAudit passRun one coordinated, resumable audit pass over a repo: three-scope inventory, each owning plugin's checks lane by lane, findings persisted per lane with one human gate (read-only unless --fix) for one reconciled findings report/release artifact. Use when: 'audit pass', 'audit this repo end to end', 'resume the audit', or sweep all three scopes./audit-permission-grantsAudit permission grantsReport-only permission grant audit: allowed-tools frontmatter, permissions.allow, portable auto-mode durability (dropped interpreter wildcards, machine paths, substitution tokens, inert plugin grants, guarded helper denied despite allow rule). Use when: 'why was my allowed-tools grant ignored', 'audit allow rules', 'is this permission portable'./audit-permission-stateAudit permission stateIf fewer-permission-prompts resolves in this session, prefer it for prompts; this skill merges every settings scope read-only into allow/ask/deny set in effect (source/precedence per rule), flagging auto-mode drops. Use when: 'what permissions are actually in effect', 'which of my rules survive auto mode', 'is my managed policy being read'.Other plugins' skills for the same job