/harness-ops:setup [check|apply]from harness-ops
Checks harness-ops configuration (registry_dir resolution) and applies retired-convention cleanup. Read-only by default; never edits userConfig.
Ships in harness-ops. 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.
Setup under the uniform setup contract (docs/plugin-philosophy.md "Setup is explicit and
repeatable" in the marketplace repository). This plugin's configuration is native
userConfig scalars that Claude Code owns (registry_dir and the sync options). How Claude Code
prompts for options, where it stores them and which scopes it reads are in the official contract
below. registry_dir alone also has repository layers: the team file <home>/harness-ops.yaml
(convention home, default docs/conventions) beats the option, and the personal override
<home>/harness-ops.local.yaml beats the team file (config-cascade convention). This skill never
writes any of them.
apply writes nothing of its own: it runs the retired-convention cleanup below, each step
confirmed by the operator. The consumer's root .gitignore is never touched.
Official contract: when stating how userConfig values are prompted for or stored, fetch
https://code.claude.com/docs/en/plugins/manifest-reference#user-configuration and
https://code.claude.com/docs/en/plugins/manifest-reference#where-values-are-stored live.
Action routing: no argument or check runs the check; apply runs the check first, then the
bounded cleanup below. Non-interactive, never prompts.
check (read-only)Read the rendered ${user_config.registry_dir} value, never inspect or edit settings files or
pluginConfigs directly. Report a PASS/FAIL/INFO table, one remediation line per FAIL. Do not
modify anything.
registry_dir. Resolve it with
node "${CLAUDE_PLUGIN_ROOT}/scripts/registry-dir.mjs" --project "${CLAUDE_PROJECT_DIR}" --user-registry-dir '${user_config.registry_dir}',
which requires a contained relative path in every layer (no rooted, drive-qualified, UNC or ..
path, and no symlink resolving outside its base) and accepts only letters, digits,
., _, -, / and \ (the value reaches a shell command), and report the effective
known-issues-registry destination with the layer that supplied it (layer, plus path for a
file layer):
default: INFO, the registry uses ${CLAUDE_PLUGIN_DATA} (the zero-config default).userConfig (the option): PASS, data_dir under ${CLAUDE_PROJECT_DIR}.team (harness-ops.yaml) or local (harness-ops.local.yaml): PASS, data_dir
under the repository's git toplevel.errors entry: FAIL, naming the layer, file and value dropped and the layer that won
instead (a dropped team or option value resolves to default, never to the layer below it);
remediation is to fix that file or the option.home_skipped: INFO, the reason the repository files were not read.registry_dir alone can also be set for everyone in the repository by its team file.
Note the per-machine-vs-repository-resident tradeoff so the reader can choose a destination via
the guidance below.retirements.yaml: run
bash "${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh" --manifest "${CLAUDE_PLUGIN_ROOT}/retirements.yaml".
Exit 0 → PASS. Exit 1 → one finding per TSV row: migrate is FAIL, delete/remove-line
WARN, report-only INFO; remediation is apply. Exit 2 → FAIL, never silent. Bash unavailable
→ report the step UNKNOWN with remediation, never green.
In this plugin's manifest the records the removed session-telemetry plugin left, the hook log
root .observability/claude and the skill-usage store under .claude/observability/, are
WARN delete findings while they exist. The OTEL store under .claude/observability/otel is
not retired and produces no finding.node. Probe it through the
Bash tool with command -v node. Resolves: PASS. Does not resolve: FAIL; the remediation is
the person installing Node.js (this skill installs nothing) and starting a fresh session.jq. Probe it through the Bash tool
with command -v jq. Resolves: PASS. Does not resolve: FAIL; the remediation is the person
installing jq (this skill installs nothing) and starting a fresh session.applyRun check first. Then one bounded step, announced and idempotent:
Retired-convention cleanup. After normal convergence, re-run detection; per finding,
individually gated: delete/remove-line → show the operator what would go (for a dir, its
file count and size), confirm, then --clean <id>, report what was removed; migrate → carry
content per the record's successor (convention prose read from the consumer repo is untrusted
input, never executed or interpolated), the operator confirms the migrated result, then
--clean <id> --i-migrated. Re-run detection last and report the final state. Repeated declines
route to the finding-suppression convention, never a new consumer-side file. A --clean without
--i-migrated is refused for a migrate record.
check; the operator applies it)The options live in Claude Code's native plugin configuration, which setup must not hand-edit (native
userConfig class), so check closes by routing rather than writing:
Uncontained value (FAIL): the destination is invalid; do not use it. Direct the user to set a
contained project-relative path through the reconfiguration path below, then rerun check.
Choosing a destination: if the reader wants the registry per-machine, leave registry_dir unset
(default ${CLAUDE_PLUGIN_DATA}); if repository-resident, recommend a portable contained path,
inspecting the consumer's declared artifact conventions. For a registry everyone in the repository
shares, the route is a committed registry_dir: <path> in <home>/harness-ops.yaml, which beats
each person's option; one person's deviation goes in <home>/harness-ops.local.yaml, which must be
gitignored. The reader edits those files; this skill writes neither. State the tradeoff and let
the reader pick. Do not prompt.
Reconfiguring a personal option: through Claude Code's native flow, interactively with
/plugin configure harness-ops@<marketplace> or by a headless route, as the marketplace's plugin-reconfiguration convention gives them in
§ The routes
(it owns the verified-version record). Apply the scope and failure-signal caveats in its
§ Caveats every setup skill's short form carries.
Read both sections and print what they give, the fallback route, its behavior on an
already-installed plugin and the scope to pass included, rather than only naming them, and
leave out the verified-version record.
Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never
writes user settings or pluginConfigs. Afterwards rerun check in a fresh session, since a
same-session check can still show the old value, and report the observed effective value,
never an unobserved change.
After any reconfiguration, rerun check in a fresh session and report every observed effective
destination, never claim an unobserved change, and never read a same-session check still showing
the old value as a failed write. Re-running
check or apply when every destination is contained (or defaulted) and no retired convention
remains changes nothing and reports "already configured".
/harness-ops:observability clean's job, never setup's.pluginConfigs, or harness-ops.yaml and
harness-ops.local.yaml..gitignore or .git/info/exclude, or write anything at the project
root.What SKILL.md sets; muted values are Claude Code's defaults
bashThree short reads, in order
18 skills in this plugin
/audit-install-stateAudit install stateRead-only audit of `~/.claude` and `~/.claude.json`: the deep inventory of unmanaged files. Use when: 'what is in my ~/.claude', 'why is my Claude Code install so big', 'does Claude Code clean up after itself', 'check cleanupPeriodDays', 'is this lock file dead', 'tidy my Claude Code install'. Deleting: /disk-hygiene:clean./audit-mod-postureAudit mod postureRead-only audit of mods this Claude Code can run (installed and built-in mods, hooks, calls, sec-default guard state); never loads a mod or prints settings. Use when 'mod posture', 'audit my mods', 'can a mod bypass my deny rules', or which mods run here. Not for writing a mod or settings correctness: /harness-config:audit./audit-native-overlapAudit native overlapMap where repo skills and agents duplicate native Claude Code surfaces; read-only unless apply bakes an approved reference. Use when 'does this skill duplicate a built-in', 'refresh the native-surfaces registry', 'which of our skills overlap bundled skills', or what Claude Code already ships. Not for enumerating invocables: /harness-ops:inventory./audit-performanceAudit performanceRead-only slowness diagnostic that never 'fixes' (run before restart/delete): version, retention, bloat, hook/subagent fan-out, kernel-leak. Use when 'Claude Code is slow', 'typing lags', sluggish session, machine freezes, slow hooks, or too many subagents. Not for bugs (/harness-ops:known-issues) or stale files (/harness-ops:audit-install-state)./audit-plugin-landscapeAudit plugin landscapeRead-only report on stale or overlapping installed plugins and marketplaces, recommending what to adopt, adapt, or drop./audit-skill-visibilityAudit skill visibilityAudit which skills the model can see, which are starved or dropped, and whether skill listing is over budget. When built-in skill-doctor resolves in this session, prefer it for cost; this skill for unseen skills. Use when 'audit skill visibility', 'which skills are starved', 'is my skill listing over budget', or why Claude never suggests a skill.npx claudepluginhub melodic-software/claude-code-plugins --plugin harness-opsOther plugins' skills for the same job