[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KFK00VA4PDNDKP7WK3JAR":3,"skill-same:01M77KFK00VA4PDNDKP7WK3JAR":72},{"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},"01M77KFK00VA4PDNDKP7WK3JAR","setup",null,"Verify the discovery plugin's runtime prerequisites for this session, print the gate allow rules for the operator to paste so the acceptance-gate scripts stop prompting, and write the repository's docs\u002Fconventions\u002Fdiscovery.yaml after confirmation. Use when: 'set up discovery', 'configure the discovery plugin', 'is discovery configured', 'discovery setup', 'the research gates keep prompting', 'set explore_output for this repo', or a discovery skill reports a missing capability. Actions: check (read-only, default), apply (writes docs\u002Fconventions\u002Fdiscovery.yaml). Re-runnable.","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\u002Fdiscovery\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Verify the discovery plugin's runtime prerequisites for this session, print the gate allow rules for the operator to paste so the acceptance-gate scripts stop prompting, and write the repository's docs\u002Fconventions\u002Fdiscovery.yaml after confirmation. Use when: 'set up discovery', 'configure the discovery plugin', 'is discovery configured', 'discovery setup', 'the research gates keep prompting', 'set explore_output for this repo', or a discovery skill reports a missing capability. Actions: check (read-only, default), apply (writes docs\u002Fconventions\u002Fdiscovery.yaml). Re-runnable.\"\nargument-hint: \"[check|apply] [\u003Ckey>=\u003Cvalue> ...]\"\nuser-invocable: true\ndisable-model-invocation: true\n---\n\n## Purpose\n\nReport whether this session can run the discovery plugin's dispatch design, and print the permission\nrules that stop the acceptance-gate scripts prompting on every run. Artifact placement needs no\nconfiguration: the plugin's artifact protocol\n([`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md))\nfixes where `EXPLORE.md`, `RESEARCH.md` and `INTENT.md` land, in the memory slice\n`\u003Cmemory_dir>\u002F\u003Cslug>\u002F`, never committed.\n\nThe plugin owns one tracked consumer file, `docs\u002Fconventions\u002Fdiscovery.yaml`, the repository layer\nof its settings (keys, values and layers:\n[`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fconfig.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fconfig.md); schema:\n`${CLAUDE_PLUGIN_ROOT}\u002Fschemas\u002Fdiscovery.schema.json`). `check` reports it; `apply` writes it,\nplus, on the operator's yes to the convention-home offer, the instruction-file region and the\n`.gitignore` line (`apply` step 5). The harness rows and the operator's `~\u002F.claude\u002Fsettings.json` are reported only, never\nwritten. Action routing: no argument or `check` runs the check; `apply` runs the check, then\nwrites. Re-running either reads the current state again.\n\n## `check` (read-only)\n\nReport a PASS\u002FINFO\u002FWARN table. Do not write anything. No row is ever a FAIL or a blocker.\n\n1. **Dispatch capability.** `\u002Fdiscovery:explore` and `\u002Fdiscovery:research` dispatch a subagent by\n   default, and that posture degrades rather than breaks on a session that cannot support all of it.\n   Report these as PASS\u002FINFO rows:\n   - **Harness version against the 2.1.219 floor** (`claude --version`). Below it, several behaviors\n     the dispatch design relies on are false rather than merely absent: background became the default\n     subagent execution mode in **2.1.198**, and below **2.1.218** a `context: fork` skill always\n     blocked the invoking turn and the narrow background tool set did not apply to it. The dated\n     record for background as the default is\n     [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md),\n     \"Harness facts the dispatch design rests on\". Report the\n     observed version and, when it is under the floor, name which of those the session does not have.\n     The skills still run, inline is always available, so this is INFO, not FAIL.\n   - **`CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH`**. Report the value, present or absent, and say what\n     the running harness does with it rather than assuming. Read absent against the observed\n     version, in four windows: below **2.1.172** nesting does not exist and the variable buys\n     nothing; **2.1.172** to **2.1.216** absent means available at a fixed five; **2.1.217** to\n     **2.1.218** absent means *off*, and setting the variable is the only way to turn nesting on;\n     **2.1.219** and later absent means available at a configurable default of three, and the\n     variable lowers the ceiling (`\"1\"` disables nesting) as readily as it raises one. For the\n     current default and the variable's version history, see\n     [Let subagents spawn their own subagents](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#let-subagents-spawn-their-own-subagents)\n     and the variable's row in [env vars](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars). As of\n     2026-10-02; recheck when the default or the version history changes.\n     Report absent as INFO in every window: nesting buys\n     **throughput**, not coverage, without it a dispatched agent fans out sequentially, slower for\n     the same result. The variable is still only one of **two** conditions: it cannot add a tool an\n     agent definition left out. The shipped `discovery:explorer` \u002F `discovery:researcher` definitions\n     list `Agent` for exactly this reason; a third-party agent that does not is unaffected by setting\n     it. It is not a correctness prerequisite here, because the one control that needs a context\n     which has not seen the work is the outcome-gate verifier, and the parent dispatches that as a\n     **sibling** rather than the agent as a child. Note that a shell env var is read at session start,\n     so a value exported now takes effect next session. Whether a settings-file `env` value reaches\n     a running session is\n     [env vars: set variables in settings files](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars#set-variables-in-settings-files)'s\n     to state.\n   - **Fork availability.** Report it as a control, not a gate. Report `CLAUDE_CODE_FORK_SUBAGENT`\n     when set; when unset, read the default for the observed version and session kind (interactive,\n     `claude -p`, the SDK) from the pointer below and report that, never one remembered here. A\n     default is not a runtime guarantee, so the only authoritative probe is still a live\n     inheritance check (see `discipline:sweep-all`'s preflight); never claim forks are\n     unconditionally available on every build. Name the command that starts a fork by hand as the\n     pointer's fork section gives it.\n     - **Pointer**: [Turn fork mode off](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#turn-fork-mode-on-or-off)\n       for the default and the versions it changed in;\n       [Fork the current conversation](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#fork-the-current-conversation)\n       for the command that starts a fork by hand; the variable's row in\n       [env vars](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars) for what each value does.\n2. **Gate allow rules.** The acceptance-gate scripts prompt on every run unless the operator's\n   `~\u002F.claude\u002Fsettings.json` allows them. Read its `permissions.allow` (a missing file or key reads\n   as no rules; read only, never write) and compare it with these twelve rules for this install root:\n\n   ```text\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-dispatch-artifact.sh\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-coverage-complete.sh\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-source-applicability.py\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-restatement-labels.py\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-author-kind.py\" *)\n   Bash(python3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-claim-eligibility.py\" *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-dispatch-artifact.sh *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-coverage-complete.sh *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-source-applicability.py *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-restatement-labels.py *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-author-kind.py *)\n   Bash(python3 ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-claim-eligibility.py *)\n   ```\n\n   Report one row, **never FAIL**: PASS when all twelve are present for this install root; INFO \"stale\"\n   when gate rules name a different `…\u002Fscripts\u002Fcheck-*` root (an earlier version's cache directory,\n   which stops matching after an update), naming that root; INFO \"absent\" otherwise. On stale or\n   absent, print the twelve rules resolved to this install root and ready to paste, each as a JSON\n   string for `permissions.allow` (the quoted forms escape their inner `\"`). Applying them is the\n   operator's job: this skill never writes user settings. The rules pin this version's cache\n   directory on purpose, so a plugin update invalidates them and `check` reports them \"stale\" again;\n   why a version wildcard is unsafe is in\n   [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md)\n   (\"Operator setup\").\n3. **Repository settings.** Run\n   `\"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsetup-apply.mjs\" --check` from the project root and report each\n   line it prints with its own INFO, PASS or WARN prefix. INFO when\n   `docs\u002Fconventions\u002Fdiscovery.yaml` is absent (every key comes from `userConfig` or its default);\n   PASS with each key's value when the file validates; WARN when it does not (a value outside the\n   key's list, a key set twice, an empty value or empty string, or a map or list where one string\n   belongs), quoting the file, key and value. An invalid value never stops a discovery skill: the\n   skill names it and drops that layer, so the row is a WARN. `apply` fixes a value outside the list\n   or an empty value; the other shapes are fixed by hand, and `apply` refuses the file until then.\n\n## `apply` (writes `docs\u002Fconventions\u002Fdiscovery.yaml`, and the step 5 region and ignore line on a yes)\n\n1. Run `check` and show its table.\n2. **Resolve the values.** With complete `\u003Ckey>=\u003Cvalue>` arguments, use them. Otherwise ask one key\n   at a time, recommendation first, from the Keys table in `${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fconfig.md`\n   (`explore_output`: `auto`, the default, unless the team wants every run pinned to `change-prep`\n   or `explain`). Never invent a key the schema does not list.\n3. **Write.** One call with every value:\n\n   ```bash\n   \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsetup-apply.mjs\" explore_output=explain\n   ```\n\n   Pass a key the operator accepts at the plugin default as `--default \u003Ckey>` instead of\n   `\u003Ckey>=\u003Cvalue>`, so a later change to that default reaches it; `\u003Ckey>=\u003Cvalue>` records the\n   team's choice, which the script never changes. The script also records `written_against` and\n   `provenance:`, so a file with no record, or one written against another plugin version, shows a\n   diff even when no value changes.\n\n   The script checks each value against the schema and validates the whole resulting document\n   before it writes; an invalid value or key, or an existing file with a key set twice, an empty\n   string, a map or a list, exits 1 with one line and writes nothing. It writes the file only at\n   `\u003Cgit toplevel>\u002Fdocs\u002Fconventions\u002Fdiscovery.yaml`. It resolves a symlinked root first, then\n   refuses a root that is `$HOME` or an ancestor of it, a symlinked `docs`, `docs\u002Fconventions` or\n   target, a hard-linked target, or a `docs\u002Fconventions` that resolves outside the repository,\n   checked again right before the\n   write, so the file never lands outside `docs\u002Fconventions\u002F`. A missing file is created. A value already in place prints\n   `already configured` and writes nothing.\n4. **An existing file that would change** exits 3 and prints a unified diff without writing. Show\n   the operator that diff and ask whether to write it. Only on an explicit yes, re-run the same\n   call with `--yes`; on anything else, stop with the file unchanged. A request to \"set it\" is not\n   a yes to a diff the operator has not seen.\n   When the convention-home offer prints below the diff, ask about it too (the next step) before\n   any re-run, since `--yes` writes both.\n5. **The convention-home offer.** When the repository's `AGENTS.md` or `CLAUDE.md` binds no\n   convention home, the script prints an offer: with the operator's confirmation it adds a\n   convention-home pointer region to that instruction file (creating `AGENTS.md` when neither\n   exists or `CLAUDE.md` only imports it) and the personal override ignore line\n   `docs\u002Fconventions\u002F**\u002F*.local.*` to `.gitignore`, the only files `apply` writes outside\n   `docs\u002Fconventions\u002F`. It prints the offer at the end of an exit 0 run and below the diff of an\n   exit 3 run, so show the operator stdout on exit 0 too. Ask whether to add the region and the\n   ignore line. Only on an explicit yes, re-run the same call with `--yes`, which also writes any\n   diff shown with it. On a no, run `\"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsetup-apply.mjs\" --decline`\n   alone: it records the decline in the instruction file, and the next run does not offer again.\n   To write a shown diff without the region, run `--decline` first, then the same call with\n   `--yes`. When the instruction file or `.gitignore` is a symlink or hard link the script will\n   not write through, it prints a one-line refusal in place of the offer, with the same exit\n   code: show it, and do not re-run with `--yes`, which that refusal stops with exit 1. A refused\n   instruction file refuses `--decline` too, so the operator fixes the link or adds the region by\n   hand.\n6. **Verify.** Re-run `check` and report the value from its table, not from the write. Then the\n   tracked-file pair: `git check-ignore -v docs\u002Fconventions\u002Fdiscovery.yaml` reports no match (a\n   match means the team never receives the file: say so, and leave `.gitignore` to the operator),\n   and `git ls-files --error-unmatch docs\u002Fconventions\u002Fdiscovery.yaml` exits 0. Non-zero right after\n   a fresh write means \"written but untracked: commit it to share with the team\", never success.\n\n## Output\n\n`check`: the table and, when the gate allow rules are stale or absent, the twelve resolved rules as\nJSON strings ready to paste. `apply`: the table before and after, the diff when one was shown, the\nwritten path, and whether the file is tracked.\n\n## Next\n\n`\u002Fdiscovery:explore`\n\n## Gotchas\n\n- **Shell env vars are read at session start.** A capability the check reports as missing stays\n  missing for the rest of this session even after it is exported in the shell; the recommendation\n  takes effect next session. Whether a variable set in a settings file's `env` applies now is\n  [env vars: set variables in settings files](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars#set-variables-in-settings-files)'s\n  to state.\n- **The gate allow rules stop matching after a plugin update.** They name this version's cache\n  directory, so the gates prompt again until the operator pastes the rules `check` prints; `check`\n  reports them \"stale\".\n- **The repository file reaches the team only once committed.** `apply` leaves it uncommitted on\n  purpose, and the tracked-file pair says so.\n\n## What this skill does NOT do\n\n- Run an exploration, research, or intent-tracing pass. Those are the plugin's discovery skills\n  (`\u002Fdiscovery:explore`, `\u002Fdiscovery:research`, `\u002Fdiscovery:trace-intent`).\n- Write machine-local state. The plugin directory and the plugin data directory\n  (`${CLAUDE_PLUGIN_DATA}`, for caches and generated state only) stay untouched.\n- Write Claude Code user settings or `pluginConfigs`. `check` reads `~\u002F.claude\u002Fsettings.json` and\n  prints the gate allow rules; the operator applies them.\n- Write any file other than `docs\u002Fconventions\u002Fdiscovery.yaml`, except the `apply` step 5 region and\n  ignore line on the operator's explicit yes.\n","## Purpose\n\nReport whether this session can run the discovery plugin's dispatch design, and print the permission\nrules that stop the acceptance-gate scripts prompting on every run. Artifact placement needs no\nconfiguration: the plugin's artifact protocol\n([`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fartifact-protocol.md))\nfixes where `EXPLORE.md`, `RESEARCH.md` and `INTENT.md` land, in the memory slice\n`\u003Cmemory_dir>\u002F\u003Cslug>\u002F`, never committed.\n\nThe plugin owns one tracked consumer file, `docs\u002Fconventions\u002Fdiscovery.yaml`, the repository layer\nof its settings (keys, values and layers:\n[`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fconfig.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fconfig.md); schema:\n`${CLAUDE_PLUGIN_ROOT}\u002Fschemas\u002Fdiscovery.schema.json`). `check` reports it; `apply` writes it,\nplus, on the operator's yes to the convention-home offer, the instruction-file region and the\n`.gitignore` line (`apply` step 5). The harness rows and the operator's `~\u002F.claude\u002Fsettings.json` are reported only, never\nwritten. Action routing: no argument or `check` runs the check; `apply` runs the check, then\nwrites. Re-running either reads the current state again.\n\n## `check` (read-only)\n\nReport a PASS\u002FINFO\u002FWARN table. Do not write anything. No row is ever a FAIL or a blocker.\n\n1. **Dispatch capability.** `\u002Fdiscovery:explore` and `\u002Fdiscovery:research` dispatch a subagent by\n   default, and that posture degrades rather than breaks on a session that cannot support all of it.\n   Report these as PASS\u002FINFO rows:\n   - **Harness version against the 2.1.219 floor** (`claude --version`). Below it, several behaviors\n     the dispatch design relies on are false rather than merely absent: background became the default\n     subagent execution mode in **2.1.198**, and below **2.1.218** a `context: fork` skill always\n     blocked the invoking turn and the narrow background tool set did not apply to it. The dated\n     record for background as the default is\n     [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md),\n     \"Harness facts the dispatch design rests on\". Report the\n     observed version and, when it is under the floor, name which of those the session does not have.\n     The skills still run, inline is always available, so this is INFO, not FAIL.\n   - **`CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH`**. Report the value, present or absent, and say what\n     the running harness does with it rather than assuming. Read absent against the observed\n     version, in four windows: below **2.1.172** nesting does not exist and the variable buys\n     nothing; **2.1.172** to **2.1.216** absent means available at a fixed five; **2.1.217** to\n     **2.1.218** absent means *off*, and setting the variable is the only way to turn nesting on;\n     **2.1.219** and later absent means available at a configurable default of three, and the\n     variable lowers the ceiling (`\"1\"` disables nesting) as readily as it raises one. For the\n     current default and the variable's version history, see\n     [Let subagents spawn their own subagents](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#let-subagents-spawn-their-own-subagents)\n     and the variable's row in [env vars](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars). As of\n     2026-10-02; recheck when the default or the version history changes.\n     Report absent as INFO in every window: nesting buys\n     **throughput**, not coverage, without it a dispatched agent fans out sequentially, slower for\n     the same result. The variable is still only one of **two** conditions: it cannot add a tool an\n     agent definition left out. The shipped `discovery:explorer` \u002F `discovery:researcher` definitions\n     list `Agent` for exactly this reason; a third-party agent that does not is unaffected by setting\n     it. It is not a correctness prerequisite here, because the one control that needs a context\n     which has not seen the work is the outcome-gate verifier, and the parent dispatches that as a\n     **sibling** rather than the agent as a child. Note that a shell env var is read at session start,\n     so a value exported now takes effect next session. Whether a settings-file `env` value reaches\n     a running session is\n     [env vars: set variables in settings files](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars#set-variables-in-settings-files)'s\n     to state.\n   - **Fork availability.** Report it as a control, not a gate. Report `CLAUDE_CODE_FORK_SUBAGENT`\n     when set; when unset, read the default for the observed version and session kind (interactive,\n     `claude -p`, the SDK) from the pointer below and report that, never one remembered here. A\n     default is not a runtime guarantee, so the only authoritative probe is still a live\n     inheritance check (see `discipline:sweep-all`'s preflight); never claim forks are\n     unconditionally available on every build. Name the command that starts a fork by hand as the\n     pointer's fork section gives it.\n     - **Pointer**: [Turn fork mode off](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#turn-fork-mode-on-or-off)\n       for the default and the versions it changed in;\n       [Fork the current conversation](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsub-agents#fork-the-current-conversation)\n       for the command that starts a fork by hand; the variable's row in\n       [env vars](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars) for what each value does.\n2. **Gate allow rules.** The acceptance-gate scripts prompt on every run unless the operator's\n   `~\u002F.claude\u002Fsettings.json` allows them. Read its `permissions.allow` (a missing file or key reads\n   as no rules; read only, never write) and compare it with these twelve rules for this install root:\n\n   ```text\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-dispatch-artifact.sh\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-coverage-complete.sh\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-source-applicability.py\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-restatement-labels.py\" *)\n   Bash(\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-author-kind.py\" *)\n   Bash(python3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-claim-eligibility.py\" *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-dispatch-artifact.sh *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-coverage-complete.sh *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-source-applicability.py *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-restatement-labels.py *)\n   Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-author-kind.py *)\n   Bash(python3 ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-claim-eligibility.py *)\n   ```\n\n   Report one row, **never FAIL**: PASS when all twelve are present for this install root; INFO \"stale\"\n   when gate rules name a different `…\u002Fscripts\u002Fcheck-*` root (an earlier version's cache directory,\n   which stops matching after an update), naming that root; INFO \"absent\" otherwise. On stale or\n   absent, print the twelve rules resolved to this install root and ready to paste, each as a JSON\n   string for `permissions.allow` (the quoted forms escape their inner `\"`). Applying them is the\n   operator's job: this skill never writes user settings. The rules pin this version's cache\n   directory on purpose, so a plugin update invalidates them and `check` reports them \"stale\" again;\n   why a version wildcard is unsafe is in\n   [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fparent-contract.md)\n   (\"Operator setup\").\n3. **Repository settings.** Run\n   `\"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsetup-apply.mjs\" --check` from the project root and report each\n   line it prints with its own INFO, PASS or WARN prefix. INFO when\n   `docs\u002Fconventions\u002Fdiscovery.yaml` is absent (every key comes from `userConfig` or its default);\n   PASS with each key's value when the file validates; WARN when it does not (a value outside the\n   key's list, a key set twice, an empty value or empty string, or a map or list where one string\n   belongs), quoting the file, key and value. An invalid value never stops a discovery skill: the\n   skill names it and drops that layer, so the row is a WARN. `apply` fixes a value outside the list\n   or an empty value; the other shapes are fixed by hand, and `apply` refuses the file until then.\n\n## `apply` (writes `docs\u002Fconventions\u002Fdiscovery.yaml`, and the step 5 region and ignore line on a yes)\n\n1. Run `check` and show its table.\n2. **Resolve the values.** With complete `\u003Ckey>=\u003Cvalue>` arguments, use them. Otherwise ask one key\n   at a time, recommendation first, from the Keys table in `${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fconfig.md`\n   (`explore_output`: `auto`, the default, unless the team wants every run pinned to `change-prep`\n   or `explain`). Never invent a key the schema does not list.\n3. **Write.** One call with every value:\n\n   ```bash\n   \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsetup-apply.mjs\" explore_output=explain\n   ```\n\n   Pass a key the operator accepts at the plugin default as `--default \u003Ckey>` instead of\n   `\u003Ckey>=\u003Cvalue>`, so a later change to that default reaches it; `\u003Ckey>=\u003Cvalue>` records the\n   team's choice, which the script never changes. The script also records `written_against` and\n   `provenance:`, so a file with no record, or one written against another plugin version, shows a\n   diff even when no value changes.\n\n   The script checks each value against the schema and validates the whole resulting document\n   before it writes; an invalid value or key, or an existing file with a key set twice, an empty\n   string, a map or a list, exits 1 with one line and writes nothing. It writes the file only at\n   `\u003Cgit toplevel>\u002Fdocs\u002Fconventions\u002Fdiscovery.yaml`. It resolves a symlinked root first, then\n   refuses a root that is `$HOME` or an ancestor of it, a symlinked `docs`, `docs\u002Fconventions` or\n   target, a hard-linked target, or a `docs\u002Fconventions` that resolves outside the repository,\n   checked again right before the\n   write, so the file never lands outside `docs\u002Fconventions\u002F`. A missing file is created. A value already in place prints\n   `already configured` and writes nothing.\n4. **An existing file that would change** exits 3 and prints a unified diff without writing. Show\n   the operator that diff and ask whether to write it. Only on an explicit yes, re-run the same\n   call with `--yes`; on anything else, stop with the file unchanged. A request to \"set it\" is not\n   a yes to a diff the operator has not seen.\n   When the convention-home offer prints below the diff, ask about it too (the next step) before\n   any re-run, since `--yes` writes both.\n5. **The convention-home offer.** When the repository's `AGENTS.md` or `CLAUDE.md` binds no\n   convention home, the script prints an offer: with the operator's confirmation it adds a\n   convention-home pointer region to that instruction file (creating `AGENTS.md` when neither\n   exists or `CLAUDE.md` only imports it) and the personal override ignore line\n   `docs\u002Fconventions\u002F**\u002F*.local.*` to `.gitignore`, the only files `apply` writes outside\n   `docs\u002Fconventions\u002F`. It prints the offer at the end of an exit 0 run and below the diff of an\n   exit 3 run, so show the operator stdout on exit 0 too. Ask whether to add the region and the\n   ignore line. Only on an explicit yes, re-run the same call with `--yes`, which also writes any\n   diff shown with it. On a no, run `\"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsetup-apply.mjs\" --decline`\n   alone: it records the decline in the instruction file, and the next run does not offer again.\n   To write a shown diff without the region, run `--decline` first, then the same call with\n   `--yes`. When the instruction file or `.gitignore` is a symlink or hard link the script will\n   not write through, it prints a one-line refusal in place of the offer, with the same exit\n   code: show it, and do not re-run with `--yes`, which that refusal stops with exit 1. A refused\n   instruction file refuses `--decline` too, so the operator fixes the link or adds the region by\n   hand.\n6. **Verify.** Re-run `check` and report the value from its table, not from the write. Then the\n   tracked-file pair: `git check-ignore -v docs\u002Fconventions\u002Fdiscovery.yaml` reports no match (a\n   match means the team never receives the file: say so, and leave `.gitignore` to the operator),\n   and `git ls-files --error-unmatch docs\u002Fconventions\u002Fdiscovery.yaml` exits 0. Non-zero right after\n   a fresh write means \"written but untracked: commit it to share with the team\", never success.\n\n## Output\n\n`check`: the table and, when the gate allow rules are stale or absent, the twelve resolved rules as\nJSON strings ready to paste. `apply`: the table before and after, the diff when one was shown, the\nwritten path, and whether the file is tracked.\n\n## Next\n\n`\u002Fdiscovery:explore`\n\n## Gotchas\n\n- **Shell env vars are read at session start.** A capability the check reports as missing stays\n  missing for the rest of this session even after it is exported in the shell; the recommendation\n  takes effect next session. Whether a variable set in a settings file's `env` applies now is\n  [env vars: set variables in settings files](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fenv-vars#set-variables-in-settings-files)'s\n  to state.\n- **The gate allow rules stop matching after a plugin update.** They name this version's cache\n  directory, so the gates prompt again until the operator pastes the rules `check` prints; `check`\n  reports them \"stale\".\n- **The repository file reaches the team only once committed.** `apply` leaves it uncommitted on\n  purpose, and the tracked-file pair says so.\n\n## What this skill does NOT do\n\n- Run an exploration, research, or intent-tracing pass. Those are the plugin's discovery skills\n  (`\u002Fdiscovery:explore`, `\u002Fdiscovery:research`, `\u002Fdiscovery:trace-intent`).\n- Write machine-local state. The plugin directory and the plugin data directory\n  (`${CLAUDE_PLUGIN_DATA}`, for caches and generated state only) stay untouched.\n- Write Claude Code user settings or `pluginConfigs`. `check` reads `~\u002F.claude\u002Fsettings.json` and\n  prints the gate allow rules; the operator applies them.\n- Write any file other than `docs\u002Fconventions\u002Fdiscovery.yaml`, except the `apply` step 5 region and\n  ignore line on the operator's explicit yes.\n",{"description":7,"argument-hint":24,"user-invocable":25,"disable-model-invocation":25},"[check|apply] [\u003Ckey>=\u003Cvalue> ...]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fdiscovery\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\u002Fdiscovery\u002Fskills\u002Fsetup\u002FSKILL.md",[48,54,60,64,68],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"evals\u002Fevals.json","REFERENCE","参考文档",5602,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fskills\u002Fsetup\u002Fevals\u002Fevals.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"scripts\u002Fparse-concern-value.sh","SCRIPT","脚本",5082,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fskills\u002Fsetup\u002Fscripts\u002Fparse-concern-value.sh",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fsetup-apply.mjs",807,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fskills\u002Fsetup\u002Fscripts\u002Fsetup-apply.mjs",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fsetup-apply.test.sh",17767,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fskills\u002Fsetup\u002Fscripts\u002Fsetup-apply.test.sh",{"path":69,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fyaml-subset.awk",9901,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fskills\u002Fsetup\u002Fscripts\u002Fyaml-subset.awk",[73,80,87,94,99,106],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[]]