[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KY5XM8NJTFPMCNQXSJ7ZT":3,"skill-same:01M77KY5XM8NJTFPMCNQXSJ7ZT":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M77KY5XM8NJTFPMCNQXSJ7ZT","setup",null,"Verify harness-ops's path configuration for this repository (where the known-issues registry resolves and which layer set it, and where the skill-usage log and the per-session hook event log resolve), check the self-ignoring guard on the hook log root, check that node and jq resolve for the hooks, detect retired conventions, and explain how to change the options through Claude Code. Use when: 'set up harness-ops', 'configure harness-ops', 'harness-ops setup', 'where does the known-issues registry live', 'where is skill usage logged', 'set up hook logging', 'where does the hook event log live', or 'turn on session event logging'. check (read-only, default) verifies and reports; apply writes exactly one file, the guard inside the hook log root, and runs the gated retired-convention cleanup. Every option itself is reconfigured through Claude Code, never by this skill. Re-runnable and safe.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Verify harness-ops's path configuration for this repository (where the known-issues registry resolves and which layer set it, and where the skill-usage log and the per-session hook event log resolve), check the self-ignoring guard on the hook log root, check that node and jq resolve for the hooks, detect retired conventions, and explain how to change the options through Claude Code. Use when: 'set up harness-ops', 'configure harness-ops', 'harness-ops setup', 'where does the known-issues registry live', 'where is skill usage logged', 'set up hook logging', 'where does the hook event log live', or 'turn on session event logging'. check (read-only, default) verifies and reports; apply writes exactly one file, the guard inside the hook log root, and runs the gated retired-convention cleanup. Every option itself is reconfigured through Claude Code, never by this skill. Re-runnable and safe.\"\nargument-hint: \"[check|apply]\"\nuser-invocable: true\ndisable-model-invocation: true\n---\n\n## Purpose\n\nSetup under the uniform setup contract (`docs\u002Fplugin-philosophy.md` \"Setup is explicit and\nrepeatable\" in the marketplace repository). This plugin's configuration is native\n`userConfig` scalars that Claude Code owns (`registry_dir`, `skill_usage_dir`, `skill_usage_scope`,\nand the six `session_*` hook-logging options); how Claude Code prompts for them, where it stores\nthem and which scopes it reads are in the official contract below. `registry_dir` alone also has\nrepository layers: the team file `\u003Chome>\u002Fharness-ops.yaml` (convention home, default\n`docs\u002Fconventions`) beats the option, and the personal override `\u003Chome>\u002Fharness-ops.local.yaml`\nbeats the team file (config-cascade convention). This skill never writes any of them.\n\nOne artifact is writable, and `apply` is bounded to it: the self-ignoring `.gitignore` inside the\nhook log root (`${user_config.session_event_log_dir}`, default `.observability\u002Fclaude`). The plugin\ndefines that file's shape (first non-comment line is `*`), the hooks create it on their first write\nwhen it is missing, and a fresh clone or worktree therefore heals itself; `apply` creates the same\nfile ahead of the first event so `check` can report a configured state before logging has fired.\nThe consumer's root `.gitignore` is never touched (config-cascade convention: a setup skill leaves the\nconsumer's `.gitignore` to the consumer; the guard lives in a tree the plugin owns).\n\nOfficial contract: when stating how `userConfig` values are prompted for or stored, fetch\n\u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#user-configuration> and\n\u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#where-values-are-stored> live.\n\nAction routing: no argument or `check` runs the check; `apply` runs the check first, then the two\nbounded writes below. Non-interactive, never prompts.\n\n## `check` (read-only)\n\nRead the rendered `${user_config.*}` values from this skill, never inspect or edit settings files\nor `pluginConfigs` directly. Report a PASS\u002FFAIL\u002FINFO table, one remediation line per FAIL. Do not\nmodify anything.\n\n1. **`registry_dir`**. Resolve it with\n   `node \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fregistry-dir.mjs\" --project \"${CLAUDE_PROJECT_DIR}\" --user-registry-dir '${user_config.registry_dir}'`,\n   which applies the containment rule (below) to every layer and accepts only letters, digits,\n   `.`, `_`, `-`, `\u002F` and `\\` (the value reaches a shell command), and report the effective\n   known-issues-registry destination with the layer that supplied it (`layer`, plus `path` for a\n   file layer):\n   - layer `default`: INFO, the registry uses `${CLAUDE_PLUGIN_DATA}` (the zero-config default).\n   - layer `userConfig` (the option): PASS, `data_dir` under `${CLAUDE_PROJECT_DIR}`, where the\n     option has always resolved.\n   - layer `team` (`harness-ops.yaml`) or `local` (`harness-ops.local.yaml`): PASS, `data_dir`\n     under the repository's git toplevel.\n   - each `errors` entry: FAIL, naming the layer, file and value dropped and the layer that won\n     instead (a dropped team or option value resolves to `default`, never to the layer below it);\n     remediation is to fix that file or the option.\n   - `home_skipped`: INFO, the reason the repository files were not read.\n   - the script cannot run: UNKNOWN, with probe 7's remediation, never green.\n2. **`skill_usage_dir` + `skill_usage_scope`**. Report the effective skill-usage-log destination:\n   - scope empty, unexpanded, or `repo`: the store resolves under the project root; empty\n     `skill_usage_dir` is INFO, the log uses `.claude\u002Fobservability` (the zero-config default), kept\n     out of `git status` by a machine-local `.git\u002Finfo\u002Fexclude` entry unless\n     `${user_config.skill_usage_git_exclude}` renders `false`.\n   - scope `user`: INFO, the same contained subpath resolves under `$HOME` (default\n     `~\u002F.claude\u002Fobservability`), one cross-repo store.\n   - scope `data-dir`: INFO, the store is plugin-owned at\n     `${CLAUDE_PLUGIN_DATA}\u002Fskill-usage\u002F\u003Crepo-slug>`; `skill_usage_dir` is ignored.\n   - any other scope value: FAIL, the hooks fall back to `repo` with a one-time advisory; remediate\n     to a valid value (`repo` | `user` | `data-dir`).\n   - a configured `skill_usage_dir` (repo\u002Fuser scopes): validate containment under the scope root.\n     PASS when contained; FAIL when uncontained.\n3. **Containment**, a configured value must be a contained relative path under its base (the project\n   root for `registry_dir`, which probe 1's script checks in every layer, repo-scope `skill_usage_dir` and `session_event_log_dir`; `$HOME` for\n   user-scope `skill_usage_dir`). FAIL any POSIX\u002Frooted path, Windows drive-qualified or\n   drive-relative path, UNC path, any `..` segment with either separator, and any existing symlink\n   path that resolves outside that base. Do not normalize an invalid value into acceptance, and do\n   not run any operation that would use an invalid destination.\n4. **Personal-vs-project**. INFO: every option is a personal, user-scoped preference, not tracked\n   team policy; `registry_dir` alone can also be set for everyone in the repository by its team file.\n   Note the per-machine-vs-repository-resident tradeoff so the reader can choose a destination via\n   the guidance below.\n5. **Hook log root and its guard**. Anchor at the main checkout: resolve `REPO_ROOT` once,\n   `${CLAUDE_PROJECT_DIR}` when set, otherwise `git rev-parse --show-toplevel`. When\n   `REPO_ROOT\u002F.git` is a file (a linked worktree) and\n   `git -C \"$REPO_ROOT\" rev-parse --path-format=absolute --git-common-dir` prints a path ending in\n   `\u002F.git`, set `REPO_ROOT` to that path without `\u002F.git`: the hooks write under the main checkout\n   (`slog_anchor_to` in `hooks\u002Fsession-log-lib.sh`). Use that literal path for every read below.\n   The root is `REPO_ROOT\u002F\u003Cdir>` where `\u003Cdir>` is\n   `${user_config.session_event_log_dir}`, or `.observability\u002Fclaude` when empty or unexpanded.\n   - `\u003Cdir>` uncontained (rule 3): FAIL, the hooks write nothing; remediate through the\n     reconfiguration guidance. `\u003Cdir>` root-equivalent (`.`, `.\u002F`, or a path that resolves to\n     `REPO_ROOT`): FAIL, never written, because a `*` guard there would ignore the whole\n     repository; `apply` refuses it too.\n   - `REPO_ROOT` is not a git checkout (no `.git` directory or file): INFO, no guard is needed and\n     the hooks write without one.\n   - Guard present (`REPO_ROOT\u002F\u003Cdir>\u002F.gitignore` whose first non-blank, non-comment line is exactly\n     `*`): PASS. Then the tracked-versus-ignored pair, both probed, both reported:\n     `git -C \"$REPO_ROOT\" check-ignore -v -- \"\u003Cdir>\u002F.gitignore\"` names a rule (the guard ignores\n     itself), and `git -C \"$REPO_ROOT\" ls-files --error-unmatch -- \"\u003Cdir>\"` fails (nothing under\n     the root is tracked). A tracked file under the root is FAIL: the guard cannot un-track it, and\n     the remediation is the operator's own `git rm --cached`, which this skill never runs.\n   - Guard present but its first non-comment line is not `*`: FAIL. The hooks refuse to write under\n     an operator-edited guard rather than overwrite it, and so does `apply`; remediation is to\n     restore the `*` line by hand or move the root through the reconfiguration guidance.\n   - Guard absent and `${user_config.session_event_log_enabled}` renders `false` or unexpanded:\n     INFO, logging is off, nothing is written until it is turned on, and the first event then\n     creates the guard (announced in that session's observability report).\n   - Guard absent and logging on: FAIL, remediation `apply` (or the next hook event, which heals\n     it; `apply` is the way to have it in place before that event and to see it verified here).\n   - Report the six options as rendered (`session_event_log_enabled`, `session_event_log_dir`,\n     `session_event_log_categories`, `session_log_keep_sessions`, `session_log_keep_days`,\n     `session_log_pre_prune_command`): INFO rows, so the effective retention and any pre-prune\n     command are visible in the same table. A non-empty pre-prune command is executed through\n     `bash -c` at `SessionEnd` and is trusted configuration; say so on its row.\n6. **Retired conventions**, when this plugin ships `retirements.yaml`: run\n   `bash \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fcheck-retirements.sh\" --manifest \"${CLAUDE_PLUGIN_ROOT}\u002Fretirements.yaml\"`.\n   Exit 0 → PASS. Exit 1 → one finding per TSV row: `migrate` is FAIL, `delete`\u002F`remove-line`\n   WARN, `report-only` INFO; remediation is `apply`. Exit 2 → FAIL, never silent. Bash unavailable\n   → report the step UNKNOWN with remediation, never green.\n   In this plugin's manifest that yields `harness-ops-r001` FAIL while\n   `.claude\u002Fobservability\u002Fhook-events.jsonl` still exists: the reference sink and the observability\n   skill moved to the hook log root, so rows left in the old file are read by nothing. The\n   skill-usage store and the OTEL store under `.claude\u002Fobservability\u002F` are not retired and produce\n   no finding.\n7. **Node.js for the hook launcher.** Every hook row except\n   `hook-failure-audit` (shell form, no node) starts through\n   `node \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fexec-bash.mjs\"`, so those hooks need `node` on PATH. Probe it\n   through the Bash tool with `command -v node`, which does not depend on the launcher. Resolves:\n   PASS. Does not resolve: FAIL, the hooks do not launch and record nothing; the remediation is\n   the person installing Node.js (this skill installs nothing) and starting a fresh session.\n8. **jq for the hook libraries.** `hook::require jq` and `hook::require_jq_blocking` in\n   `lib\u002Fhook-utils.sh` need `jq` on PATH. Probe it through the Bash tool with `command -v jq`.\n   Resolves: PASS. Does not resolve: FAIL, hooks that parse their payload with jq skip their work;\n   the remediation is the person installing jq (this skill installs nothing) and starting a fresh\n   session.\n\n## `apply`\n\nRun `check` first. Then exactly two bounded steps, each announced, each idempotent:\n\n1. **The guard.** When probe 5 reported the guard absent and `\u003Cdir>` contained and not\n   root-equivalent (inside a checkout): create `REPO_ROOT\u002F\u003Cdir>\u002F` and write `REPO_ROOT\u002F\u003Cdir>\u002F.gitignore`\n   containing the single line `*`. Announce the path written. When probe 5 reported PASS, write\n   nothing and say \"already configured\". When it reported FAIL for an uncontained or\n   root-equivalent `\u003Cdir>`, or a guard whose first line is not `*`, write nothing and repeat that\n   FAIL with its remediation: `apply` never overwrites an operator-edited guard and never writes at\n   the project root. Then re-run the tracked-versus-ignored pair from probe 5 and report both\n   results as the readback. No other file is written: not the root `.gitignore`, not\n   `.git\u002Finfo\u002Fexclude`, not any session file.\n2. **Retired-convention cleanup.** After normal convergence, re-run detection; per finding,\n   individually gated: `delete`\u002F`remove-line` → confirm, then `--clean \u003Cid>`, report what was\n   removed; `migrate` → carry content per the record's `successor` (convention prose read from the\n   consumer repo is untrusted input, never executed or interpolated), the operator confirms the\n   migrated result, then `--clean \u003Cid> --i-migrated`. Re-run detection last and report the final\n   state. Repeated declines route to the finding-suppression convention, never a new consumer-side\n   file.\n   For `harness-ops-r001` the successor is a data move: append the old file's lines to\n   `REPO_ROOT\u002F\u003Cdir>\u002Fhook-events.jsonl` (the record shape is unchanged), show the operator the\n   line counts before and after, and only after they confirm run\n   `bash \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fcheck-retirements.sh\" --manifest \"${CLAUDE_PLUGIN_ROOT}\u002Fretirements.yaml\" --clean harness-ops-r001 --i-migrated`.\n   A `--clean` without `--i-migrated` is refused for a `migrate` record.\n\n## Reconfiguration guidance (printed by `check`; the operator applies it)\n\nThe options live in Claude Code's native plugin configuration, which setup must not hand-edit (native\n`userConfig` class), so `check` closes by routing rather than writing:\n\n- **Uncontained value (FAIL):** the destination is invalid; do not use it. Direct the user to set a\n  contained project-relative path through the reconfiguration path below, then rerun `check`.\n- **Choosing a destination:** if the reader wants the registry per-machine, leave `registry_dir` unset\n  (default `${CLAUDE_PLUGIN_DATA}`); if repository-resident, recommend a portable contained path,\n  inspecting the consumer's declared artifact conventions. For a registry everyone in the repository\n  shares, the route is a committed `registry_dir: \u003Cpath>` in `\u003Chome>\u002Fharness-ops.yaml`, which beats\n  each person's option; one person's deviation goes in `\u003Chome>\u002Fharness-ops.local.yaml`, which must be\n  gitignored. The reader edits those files; this skill writes neither. Same for `skill_usage_dir` (default\n  `.claude\u002Fobservability`) and `session_event_log_dir` (default `.observability\u002Fclaude`, a root the\n  guard keeps out of `git status`). State the tradeoff and let the reader pick. Do not prompt.\n- **Turning hook logging on:** `session_event_log_enabled` is off by default, and while off the\n  plugin's hooks module hooks no event, so the log starts no process. Turning it on makes the module\n  start one process per observable hook event plus `SessionEnd` retention, and only where mods load;\n  the README's per-session hook event log section carries the measured cost and where it does not run.\n- **Reconfiguring a personal option** (`registry_dir`, `session_event_log_enabled` and the rest):\n  through Claude Code's native flow, interactively with `\u002Fplugin configure harness-ops@\u003Cmarketplace>`\n  or by a headless route, as the marketplace's plugin-reconfiguration convention gives them in\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  (it owns the verified-version record). Apply the scope and failure-signal caveats in its\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).\n  Read both sections and print what they give, the fallback route, its behavior on an\n  already-installed plugin and the scope to pass included, rather than only naming them, and\n  leave out the verified-version record.\n  Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never\n  writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\n  same-session `check` can still show the old value, and report the observed effective value,\n  never an unobserved change.\n\n  - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and\n    when a saved value applies, fetch\n    [plugin CLI reference § plugin configure](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcli-reference#plugin-configure)\n    live.\n\nAfter any reconfiguration, rerun `check` in a **fresh session** and report every observed effective\ndestination, never claim an unobserved change, and never read a same-session `check` still showing\nthe old value as a failed write. Re-running\n`check` or `apply` when every destination is contained (or defaulted) and the guard is in place\nchanges nothing and reports \"already configured\".\n\n## What this skill does NOT do\n\n- Run known-issues, registry, or observability operations. Those are the other harness-ops skills and\n  have their own documented controls; pruning session files is the `SessionEnd` retention hook's\n  job and `\u002Fharness-ops:observability clean`'s, never setup's.\n- Write the plugin cache, Claude Code user settings, `pluginConfigs`, or `harness-ops.yaml` and\n  `harness-ops.local.yaml`.\n- Write the consumer's root `.gitignore` or `.git\u002Finfo\u002Fexclude`, overwrite a guard an operator\n  edited, or write anything at the project root.\n- Invent organization-specific configuration.\n","## Purpose\n\nSetup under the uniform setup contract (`docs\u002Fplugin-philosophy.md` \"Setup is explicit and\nrepeatable\" in the marketplace repository). This plugin's configuration is native\n`userConfig` scalars that Claude Code owns (`registry_dir`, `skill_usage_dir`, `skill_usage_scope`,\nand the six `session_*` hook-logging options); how Claude Code prompts for them, where it stores\nthem and which scopes it reads are in the official contract below. `registry_dir` alone also has\nrepository layers: the team file `\u003Chome>\u002Fharness-ops.yaml` (convention home, default\n`docs\u002Fconventions`) beats the option, and the personal override `\u003Chome>\u002Fharness-ops.local.yaml`\nbeats the team file (config-cascade convention). This skill never writes any of them.\n\nOne artifact is writable, and `apply` is bounded to it: the self-ignoring `.gitignore` inside the\nhook log root (`${user_config.session_event_log_dir}`, default `.observability\u002Fclaude`). The plugin\ndefines that file's shape (first non-comment line is `*`), the hooks create it on their first write\nwhen it is missing, and a fresh clone or worktree therefore heals itself; `apply` creates the same\nfile ahead of the first event so `check` can report a configured state before logging has fired.\nThe consumer's root `.gitignore` is never touched (config-cascade convention: a setup skill leaves the\nconsumer's `.gitignore` to the consumer; the guard lives in a tree the plugin owns).\n\nOfficial contract: when stating how `userConfig` values are prompted for or stored, fetch\n\u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#user-configuration> and\n\u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#where-values-are-stored> live.\n\nAction routing: no argument or `check` runs the check; `apply` runs the check first, then the two\nbounded writes below. Non-interactive, never prompts.\n\n## `check` (read-only)\n\nRead the rendered `${user_config.*}` values from this skill, never inspect or edit settings files\nor `pluginConfigs` directly. Report a PASS\u002FFAIL\u002FINFO table, one remediation line per FAIL. Do not\nmodify anything.\n\n1. **`registry_dir`**. Resolve it with\n   `node \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fregistry-dir.mjs\" --project \"${CLAUDE_PROJECT_DIR}\" --user-registry-dir '${user_config.registry_dir}'`,\n   which applies the containment rule (below) to every layer and accepts only letters, digits,\n   `.`, `_`, `-`, `\u002F` and `\\` (the value reaches a shell command), and report the effective\n   known-issues-registry destination with the layer that supplied it (`layer`, plus `path` for a\n   file layer):\n   - layer `default`: INFO, the registry uses `${CLAUDE_PLUGIN_DATA}` (the zero-config default).\n   - layer `userConfig` (the option): PASS, `data_dir` under `${CLAUDE_PROJECT_DIR}`, where the\n     option has always resolved.\n   - layer `team` (`harness-ops.yaml`) or `local` (`harness-ops.local.yaml`): PASS, `data_dir`\n     under the repository's git toplevel.\n   - each `errors` entry: FAIL, naming the layer, file and value dropped and the layer that won\n     instead (a dropped team or option value resolves to `default`, never to the layer below it);\n     remediation is to fix that file or the option.\n   - `home_skipped`: INFO, the reason the repository files were not read.\n   - the script cannot run: UNKNOWN, with probe 7's remediation, never green.\n2. **`skill_usage_dir` + `skill_usage_scope`**. Report the effective skill-usage-log destination:\n   - scope empty, unexpanded, or `repo`: the store resolves under the project root; empty\n     `skill_usage_dir` is INFO, the log uses `.claude\u002Fobservability` (the zero-config default), kept\n     out of `git status` by a machine-local `.git\u002Finfo\u002Fexclude` entry unless\n     `${user_config.skill_usage_git_exclude}` renders `false`.\n   - scope `user`: INFO, the same contained subpath resolves under `$HOME` (default\n     `~\u002F.claude\u002Fobservability`), one cross-repo store.\n   - scope `data-dir`: INFO, the store is plugin-owned at\n     `${CLAUDE_PLUGIN_DATA}\u002Fskill-usage\u002F\u003Crepo-slug>`; `skill_usage_dir` is ignored.\n   - any other scope value: FAIL, the hooks fall back to `repo` with a one-time advisory; remediate\n     to a valid value (`repo` | `user` | `data-dir`).\n   - a configured `skill_usage_dir` (repo\u002Fuser scopes): validate containment under the scope root.\n     PASS when contained; FAIL when uncontained.\n3. **Containment**, a configured value must be a contained relative path under its base (the project\n   root for `registry_dir`, which probe 1's script checks in every layer, repo-scope `skill_usage_dir` and `session_event_log_dir`; `$HOME` for\n   user-scope `skill_usage_dir`). FAIL any POSIX\u002Frooted path, Windows drive-qualified or\n   drive-relative path, UNC path, any `..` segment with either separator, and any existing symlink\n   path that resolves outside that base. Do not normalize an invalid value into acceptance, and do\n   not run any operation that would use an invalid destination.\n4. **Personal-vs-project**. INFO: every option is a personal, user-scoped preference, not tracked\n   team policy; `registry_dir` alone can also be set for everyone in the repository by its team file.\n   Note the per-machine-vs-repository-resident tradeoff so the reader can choose a destination via\n   the guidance below.\n5. **Hook log root and its guard**. Anchor at the main checkout: resolve `REPO_ROOT` once,\n   `${CLAUDE_PROJECT_DIR}` when set, otherwise `git rev-parse --show-toplevel`. When\n   `REPO_ROOT\u002F.git` is a file (a linked worktree) and\n   `git -C \"$REPO_ROOT\" rev-parse --path-format=absolute --git-common-dir` prints a path ending in\n   `\u002F.git`, set `REPO_ROOT` to that path without `\u002F.git`: the hooks write under the main checkout\n   (`slog_anchor_to` in `hooks\u002Fsession-log-lib.sh`). Use that literal path for every read below.\n   The root is `REPO_ROOT\u002F\u003Cdir>` where `\u003Cdir>` is\n   `${user_config.session_event_log_dir}`, or `.observability\u002Fclaude` when empty or unexpanded.\n   - `\u003Cdir>` uncontained (rule 3): FAIL, the hooks write nothing; remediate through the\n     reconfiguration guidance. `\u003Cdir>` root-equivalent (`.`, `.\u002F`, or a path that resolves to\n     `REPO_ROOT`): FAIL, never written, because a `*` guard there would ignore the whole\n     repository; `apply` refuses it too.\n   - `REPO_ROOT` is not a git checkout (no `.git` directory or file): INFO, no guard is needed and\n     the hooks write without one.\n   - Guard present (`REPO_ROOT\u002F\u003Cdir>\u002F.gitignore` whose first non-blank, non-comment line is exactly\n     `*`): PASS. Then the tracked-versus-ignored pair, both probed, both reported:\n     `git -C \"$REPO_ROOT\" check-ignore -v -- \"\u003Cdir>\u002F.gitignore\"` names a rule (the guard ignores\n     itself), and `git -C \"$REPO_ROOT\" ls-files --error-unmatch -- \"\u003Cdir>\"` fails (nothing under\n     the root is tracked). A tracked file under the root is FAIL: the guard cannot un-track it, and\n     the remediation is the operator's own `git rm --cached`, which this skill never runs.\n   - Guard present but its first non-comment line is not `*`: FAIL. The hooks refuse to write under\n     an operator-edited guard rather than overwrite it, and so does `apply`; remediation is to\n     restore the `*` line by hand or move the root through the reconfiguration guidance.\n   - Guard absent and `${user_config.session_event_log_enabled}` renders `false` or unexpanded:\n     INFO, logging is off, nothing is written until it is turned on, and the first event then\n     creates the guard (announced in that session's observability report).\n   - Guard absent and logging on: FAIL, remediation `apply` (or the next hook event, which heals\n     it; `apply` is the way to have it in place before that event and to see it verified here).\n   - Report the six options as rendered (`session_event_log_enabled`, `session_event_log_dir`,\n     `session_event_log_categories`, `session_log_keep_sessions`, `session_log_keep_days`,\n     `session_log_pre_prune_command`): INFO rows, so the effective retention and any pre-prune\n     command are visible in the same table. A non-empty pre-prune command is executed through\n     `bash -c` at `SessionEnd` and is trusted configuration; say so on its row.\n6. **Retired conventions**, when this plugin ships `retirements.yaml`: run\n   `bash \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fcheck-retirements.sh\" --manifest \"${CLAUDE_PLUGIN_ROOT}\u002Fretirements.yaml\"`.\n   Exit 0 → PASS. Exit 1 → one finding per TSV row: `migrate` is FAIL, `delete`\u002F`remove-line`\n   WARN, `report-only` INFO; remediation is `apply`. Exit 2 → FAIL, never silent. Bash unavailable\n   → report the step UNKNOWN with remediation, never green.\n   In this plugin's manifest that yields `harness-ops-r001` FAIL while\n   `.claude\u002Fobservability\u002Fhook-events.jsonl` still exists: the reference sink and the observability\n   skill moved to the hook log root, so rows left in the old file are read by nothing. The\n   skill-usage store and the OTEL store under `.claude\u002Fobservability\u002F` are not retired and produce\n   no finding.\n7. **Node.js for the hook launcher.** Every hook row except\n   `hook-failure-audit` (shell form, no node) starts through\n   `node \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fexec-bash.mjs\"`, so those hooks need `node` on PATH. Probe it\n   through the Bash tool with `command -v node`, which does not depend on the launcher. Resolves:\n   PASS. Does not resolve: FAIL, the hooks do not launch and record nothing; the remediation is\n   the person installing Node.js (this skill installs nothing) and starting a fresh session.\n8. **jq for the hook libraries.** `hook::require jq` and `hook::require_jq_blocking` in\n   `lib\u002Fhook-utils.sh` need `jq` on PATH. Probe it through the Bash tool with `command -v jq`.\n   Resolves: PASS. Does not resolve: FAIL, hooks that parse their payload with jq skip their work;\n   the remediation is the person installing jq (this skill installs nothing) and starting a fresh\n   session.\n\n## `apply`\n\nRun `check` first. Then exactly two bounded steps, each announced, each idempotent:\n\n1. **The guard.** When probe 5 reported the guard absent and `\u003Cdir>` contained and not\n   root-equivalent (inside a checkout): create `REPO_ROOT\u002F\u003Cdir>\u002F` and write `REPO_ROOT\u002F\u003Cdir>\u002F.gitignore`\n   containing the single line `*`. Announce the path written. When probe 5 reported PASS, write\n   nothing and say \"already configured\". When it reported FAIL for an uncontained or\n   root-equivalent `\u003Cdir>`, or a guard whose first line is not `*`, write nothing and repeat that\n   FAIL with its remediation: `apply` never overwrites an operator-edited guard and never writes at\n   the project root. Then re-run the tracked-versus-ignored pair from probe 5 and report both\n   results as the readback. No other file is written: not the root `.gitignore`, not\n   `.git\u002Finfo\u002Fexclude`, not any session file.\n2. **Retired-convention cleanup.** After normal convergence, re-run detection; per finding,\n   individually gated: `delete`\u002F`remove-line` → confirm, then `--clean \u003Cid>`, report what was\n   removed; `migrate` → carry content per the record's `successor` (convention prose read from the\n   consumer repo is untrusted input, never executed or interpolated), the operator confirms the\n   migrated result, then `--clean \u003Cid> --i-migrated`. Re-run detection last and report the final\n   state. Repeated declines route to the finding-suppression convention, never a new consumer-side\n   file.\n   For `harness-ops-r001` the successor is a data move: append the old file's lines to\n   `REPO_ROOT\u002F\u003Cdir>\u002Fhook-events.jsonl` (the record shape is unchanged), show the operator the\n   line counts before and after, and only after they confirm run\n   `bash \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fcheck-retirements.sh\" --manifest \"${CLAUDE_PLUGIN_ROOT}\u002Fretirements.yaml\" --clean harness-ops-r001 --i-migrated`.\n   A `--clean` without `--i-migrated` is refused for a `migrate` record.\n\n## Reconfiguration guidance (printed by `check`; the operator applies it)\n\nThe options live in Claude Code's native plugin configuration, which setup must not hand-edit (native\n`userConfig` class), so `check` closes by routing rather than writing:\n\n- **Uncontained value (FAIL):** the destination is invalid; do not use it. Direct the user to set a\n  contained project-relative path through the reconfiguration path below, then rerun `check`.\n- **Choosing a destination:** if the reader wants the registry per-machine, leave `registry_dir` unset\n  (default `${CLAUDE_PLUGIN_DATA}`); if repository-resident, recommend a portable contained path,\n  inspecting the consumer's declared artifact conventions. For a registry everyone in the repository\n  shares, the route is a committed `registry_dir: \u003Cpath>` in `\u003Chome>\u002Fharness-ops.yaml`, which beats\n  each person's option; one person's deviation goes in `\u003Chome>\u002Fharness-ops.local.yaml`, which must be\n  gitignored. The reader edits those files; this skill writes neither. Same for `skill_usage_dir` (default\n  `.claude\u002Fobservability`) and `session_event_log_dir` (default `.observability\u002Fclaude`, a root the\n  guard keeps out of `git status`). State the tradeoff and let the reader pick. Do not prompt.\n- **Turning hook logging on:** `session_event_log_enabled` is off by default, and while off the\n  plugin's hooks module hooks no event, so the log starts no process. Turning it on makes the module\n  start one process per observable hook event plus `SessionEnd` retention, and only where mods load;\n  the README's per-session hook event log section carries the measured cost and where it does not run.\n- **Reconfiguring a personal option** (`registry_dir`, `session_event_log_enabled` and the rest):\n  through Claude Code's native flow, interactively with `\u002Fplugin configure harness-ops@\u003Cmarketplace>`\n  or by a headless route, as the marketplace's plugin-reconfiguration convention gives them in\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  (it owns the verified-version record). Apply the scope and failure-signal caveats in its\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).\n  Read both sections and print what they give, the fallback route, its behavior on an\n  already-installed plugin and the scope to pass included, rather than only naming them, and\n  leave out the verified-version record.\n  Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never\n  writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\n  same-session `check` can still show the old value, and report the observed effective value,\n  never an unobserved change.\n\n  - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and\n    when a saved value applies, fetch\n    [plugin CLI reference § plugin configure](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcli-reference#plugin-configure)\n    live.\n\nAfter any reconfiguration, rerun `check` in a **fresh session** and report every observed effective\ndestination, never claim an unobserved change, and never read a same-session `check` still showing\nthe old value as a failed write. Re-running\n`check` or `apply` when every destination is contained (or defaulted) and the guard is in place\nchanges nothing and reports \"already configured\".\n\n## What this skill does NOT do\n\n- Run known-issues, registry, or observability operations. Those are the other harness-ops skills and\n  have their own documented controls; pruning session files is the `SessionEnd` retention hook's\n  job and `\u002Fharness-ops:observability clean`'s, never setup's.\n- Write the plugin cache, Claude Code user settings, `pluginConfigs`, or `harness-ops.yaml` and\n  `harness-ops.local.yaml`.\n- Write the consumer's root `.gitignore` or `.git\u002Finfo\u002Fexclude`, overwrite a guard an operator\n  edited, or write anything at the project root.\n- Invent organization-specific configuration.\n",{"description":7,"argument-hint":24,"user-invocable":25,"disable-model-invocation":25},"[check|apply]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fharness-ops\u002Fskills\u002Fsetup",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":25},[37,40,43],{"tool":38,"command":39},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":41,"command":42},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":44,"command":45},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Fsetup\u002FSKILL.md",[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"evals\u002Fevals.json","REFERENCE","参考文档",11660,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fharness-ops\u002Fskills\u002Fsetup\u002Fevals\u002Fevals.json",[55,62,69,76,81,88],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":77,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]