[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K8XHS1BCSCNZN3P172N6C":3,"skill-same:01M77K8XHS1BCSCNZN3P172N6C":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},"01M77K8XHS1BCSCNZN3P172N6C","setup",null,"Checks or scaffolds this repository's code-tidying configuration: tracked project tidy lanes and the optional HARD-exclusion overrides file. Use when 'set up code-tidying' is asked or the tidy skill reports no project lanes.","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\u002Fcode-tidying\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Checks or scaffolds this repository's code-tidying configuration: tracked project tidy lanes and the optional HARD-exclusion overrides file. Use when 'set up code-tidying' is asked or the tidy skill reports no project lanes.\"\nargument-hint: \"[check|apply] [\u003Clane>]\"\nuser-invocable: true\ndisable-model-invocation: true\n---\n\n## Purpose\n\nVerify and scaffold the consuming repo's tracked lane definitions at `.claude\u002Ftidy-lanes\u002F\u003Clane>.md`,\nso `\u002Fcode-tidying:tidy` resolves project-specific scope globs and watch-for patterns instead of the\ngeneric bundled lanes. A project lane at `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Ftidy-lanes\u002F\u003Clane>.md` layers\nover the bundled lane of the same name: one declaring `## Merge semantics` merges per section with\nthe bundled lane, one without it resolves project-only (the `tidy` skill's Lane resolution).\n\nProject lanes are optional: with none, tidy uses the bundled lanes, so their absence is an INFO,\nnever a FAIL. The skill follows the uniform setup contract (`docs\u002Fplugin-philosophy.md` \"Setup is\nexplicit and repeatable\" in the marketplace repository): no argument or `check` inspects\nread-only; `apply` runs the check, scaffolds or retunes lanes, then re-runs `check`; `apply \u003Clane>`\ntargets one lane. Re-running reads the existing lane files and proposes changes against them rather\nthan overwriting a consumer lane blind.\n\n## Lanes vs. templates\n\n- **Bundled lanes** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Flanes\u002F*.md`: `shell-tooling`, `docs-prose`)\n  cover surfaces that look the same in most repos and resolve with **no config**. A project override\n  is worth writing only when this repo's tooling or doc directories differ from their defaults.\n- **Bundled templates** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002F*.template.md`) are\n  `\u003Cplaceholder>` scaffolds for lanes that are project-specific by design: code the repo has but no\n  generic lane can name. Turning the fitting templates into real lane files is this skill's main\n  job.\n\nNever tell the user to \"copy the bundled lanes\": scaffold from templates, and override a bundled\nlane only when its defaults miss this repo's layout.\n\nThe plugin's second tracked file is `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fcode-tidying\u002Fexclusion-overrides.md`,\noptional and absent by default: root-relative globs that lift GLOBAL HARD **path** exclusions for\nevery run in this repository, the subtracting mirror of the consumer-declared protections that add\nto them. `check` validates it; `apply` writes it only when the user asks. Contract, shape,\nprecedence, and what no channel lifts: the `tidy` skill's\n[exclusions reference](${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Freference\u002Fexclusions.md) section 4.\n\n## `check` (read-only)\n\nReport a PASS\u002FFAIL\u002FINFO table with one remediation line per FAIL. Modify nothing, and do not run a\ntidy sweep (that is `\u002Fcode-tidying:tidy`).\n\n1. **Project lanes present.** List `.claude\u002Ftidy-lanes\u002F*.md`. None → INFO: tidy resolves the\n   bundled lanes; `apply` scaffolds project lanes when this repo's layout diverges from them.\n2. **Lane structure.** Each lane carries `## Scope`, `## Watch-for patterns`,\n   `## Lane-specific extra exclusions`, `## Verification commands`, `## Conventional Commits type`,\n   and `## Preferred research sources`; a missing section is FAIL. Exception: a lane that declares\n   `## Merge semantics` **and** shares its name with one of `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Flanes\u002F*.md`\n   inherits every section it omits, so report which sections it inherits instead. The exemption\n   belongs to the declaration, not the heading: confirm the section either adopts the bundled lane's\n   declaration by reference (the shape `apply` writes, `Merge semantics: per the bundled lane's\n   declaration`) or states a disposition for every required section the lane omits. An empty,\n   unrelated, or silent-on-an-omitted-section declaration is FAIL (malformed merge declaration;\n   remediation: adopt the bundled declaration by reference or state the missing dispositions). FAIL\n   too when the lane overrides a section the bundled lane keys at `###` granularity\n   (`shell-tooling`'s `Verification commands` and `Preferred research sources`) without keying its\n   own entries under those `###` language headings, since unkeyed entries name no language to\n   replace. Framing prose above the first `###` is fine.\n3. **No unreplaced placeholders.** A leftover template `\u003Cplaceholder>` is a broken scope glob or\n   watch-for pattern: FAIL, naming the file and the token.\n4. **Tracked, not ignored.** Per lane file, run both halves of the tracked-file pair:\n   `git check-ignore -v \u003Cfile>` (non-empty means a `.gitignore` pattern excludes the lane: FAIL with\n   the pattern, since a directory can be tracked while a pattern excludes one `.md` inside it) AND\n   `git ls-files --error-unmatch \u003Cfile>` (non-zero means un-ignored but untracked: report \"commit it\n   to share with the team\", downgraded to INFO only when the user confirms a deliberately private,\n   uncommitted lane).\n5. **Bundled lanes and templates.** INFO: list them as the scaffold sources `apply` can use.\n6. **HARD-exclusion overrides.** Absent is the normal state: INFO naming the file and what it does.\n   Present: check it against section 4 of the exclusions reference: an `## Overrides` heading with\n   one fenced block, one root-relative glob per line. FAIL an absolute path or an entry containing\n   `..`, naming the line. FAIL a glob matching the overrides file itself or the `.claude\u002Ftidy-lanes\u002F`\n   definitions beside it: the file cannot lift its own protection. FAIL a glob that also matches a\n   path this repo's `CLAUDE.md` \u002F `.claude\u002Frules` declare protected, naming both declarations: the\n   protection wins and the override is dead text. Run both halves of the tracked-file pair on it as\n   for a lane file (`git check-ignore -v` reports no match, `git ls-files --error-unmatch` exits 0),\n   since it is a team statement that counts only when committed. Report the globs it lifts.\n7. **`hard_exclusions` posture.** Report the stored `userConfig` value. `enforce` (default) is PASS.\n   `advisory` is INFO, not a FAIL, a deliberate operator posture, and the report line states what it\n   does: every GLOBAL HARD **path** entry is reported instead of blocking, in every run this operator\n   makes. If the value changed this session, say the\n   running session's behavior is not yet established: the stored value is current, the session lags.\n\n## `apply` (idempotent)\n\nRun `check`, then resolve each lane by the convention ladder: config present → use it; absent →\ninfer from the repo and persist; cannot infer → ask and offer to persist; else a safe default (skip\nthat lane, no empty file). Proceed non-interactively wherever the invocation and the repo make the\nanswer unambiguous; ask only where a lane's scope genuinely needs the user's call.\n\n1. **Read existing lanes first.** If any exist, summarize each (name, scope globs, watch-for count)\n   and propose changes against that baseline. **Never overwrite an existing consumer lane without\n   explicit confirmation in this conversation.**\n2. **Explore the repo to draft candidate lanes** before asking anything. Map the four template\n   patterns against what actually exists, reading real directory names and extensions and assuming\n   no stack, and skip any pattern the repo has no surface for:\n   - **apps** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fapps-lane.template.md`): user-facing\n     web\u002FAPI\u002FCLI app roots and their sibling test projects.\n   - **dependency-root** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fdependency-root-lane.template.md`):\n     shared, domain, or core library roots that downstream code depends on.\n   - **host-wiring** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fhost-wiring-lane.template.md`):\n     composition roots, DI wiring, logging, registration, service defaults.\n   - **polyglot-services** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fpolyglot-services-lane.template.md`):\n     non-primary-language services, MCP servers, sidecars.\n   - **bundled-lane override**: a project override of `shell-tooling` or `docs-prose` only when the\n     repo's tooling or doc directories diverge from the bundled scope globs.\n   Under `apply \u003Clane>`, scope this to that lane.\n3. **Interview, one lane at a time**, recommendation first and the highest-blast-radius lane\n   first. Present each candidate with its inferred globs and source template; let the user accept,\n   edit the globs, or drop it. Offer a custom lane last (\"any other glob-scoped slice this repo\n   should tidy on its own rotation?\").\n4. **Fill each accepted lane from real repo values.** Read its source in full, then replace every\n   `\u003Cplaceholder>` (templates) or bundled default (overrides):\n   - **Template-pattern lanes** start from the exact template file presented in step 2\n     (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002F\u003Cpattern>-lane.template.md`).\n   - **Bundled-lane overrides** have no template: read `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Flanes\u002F\u003Clane>.md`\n     and write **only** the sections this repo diverges on (usually `## Scope`, sometimes extra\n     exclusions) plus a `## Merge semantics` section adopting the bundled lane's declaration. Where\n     the bundled lane keys a section at `###` granularity, key the override the same way.\n   - **Custom lanes** start from the closest template, or, when none fits, a new file with the same\n     six sections. Never emit a lane missing a section.\n   Fill scope globs from real paths, watch-for patterns tuned to the stack, lane-specific exclusions\n   for this repo's unverifiable surfaces, verification commands from the project's own CLAUDE.md,\n   rules, or CI config (never invented), the Conventional Commits type, and preferred research\n   sources. Leave no `\u003Cplaceholder>` behind.\n5. **Write the lane files** the user confirmed at `.claude\u002Ftidy-lanes\u002F\u003Clane>.md`; no empty\n   scaffolds.\n6. **Verify after remediation.** Re-run the `check` probes on each written file: required sections,\n   no leftover placeholder, and both halves of the tracked-file pair. A `git check-ignore -v` match\n   means a `.gitignore` pattern excludes the lane: surface it and offer to fix `.gitignore` before\n   reporting success. A non-zero `git ls-files --error-unmatch` is the expected state right after a\n   fresh write: report \"written but untracked: commit it to share with the team\", never success,\n   since these lanes are team-shared and reach the team only once committed. tidy resolves a lane\n   only from `.claude\u002Ftidy-lanes\u002F\u003Clane>.md` (then the bundled lane of that name), with no\n   user-global layer or `*.local.*` personal override (a declared deviation from the config-cascade contract). Never\n   point a developer at a `*.local.*` variant tidy would not load; a private lane uses a lane name\n   the team does not track, kept uncommitted (never add it to the index).\n7. **Offer the overrides file only when the repo asked for one**: the conversation named a path the\n   plugin keeps dropping, or `check` reported a malformed existing file. Absent is correct for almost\n   every repository, and an empty overrides file is the empty scaffold step 5 forbids. Write\n   `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fcode-tidying\u002Fexclusion-overrides.md` in the section 4 shape (an\n   `## Overrides` heading, one fenced block, one root-relative glob per line, `#` comments) with only\n   globs the user named, preserving any prose already in the file. Re-run the step 6 probes on it,\n   report it as written but untracked until committed, and state plainly what it loosens.\n\nRe-running `apply` after everything passes changes nothing and reports \"already configured\".\n\n## Personal configuration (`userConfig`)\n\nNot `apply` surface: Claude Code owns the storage, and this contract forbids setup to write\n`pluginConfigs`, so `check` reports the observed value and routes the change. Reconfigure through\nClaude Code's native flow, interactively with `\u002Fplugin configure code-tidying@\u003Cmarketplace>` or by\na 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).\nRead both sections and print what they give, the fallback route, its behavior on an\nalready-installed plugin and the scope to pass included, rather than only naming them, and\nleave out the verified-version record.\nNever uninstall to reconfigure; that section links what an uninstall deletes. This skill never\nwrites user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\nsame-session `check` can still show the old value, and report the observed effective value, never\nan unobserved change. `hard_exclusions` takes `enforce` (default, every GLOBAL HARD path entry\nblocks) or `advisory` (every one is reported and none blocks); any other value is read as\n`enforce`. The full option table is in the plugin README.\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\n## Output\n\nTracked `.claude\u002Ftidy-lanes\u002F\u003Clane>.md` file(s) in the consuming repo, plus a one-paragraph summary\nof which lanes were written, the source of each (template or bundled lane), and how to re-run this\nsetup to add or retune lanes. When an overrides file was written or already exists, the summary\nnames it and the globs it lifts.\n\n## Boundaries\n\n- Never runs a tidy sweep (`\u002Fcode-tidying:tidy`); `check` only inspects config.\n- Never writes the plugin cache, Claude Code user settings, `pluginConfigs`, or machine-local\n  state: lane configuration lives in the consumer's tracked `.claude\u002Ftidy-lanes\u002F`, never in the\n  plugin directory or a plugin data directory.\n- Ships no template copies: lanes scaffold from `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002F`, so\n  they cannot drift from the source.\n\n## Gotchas\n\n- **Do not uninstall to reconfigure.** The plugin-reconfiguration convention's\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries)\n  links what an uninstall deletes, and\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  covers what an install rerun does to stored options.\n- **A copied bundled section is frozen** at its copy-time value, while an omitted one keeps\n  inheriting bundled improvements. Write only the sections that diverge.\n- **Gitignoring a path the team already tracks does not make it personal**: indexed files remain\n  visible to Git regardless of `.gitignore`.\n","## Purpose\n\nVerify and scaffold the consuming repo's tracked lane definitions at `.claude\u002Ftidy-lanes\u002F\u003Clane>.md`,\nso `\u002Fcode-tidying:tidy` resolves project-specific scope globs and watch-for patterns instead of the\ngeneric bundled lanes. A project lane at `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Ftidy-lanes\u002F\u003Clane>.md` layers\nover the bundled lane of the same name: one declaring `## Merge semantics` merges per section with\nthe bundled lane, one without it resolves project-only (the `tidy` skill's Lane resolution).\n\nProject lanes are optional: with none, tidy uses the bundled lanes, so their absence is an INFO,\nnever a FAIL. The skill follows the uniform setup contract (`docs\u002Fplugin-philosophy.md` \"Setup is\nexplicit and repeatable\" in the marketplace repository): no argument or `check` inspects\nread-only; `apply` runs the check, scaffolds or retunes lanes, then re-runs `check`; `apply \u003Clane>`\ntargets one lane. Re-running reads the existing lane files and proposes changes against them rather\nthan overwriting a consumer lane blind.\n\n## Lanes vs. templates\n\n- **Bundled lanes** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Flanes\u002F*.md`: `shell-tooling`, `docs-prose`)\n  cover surfaces that look the same in most repos and resolve with **no config**. A project override\n  is worth writing only when this repo's tooling or doc directories differ from their defaults.\n- **Bundled templates** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002F*.template.md`) are\n  `\u003Cplaceholder>` scaffolds for lanes that are project-specific by design: code the repo has but no\n  generic lane can name. Turning the fitting templates into real lane files is this skill's main\n  job.\n\nNever tell the user to \"copy the bundled lanes\": scaffold from templates, and override a bundled\nlane only when its defaults miss this repo's layout.\n\nThe plugin's second tracked file is `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fcode-tidying\u002Fexclusion-overrides.md`,\noptional and absent by default: root-relative globs that lift GLOBAL HARD **path** exclusions for\nevery run in this repository, the subtracting mirror of the consumer-declared protections that add\nto them. `check` validates it; `apply` writes it only when the user asks. Contract, shape,\nprecedence, and what no channel lifts: the `tidy` skill's\n[exclusions reference](${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Freference\u002Fexclusions.md) section 4.\n\n## `check` (read-only)\n\nReport a PASS\u002FFAIL\u002FINFO table with one remediation line per FAIL. Modify nothing, and do not run a\ntidy sweep (that is `\u002Fcode-tidying:tidy`).\n\n1. **Project lanes present.** List `.claude\u002Ftidy-lanes\u002F*.md`. None → INFO: tidy resolves the\n   bundled lanes; `apply` scaffolds project lanes when this repo's layout diverges from them.\n2. **Lane structure.** Each lane carries `## Scope`, `## Watch-for patterns`,\n   `## Lane-specific extra exclusions`, `## Verification commands`, `## Conventional Commits type`,\n   and `## Preferred research sources`; a missing section is FAIL. Exception: a lane that declares\n   `## Merge semantics` **and** shares its name with one of `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Flanes\u002F*.md`\n   inherits every section it omits, so report which sections it inherits instead. The exemption\n   belongs to the declaration, not the heading: confirm the section either adopts the bundled lane's\n   declaration by reference (the shape `apply` writes, `Merge semantics: per the bundled lane's\n   declaration`) or states a disposition for every required section the lane omits. An empty,\n   unrelated, or silent-on-an-omitted-section declaration is FAIL (malformed merge declaration;\n   remediation: adopt the bundled declaration by reference or state the missing dispositions). FAIL\n   too when the lane overrides a section the bundled lane keys at `###` granularity\n   (`shell-tooling`'s `Verification commands` and `Preferred research sources`) without keying its\n   own entries under those `###` language headings, since unkeyed entries name no language to\n   replace. Framing prose above the first `###` is fine.\n3. **No unreplaced placeholders.** A leftover template `\u003Cplaceholder>` is a broken scope glob or\n   watch-for pattern: FAIL, naming the file and the token.\n4. **Tracked, not ignored.** Per lane file, run both halves of the tracked-file pair:\n   `git check-ignore -v \u003Cfile>` (non-empty means a `.gitignore` pattern excludes the lane: FAIL with\n   the pattern, since a directory can be tracked while a pattern excludes one `.md` inside it) AND\n   `git ls-files --error-unmatch \u003Cfile>` (non-zero means un-ignored but untracked: report \"commit it\n   to share with the team\", downgraded to INFO only when the user confirms a deliberately private,\n   uncommitted lane).\n5. **Bundled lanes and templates.** INFO: list them as the scaffold sources `apply` can use.\n6. **HARD-exclusion overrides.** Absent is the normal state: INFO naming the file and what it does.\n   Present: check it against section 4 of the exclusions reference: an `## Overrides` heading with\n   one fenced block, one root-relative glob per line. FAIL an absolute path or an entry containing\n   `..`, naming the line. FAIL a glob matching the overrides file itself or the `.claude\u002Ftidy-lanes\u002F`\n   definitions beside it: the file cannot lift its own protection. FAIL a glob that also matches a\n   path this repo's `CLAUDE.md` \u002F `.claude\u002Frules` declare protected, naming both declarations: the\n   protection wins and the override is dead text. Run both halves of the tracked-file pair on it as\n   for a lane file (`git check-ignore -v` reports no match, `git ls-files --error-unmatch` exits 0),\n   since it is a team statement that counts only when committed. Report the globs it lifts.\n7. **`hard_exclusions` posture.** Report the stored `userConfig` value. `enforce` (default) is PASS.\n   `advisory` is INFO, not a FAIL, a deliberate operator posture, and the report line states what it\n   does: every GLOBAL HARD **path** entry is reported instead of blocking, in every run this operator\n   makes. If the value changed this session, say the\n   running session's behavior is not yet established: the stored value is current, the session lags.\n\n## `apply` (idempotent)\n\nRun `check`, then resolve each lane by the convention ladder: config present → use it; absent →\ninfer from the repo and persist; cannot infer → ask and offer to persist; else a safe default (skip\nthat lane, no empty file). Proceed non-interactively wherever the invocation and the repo make the\nanswer unambiguous; ask only where a lane's scope genuinely needs the user's call.\n\n1. **Read existing lanes first.** If any exist, summarize each (name, scope globs, watch-for count)\n   and propose changes against that baseline. **Never overwrite an existing consumer lane without\n   explicit confirmation in this conversation.**\n2. **Explore the repo to draft candidate lanes** before asking anything. Map the four template\n   patterns against what actually exists, reading real directory names and extensions and assuming\n   no stack, and skip any pattern the repo has no surface for:\n   - **apps** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fapps-lane.template.md`): user-facing\n     web\u002FAPI\u002FCLI app roots and their sibling test projects.\n   - **dependency-root** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fdependency-root-lane.template.md`):\n     shared, domain, or core library roots that downstream code depends on.\n   - **host-wiring** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fhost-wiring-lane.template.md`):\n     composition roots, DI wiring, logging, registration, service defaults.\n   - **polyglot-services** (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002Fpolyglot-services-lane.template.md`):\n     non-primary-language services, MCP servers, sidecars.\n   - **bundled-lane override**: a project override of `shell-tooling` or `docs-prose` only when the\n     repo's tooling or doc directories diverge from the bundled scope globs.\n   Under `apply \u003Clane>`, scope this to that lane.\n3. **Interview, one lane at a time**, recommendation first and the highest-blast-radius lane\n   first. Present each candidate with its inferred globs and source template; let the user accept,\n   edit the globs, or drop it. Offer a custom lane last (\"any other glob-scoped slice this repo\n   should tidy on its own rotation?\").\n4. **Fill each accepted lane from real repo values.** Read its source in full, then replace every\n   `\u003Cplaceholder>` (templates) or bundled default (overrides):\n   - **Template-pattern lanes** start from the exact template file presented in step 2\n     (`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002F\u003Cpattern>-lane.template.md`).\n   - **Bundled-lane overrides** have no template: read `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Flanes\u002F\u003Clane>.md`\n     and write **only** the sections this repo diverges on (usually `## Scope`, sometimes extra\n     exclusions) plus a `## Merge semantics` section adopting the bundled lane's declaration. Where\n     the bundled lane keys a section at `###` granularity, key the override the same way.\n   - **Custom lanes** start from the closest template, or, when none fits, a new file with the same\n     six sections. Never emit a lane missing a section.\n   Fill scope globs from real paths, watch-for patterns tuned to the stack, lane-specific exclusions\n   for this repo's unverifiable surfaces, verification commands from the project's own CLAUDE.md,\n   rules, or CI config (never invented), the Conventional Commits type, and preferred research\n   sources. Leave no `\u003Cplaceholder>` behind.\n5. **Write the lane files** the user confirmed at `.claude\u002Ftidy-lanes\u002F\u003Clane>.md`; no empty\n   scaffolds.\n6. **Verify after remediation.** Re-run the `check` probes on each written file: required sections,\n   no leftover placeholder, and both halves of the tracked-file pair. A `git check-ignore -v` match\n   means a `.gitignore` pattern excludes the lane: surface it and offer to fix `.gitignore` before\n   reporting success. A non-zero `git ls-files --error-unmatch` is the expected state right after a\n   fresh write: report \"written but untracked: commit it to share with the team\", never success,\n   since these lanes are team-shared and reach the team only once committed. tidy resolves a lane\n   only from `.claude\u002Ftidy-lanes\u002F\u003Clane>.md` (then the bundled lane of that name), with no\n   user-global layer or `*.local.*` personal override (a declared deviation from the config-cascade contract). Never\n   point a developer at a `*.local.*` variant tidy would not load; a private lane uses a lane name\n   the team does not track, kept uncommitted (never add it to the index).\n7. **Offer the overrides file only when the repo asked for one**: the conversation named a path the\n   plugin keeps dropping, or `check` reported a malformed existing file. Absent is correct for almost\n   every repository, and an empty overrides file is the empty scaffold step 5 forbids. Write\n   `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fcode-tidying\u002Fexclusion-overrides.md` in the section 4 shape (an\n   `## Overrides` heading, one fenced block, one root-relative glob per line, `#` comments) with only\n   globs the user named, preserving any prose already in the file. Re-run the step 6 probes on it,\n   report it as written but untracked until committed, and state plainly what it loosens.\n\nRe-running `apply` after everything passes changes nothing and reports \"already configured\".\n\n## Personal configuration (`userConfig`)\n\nNot `apply` surface: Claude Code owns the storage, and this contract forbids setup to write\n`pluginConfigs`, so `check` reports the observed value and routes the change. Reconfigure through\nClaude Code's native flow, interactively with `\u002Fplugin configure code-tidying@\u003Cmarketplace>` or by\na 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).\nRead both sections and print what they give, the fallback route, its behavior on an\nalready-installed plugin and the scope to pass included, rather than only naming them, and\nleave out the verified-version record.\nNever uninstall to reconfigure; that section links what an uninstall deletes. This skill never\nwrites user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\nsame-session `check` can still show the old value, and report the observed effective value, never\nan unobserved change. `hard_exclusions` takes `enforce` (default, every GLOBAL HARD path entry\nblocks) or `advisory` (every one is reported and none blocks); any other value is read as\n`enforce`. The full option table is in the plugin README.\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\n## Output\n\nTracked `.claude\u002Ftidy-lanes\u002F\u003Clane>.md` file(s) in the consuming repo, plus a one-paragraph summary\nof which lanes were written, the source of each (template or bundled lane), and how to re-run this\nsetup to add or retune lanes. When an overrides file was written or already exists, the summary\nnames it and the globs it lifts.\n\n## Boundaries\n\n- Never runs a tidy sweep (`\u002Fcode-tidying:tidy`); `check` only inspects config.\n- Never writes the plugin cache, Claude Code user settings, `pluginConfigs`, or machine-local\n  state: lane configuration lives in the consumer's tracked `.claude\u002Ftidy-lanes\u002F`, never in the\n  plugin directory or a plugin data directory.\n- Ships no template copies: lanes scaffold from `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ftidy\u002Ftemplates\u002F`, so\n  they cannot drift from the source.\n\n## Gotchas\n\n- **Do not uninstall to reconfigure.** The plugin-reconfiguration convention's\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries)\n  links what an uninstall deletes, and\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  covers what an install rerun does to stored options.\n- **A copied bundled section is frozen** at its copy-time value, while an omitted one keeps\n  inheriting bundled improvements. Write only the sections that diverge.\n- **Gitignoring a path the team already tracks does not make it personal**: indexed files remain\n  visible to Git regardless of `.gitignore`.\n",{"description":7,"argument-hint":24,"user-invocable":25,"disable-model-invocation":25},"[check|apply] [\u003Clane>]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fcode-tidying\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\u002Fcode-tidying\u002Fskills\u002Fsetup\u002FSKILL.md",[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"evals\u002Fevals.json","REFERENCE","参考文档",2410,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcode-tidying\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",[],[]]