[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MW7V8DYYW6AZCMA3Z0XCB":3,"skill-same:01M77MW7V8DYYW6AZCMA3Z0XCB":51},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M77MW7V8DYYW6AZCMA3Z0XCB","lint",null,"Lint and format checks across changed ecosystems without a full build, honoring each tool's config-file opt-in; --fix formats only, --code-fix applies semantic lint autofixes behind a confirmation gate. Use when: 'lint this', 'run the linter', 'format check', 'fix the formatting', 'is this formatted right', 'run prettier\u002Fruff\u002Feslint', or for quick lint\u002Fformat feedback during development. Build and test: \u002Ftoolchain:check.","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\u002Ftoolchain\u002Fskills\u002Flint\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Lint and format checks across changed ecosystems without a full build, honoring each tool's config-file opt-in; --fix formats only, --code-fix applies semantic lint autofixes behind a confirmation gate. Use when: 'lint this', 'run the linter', 'format check', 'fix the formatting', 'is this formatted right', 'run prettier\u002Fruff\u002Feslint', or for quick lint\u002Fformat feedback during development. Build and test: \u002Ftoolchain:check.\"\nuser-invocable: true\ndisable-model-invocation: false\nargument-hint: \"[ecosystem] [--fix|--code-fix] [--yes] [--dry-run] [--all-files]\"\nmetadata:\n  workflow-stage: verify\n  summary: Polyglot lint and format checks without a full build\n---\n\n**Arguments.** `[ecosystem] [--fix|--code-fix] [--yes] [--dry-run] [--all-files]`. e.g., \u002Ftoolchain:lint, \u002Ftoolchain:lint dotnet, \u002Ftoolchain:lint --fix, \u002Ftoolchain:lint --code-fix --yes, \u002Ftoolchain:lint all\n\n## Repository context. Gather first\n\nCollect these with **individual** Bash calls, one command per call, never combined into a single\ninvocation:\n\n- Working tree status (empty = clean), `git status --porcelain | head -20`\n- Current branch, `git branch --show-current`\n\nThe pipe is the bound and belongs in the command. A read-time cap (\"read only the first 20 entries\")\ncomes too late for whatever the command has already returned inline. What a result returns inline,\nand when it arrives as a saved file instead, is [Tools reference § Output\nlimits](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#output-limits).\n\nTreat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as\nseparate body Bash calls rather than pre-compute lines ([gather-block convention](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fconventions\u002Fgather-block\u002FREADME.md#the-pre-compute-block-runs-as-one-shell-invocation),\n\"The pre-compute block runs as one shell invocation\").\n\n## Purpose\n\nRun lint and format checks across affected ecosystems in one command. Fills the gap between \"no check\" and `\u002Fverification:confirm` (build+test+lint):\n\n| Skill | What it runs | Speed |\n|-------|-------------|-------|\n| `\u002Ftoolchain:lint` | Lint + format only | Fast (~5-15s) |\n| `\u002Ftoolchain:check` | Build + test + lint | Medium (~30-60s) |\n| `\u002Fverification:confirm` | Build + test + lint + outcome verification | Medium+ |\n\nUse `\u002Ftoolchain:lint` for quick feedback during development. Use `\u002Fverification:confirm` before committing.\n\n**The command surface is resolved, not hardcoded.** `\u002Ftoolchain:lint` resolves each ecosystem's `check-cmd`\u002F`fix-cmd`\u002F`code-fix-cmd` through the shared four-rung ladder in [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md). Shared with `\u002Ftoolchain:check`: the consuming repo's tracked `.claude\u002Fecosystems\u002F\u003Cecosystem>.yaml` is authoritative when present; the plugin's bundled portable defaults at `${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fecosystems\u002F` are the rung-4 fallback. The consumer's file always wins.\n\n**Two mutators, two gates.** Format-only and code-changing autofixes are separate keys and separate flags. Bare `--fix` must never run semantic lint autofixes (ruff `check --fix`, golangci-lint `--fix`, biome `check --write`, …).\n\n## Arguments\n\n`$ARGUMENTS`, optional ecosystem filter and\u002For mode flags.\n\n**Ecosystem filters** (if omitted, auto-detect from changed files):\n\n`\u002Ftoolchain:lint` covers `dotnet`, `python`, `typescript`, `bash`, `powershell`, `markdown`, `go`, `yaml`, and `cross-cutting` (each resolved per the ladder); any with matching files is exposed as a filter. Aliases: `py` → `python`; `ts`\u002F`node` → `typescript`; `shell` → `bash`; `ps`\u002F`pwsh` → `powershell`; `md` → `markdown`; `golang` → `go`; `xc`\u002F`text` → `cross-cutting`. Literal `all` runs every applicable ecosystem.\n\n**Mode flags:**\n\n| Flag | Effect |\n|------|--------|\n| (default) | Check mode. Report violations, no file modifications |\n| `--fix` or `fix` | **Format-only** fix mode. Run each ecosystem's non-null `fix-cmd` (whitespace \u002F import layout \u002F style). Does **not** run `code-fix-cmd`. |\n| `--code-fix` | **Code-changing** fix mode. Run each ecosystem's non-null `code-fix-cmd` behind the [confirmation gate](#code-fix-confirmation-gate). Mutually exclusive with `--fix` in one invocation; if both appear, prefer `--code-fix` and note that `--fix` was ignored. |\n| `--yes` \u002F `-y` | Skip the interactive confirmation prompt for `--code-fix`. Required for non-interactive \u002F headless `--code-fix` applies. Inert for check mode and for `--fix`. |\n| `--dry-run` | With `--code-fix`: emit the plan (commands + scoped files) and **stop**. Mutate nothing. Implies the plan half of the confirmation gate. |\n| `--all-files` | With `--code-fix`: allow applying when the scoped file count exceeds the [file-cap](#code-fix-scope-fence) (default 40). Without it, over-cap runs stop after the plan. |\n\n**Combinable:** `\u002Ftoolchain:lint dotnet --fix`, `\u002Ftoolchain:lint --fix`, `\u002Ftoolchain:lint --code-fix`, `\u002Ftoolchain:lint --code-fix --yes`, `\u002Ftoolchain:lint all`, `\u002Ftoolchain:lint md`\n\n## Workflow\n\n### 0. Resolve repo root and parse arguments\n\n```bash\nREPO_ROOT=$(git rev-parse --show-toplevel)\n```\n\nParse `$ARGUMENTS` for:\n\n- **Ecosystem filter**: extract any ecosystem name. Default: auto-detect\n- **Fix mode**: detect `--fix` \u002F `fix` (format-only) vs `--code-fix` (code-changing). Default: check mode\n- **Consent \u002F scope flags**: `--yes` \u002F `-y`, `--dry-run`, `--all-files` (only meaningful with `--code-fix`)\n\n### 1. Detect ecosystems\n\nIf an ecosystem filter was provided, use it. If `all`, run every applicable ecosystem from the config. Otherwise, classify changed files from `git status --porcelain` against each ecosystem's `globs` list; when the working tree is clean, fall back to the branch diff so checkpoint-committed work still gets classified. Resolve the default branch by **detection, not assumption**, never a hardcoded `main`\u002F`master`, and assign it before use:\n\n```bash\nREMOTE=\"\" DEFAULT_BRANCH=\"\"\nTRACKED=$(git config \"branch.$(git branch --show-current | tr -d '\\r').remote\" 2>\u002Fdev\u002Fnull | tr -d '\\r')\n[[ \"$TRACKED\" == \".\" ]] && TRACKED=\"\"\nCANDIDATES=$( { [[ -n \"$TRACKED\" ]] && echo \"$TRACKED\"; git remote | grep -qx origin && echo origin; git remote; } | awk 'NF && !seen[\\$0]++' )\nwhile IFS= read -r CANDIDATE; do\n  BRANCH=$(git symbolic-ref --short \"refs\u002Fremotes\u002F$CANDIDATE\u002FHEAD\" 2>\u002Fdev\u002Fnull)\n  BRANCH=${BRANCH#\"$CANDIDATE\u002F\"}\n  BRANCH=${BRANCH:-$(git ls-remote --symref --end-of-options \"$CANDIDATE\" HEAD 2>\u002Fdev\u002Fnull | awk '\u002F^ref:\u002F{sub(\u002Frefs\\\u002Fheads\\\u002F\u002F,\"\",\\$2); print \\$2; exit}')}\n  if [[ -n \"$BRANCH\" ]] && git rev-parse --verify --quiet \"refs\u002Fremotes\u002F$CANDIDATE\u002F$BRANCH\" >\u002Fdev\u002Fnull; then\n    REMOTE=$CANDIDATE DEFAULT_BRANCH=$BRANCH\n    break\n  fi\ndone \u003C\u003C\u003C \"$CANDIDATES\"\nif [[ -n \"$REMOTE\" ]]; then\n  git diff --name-only \"$(git merge-base \"refs\u002Fremotes\u002F$REMOTE\u002F$DEFAULT_BRANCH\" HEAD)..HEAD\"\nelse\n  echo \"branch diff unavailable (could not detect default branch)\"\nfi\n```\n\nThe loop probes candidate remotes in priority order, the remote the current branch tracks (`branch.\u003Cname>.remote`) first, then `origin` if present, then the rest, and selects the first one whose default branch resolves to a locally available tracking ref, never a hardcoded remote name. This handles an unpushed feature branch (no tracking remote) in a repo cloned with a different remote name (e.g. `git clone -o vendor`), and skips a remote that was added but never fetched (its default branch has no local `refs\u002Fremotes\u002F\u003Cremote>\u002F\u003Cbranch>` to diff against) in favor of a later remote that does, the candidate is accepted only when `git rev-parse` confirms the tracking ref exists locally. Each candidate's default branch comes from that remote's own `HEAD` (not the current branch's upstream, which on a pushed feature branch points at the feature branch itself and would make `merge-base` equal `HEAD`, yielding an empty diff), falling back to a `git ls-remote --symref` query when the local `HEAD` symref is absent. `merge-base` is taken against the fully-qualified remote-tracking ref `refs\u002Fremotes\u002F$REMOTE\u002F$DEFAULT_BRANCH`, which resolves without a local branch of that name and, like the `rev-parse` verify. Cannot be misparsed as an option when the remote name begins with a dash (`git clone --origin=-x`); the `git ls-remote` probe terminates option parsing with `--end-of-options` for the same reason. If no candidate yields a locally available default branch, skip the branch-diff path rather than guessing. A caller passing an explicit changed-file list (e.g. `\u002Fverification:confirm`) overrides both detection paths. Cross-cutting runs alongside detected ecosystems when ANY text file changed AND the repo opts into its tools.\n\nAuto-detection algorithm:\n\n1. Resolve each covered ecosystem's config per [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md) (consumer `.claude\u002Fecosystems\u002F\u003Cecosystem>.yaml` when present, else the bundled default; a malformed consumer file warns and degrades to inference, never a hard stop). Skip any ecosystem whose resolved `enabled` is `false` (a consumer opt-out). Excluded even under `all`\n2. For each ecosystem, match its `globs` against the changed-files list\n3. Run every ecosystem with ≥1 glob match whose `opt-in` condition holds, plus cross-cutting when any text file changed. This binary run\u002Fskip treatment applies cleanly when `opt-in` describes a SINGLE condition for the whole `check-cmd` (dotnet, python): unmet → excluded from the run but still reported (see sections 2 and 3 below, `skip (opt-in unmet: ...)`; never silently omitted). When `opt-in` instead describes MULTIPLE independent per-tool conditions bundled into one opaque command string (bash's shellcheck-always\u002Fshfmt-conditional split; cross-cutting's per-tool config-file list), this rule does not apply. `check-cmd`\u002F`fix-cmd`\u002F`code-fix-cmd` is a single opaque string with no way to run one sub-tool's portion without the other, so run it whole and report its real output. The known atomicity limitation this leaves open is in `\u002Ftoolchain:check`'s Gotchas.\n4. A changed file is unclaimed when no resolved ecosystem's `globs` match it, cross-cutting's `**` aside: that glob is never a claim by itself, whether cross-cutting runs or is disabled. A match by any other ecosystem counts, even one that is disabled or skipped for an unmet opt-in: that row already reports the consumer's choice. Collect each unclaimed text file for the report's two fixed lines (section 3). Under `all` the changed files still come from the detection paths above; an ecosystem filter skips this step. A deleted file is not named. A binary file stays quiet. Decide binary with `git ls-files --eol -c -o -- \u003Cfile>`: the file is binary when Git identifies its working-tree content as not text ([`--eol`](https:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-ls-files#Documentation\u002Fgit-ls-files.txt---eol)). A path with no working-tree content is deleted or not a regular file, never binary. One command serves a working-tree change, the branch diff and a caller-supplied changed-file list.\n\nIf neither detection path yields changes and no filter specified: report \"No changes found (working tree clean, no branch diff vs the default branch). Use `\u002Ftoolchain:lint all` to check the full repo, or `\u002Ftoolchain:lint \u003Cecosystem>` for a specific filter.\" and stop. If files changed but no ecosystem runs, print the unclaimed-file line (when it names any file) instead of the table, and stop.\n\n### 2. Run linters per ecosystem\n\n**Command selection by mode:**\n\n| Mode | Command key | Gate |\n|------|-------------|------|\n| check (default) | `check-cmd` | none (read-only) |\n| `--fix` | `fix-cmd` | none beyond the flag (format-only by contract) |\n| `--code-fix` | `code-fix-cmd` | [confirmation gate](#code-fix-confirmation-gate) + [scope fence](#code-fix-scope-fence) |\n\nHonor each ecosystem's `opt-in`: for a single-condition ecosystem (dotnet, python), an unmet condition skips the whole ecosystem, reporting `skip (opt-in unmet: \u003Ccondition, one short phrase>)` visibly (never a silent omission) in every column that ecosystem's row has. This skip counts toward the table's total ecosystem count but never toward the FAIL count, the same precedent as a missing-tool skip. For a multi-tool ecosystem (bash, cross-cutting) whose `check-cmd` bundles multiple sub-tools into one opaque string, this binary treatment doesn't apply. Run and report `check-cmd`\u002F`fix-cmd`\u002F`code-fix-cmd` whole; see `\u002Ftoolchain:check`'s Gotchas for the known atomicity limitation.\n\nFor ecosystem-specific gotchas, reference `\u002Ftoolchain:check`. Its `context\u002F\u003Cecosystem>.md` files own the per-ecosystem prose detail.\n\n**`\u003Cfiles>` substitution:** expand to the ecosystem-scoped changed-file list (paths relative to the execution root). Prefer this scoped list over whole-tree `.` \u002F `.\u002F...` whenever the command string contains `\u003Cfiles>`. Under `\u002Ftoolchain:lint all` with an empty detection set, expand to the matching files under each project root (or the repo root) rather than inventing a silent whole-tree rewrite for code-fix, and still apply the [file-cap](#code-fix-scope-fence) to that expanded set.\n\n**Go `*.go` filter for format\u002Fcode-fix:** ecosystem `globs` include `go.mod` \u002F `go.sum`, but `gofmt -w` and `golangci-lint run --fix` reject non-source inputs (`gofmt` exits 2 on `go.mod`; `golangci-lint` requires named files in one directory). When substituting `\u003Cfiles>` into Go `format-cmd` \u002F `code-fix-cmd`, drop every non-`.go` path first. For `golangci-lint run --fix`, further partition the remaining `.go` paths by parent directory and invoke once per directory (never pass a multi-directory file list in one process). If filtering leaves zero `.go` files, skip that Go format\u002Fcode-fix command and report the skip rather than invoking the tool on module metadata alone.\n\nPer-project walking (ecosystems with `project-discovery`):\n\n- python: walk each `pyproject.toml` directory and run check\u002Ffix from there\n- typescript: walk each `package.json` directory and run check\u002Ffix from there\n- go: walk each `go.mod` directory and run check\u002Ffix from there (a root `.\u002F...` invocation stops at a nested module boundary. See `\u002Ftoolchain:check`'s per-ecosystem context file)\n\nTool presence: verify on `PATH` before each ecosystem the tool its commands are invoked through (python's `uv`, not the `ruff` and `pyright` behind it); report `skip (tool missing: \u003Ctool>)` with `install-hint` when missing, never `FAIL`. The probe is per ecosystem, not per sub-tool: a sub-tool bundled inside an opaque compound `check-cmd` is not probed, so its absence surfaces at execution time as a real non-zero exit and the ecosystem reports `FAIL`, not `skip`. Same rule `\u002Ftoolchain:check` states, so both skills classify an identical environment identically.\n\nTool pins (`tool-pin` sub-key, e.g. zizmor): when the resolved config pins a tool version, warn if the installed version drifts from the pin (a pin typically mirrors the consumer's own CI pin). No pin, no check.\n\nCross-cutting: resolve `$EC_BIN` for editorconfig-checker binary-name variants before substituting into the check command:\n\n```bash\nEC_BIN=\"\"\nif command -v ec >\u002Fdev\u002Fnull 2>&1; then EC_BIN=ec\nelif command -v editorconfig-checker >\u002Fdev\u002Fnull 2>&1; then EC_BIN=editorconfig-checker\nelif command -v ec-windows-amd64 >\u002Fdev\u002Fnull 2>&1; then EC_BIN=ec-windows-amd64\nfi\n```\n\n### Code-fix confirmation gate\n\n`--code-fix` MUTATES semantics, not just whitespace, the only `\u002Ftoolchain:lint` path that does. ALWAYS emit the plan first:\n\n```text\nCode-fix plan — ecosystems: \u003Clist> (\u003CN> files scoped)\n- python: uv run ruff check \u003Cfiles> --fix --no-unsafe-fixes --unfixable F401  (\u003Cn> files)\n- go: golangci-lint run --fix \u003Cfiles>  (\u003Cm> files)\n- typescript: (no code-fix-cmd) — skip\n```\n\nThen gate on session context and flags. Every side-effect path is explicitly gated, the gate never self-downgrades unattended:\n\n| Session | Flags | Gate |\n|---|---|---|\n| Interactive | `--code-fix` only | Confirm with the user before applying. Honor scope narrowing (\"only python\"). |\n| Interactive | `--code-fix --yes` | Skip the confirmation prompt and apply (still honor the file-cap unless `--all-files`). |\n| Interactive or any | `--code-fix --dry-run` | Emit the plan and **STOP**. Mutate nothing. |\n| Non-interactive (`CLAUDE_CODE_REMOTE`, `claude -p`, an autonomous loop) | `--code-fix` without `--yes` | **STOP after the plan. Mutate nothing.** The plan IS the report. Re-run with `--yes` to apply. |\n| Non-interactive | `--code-fix --yes` | Apply (still honor the file-cap unless `--all-files`). |\n\n`--code-fix` opts INTO code-changing fix mode; `--yes` is the separate, explicit consent to mutate a tree with no human watching. A non-interactive session with no `--yes` is never consent. Bare `--fix` does not enter this gate.\n\n### Code-fix scope fence\n\nBefore applying `--code-fix`:\n\n1. **Changed-files allowlist.** Scope each `code-fix-cmd` to the ecosystem's changed-file list via `\u003Cfiles>` (or the expanded `all` set). Do not silently retarget a whole-tree `.` \u002F `.\u002F...` when a non-empty scoped list exists.\n2. **File cap (default 40).** Sum the scoped files across ecosystems that will actually run a non-null `code-fix-cmd`. If the sum exceeds 40 and `--all-files` is absent, emit the plan, report `file-cap exceeded (\u003Ccount> > 40; pass --all-files to override)`, and **STOP**. Mutate nothing.\n3. **No LOC auto-budget.** Do not invent a line-count ceiling; the confirmation plan (file list + commands) is the pre-apply review surface. After apply, surface `git diff --stat` so the operator can see blast radius.\n\n### 3. Present results\n\n```text\n## Lint Results\n\n| Ecosystem  | Lint     | Format   | Status |\n|------------|----------|----------|--------|\n| dotnet     | pass     | pass     | PASS   |\n| python     | FAIL     | pass     | FAIL   |\n| bash       | pass     | pass     | PASS   |\n| markdown   | pass     | —        | PASS   |\n\nOverall: FAIL (1 of 4 ecosystems failed)\n```\n\nUse `pass`, `FAIL`, a named skip, or `—` (not applicable). Every skip names its reason in `\u002Ftoolchain:check`'s named classes, and its class decides whether it blocks a \"done\" claim exactly as `\u002Ftoolchain:check`'s report table (its section 3) classifies it: `skip (tool missing: \u003Ctool>)` is an environment skip and blocks \"done\"; `skip (opt-in unmet: \u003Ccondition>)` is the consumer's opt-in and does not. Lint installs nothing and runs no CI-parity gates, so it never emits the `dependencies missing` or `unsupported` classes.\n\nAn ecosystem's Status and the Overall line read `FAIL` when any cell failed, `INCOMPLETE` when nothing failed but an environment skip remains, and `PASS` only when neither holds. `INCOMPLETE` names each cause with its reason (e.g. `Overall: INCOMPLETE (3 of 4 ecosystems passed; markdown: skip (tool missing: markdownlint-cli2))`), so a caller such as `\u002Fverification:confirm` holds its verdict on a lint-only environment gap. An opt-in-unmet skip or a `—` cell never makes a run `INCOMPLETE`.\n\nSplit lint and format into separate columns where the ecosystem has both (dotnet, python, bash). Use a single \"Lint\" column for ecosystems with only one tool (markdown, yaml, powershell). An opt-in-unmet skip fills every column that ecosystem's row has.\n\nIf `--fix` was used, note which ecosystems were format-fixed vs which have no `fix-cmd`.\n\nIf `--code-fix` was used (and applied), note which ecosystems ran `code-fix-cmd` vs which have none, and show `git diff --stat` for blast radius.\n\nShow failing output below the table. Truncated to key error lines, not the full dump.\n\nBelow the table, name every unclaimed changed text file (section 1, step 4) on one of two fixed lines, printed word for word even when a note elsewhere in the reply says the same thing:\n\n- `No ecosystem linter (cross-cutting text checks only): \u003Cpath>, \u003Cpath>` only when cross-cutting's check command executed in this invocation (its row reads `pass` or `FAIL`), so its checks covered them;\n- `Outside every ecosystem: \u003Cpath>, \u003Cpath>` in every other case, including a cross-cutting row that is a skip.\n\nNeither line changes a Status or the Overall line, and no binary file is on either. Say nothing about a binary file outside every ecosystem: no table row, no bullet, and no note that it is binary, was skipped or was ignored. Tool output the report shows, such as failing lines or `git diff --stat`, stays as printed.\n\n### 4. Fix mode notes\n\n- **`--fix`:** auto-fix capability derives from a non-null `fix-cmd`. Report check-only ecosystems alongside format fixes: \"Fixed formatting in dotnet, python, bash. markdownlint had no remaining auto-fixes.\"\n- **`--code-fix`:** capability derives from a non-null `code-fix-cmd`. Ecosystems with only `fix-cmd` (format-only) are not code-fixed under this flag. Tell the operator to use `--fix` for those. Example: \"Applied code-fix in python, go. typescript has no code-fix-cmd. Use `--fix` for format-only ecosystems (dotnet, bash, …).\"\n\n**Consumer overrides:** a consumer who still puts code-changing autofixes in `fix-cmd` keeps that behavior under `--fix` (their file wins). Prefer migrating those verbs into `code-fix-cmd` so bare `--fix` stays format-only. Bundled portable defaults already split the two.\n\n### 5. Record the result\n\nAfter a check-mode report, record its Overall line for the tree it ran on, in its own Bash call, with the line exactly as reported inside single quotes (write a `'` in it as `'\\''`):\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Frecord-result.mjs\" --skill lint --dir \"$REPO_ROOT\" --overall '\u003Cthe Overall line>'\n```\n\nThe plugin's Stop hook reads it at turn end the same way it reads `\u002Ftoolchain:check`'s record. Record nothing for `--fix` or `--code-fix`: the fix changes the tree, so the check that would count is the next check-mode run. Skip it too when an ecosystem filter narrowed the run (`all` and a caller's changed-file list do not narrow it), and when the run stopped at \"No changes found\" or with no ecosystem to run. A failed record (exit 2) changes nothing in the report; say it was not recorded.\n\n## Edge cases\n\n- **No git changes but `\u002Ftoolchain:lint all`**: run all applicable ecosystems (useful after rebase or pull)\n- **Missing tools**: report as `skip (tool missing: \u003Ctool>)` with the install hint, not as failure, and never as done: the Overall line reads `INCOMPLETE`. Scoped to the tool the ecosystem's commands are invoked through, not every sub-tool a compound command reaches (an un-probed sub-tool's absence is a real non-zero exit, so `FAIL`; see `\u002Ftoolchain:check`'s Gotchas)\n- **Opt-in unmet**: report as `skip (opt-in unmet: ...)` with the condition, not as failure and not a silent omission (e.g., dotnet with no C#-relevant `.editorconfig`)\n- **Multiple projects in same ecosystem**: run per-project (each `pyproject.toml`, each `package.json`)\n- **File outside any ecosystem**: a text file is named on one of the two unclaimed-file lines; a binary file (images, archives) outside every ecosystem gets no mention in the reply, not even to say it was skipped\n- **CWD drift**: always use absolute paths from `$REPO_ROOT`\n- **`--code-fix` over file-cap without `--all-files`**: plan + stop, never mutate\n- **`--code-fix` in non-interactive session without `--yes`**: plan + stop, never mutate\n- **Both `--fix` and `--code-fix`**: prefer `--code-fix`, note `--fix` ignored\n\n## Relationship to other skills\n\n- **Composes from `\u002Ftoolchain:check`**: `\u002Ftoolchain:check` owns the per-ecosystem prose gotchas. Reference it rather than duplicating\n- **Composed by `\u002Fverification:confirm`** (the separate `verification` plugin, when installed): the lint leg of full verification\n- **After a simplify\u002Fcleanup pass**: run `\u002Ftoolchain:lint` to catch formatting issues the cleanup introduced\n- **Before commit**: `\u002Ftoolchain:lint --fix` is a quick pre-commit **format** cleanup without the overhead of a full build. Use `\u002Ftoolchain:lint --code-fix` (interactive confirm, or `--yes` when headless) only when you intentionally want semantic lint autofixes.\n","**Arguments.** `[ecosystem] [--fix|--code-fix] [--yes] [--dry-run] [--all-files]`. e.g., \u002Ftoolchain:lint, \u002Ftoolchain:lint dotnet, \u002Ftoolchain:lint --fix, \u002Ftoolchain:lint --code-fix --yes, \u002Ftoolchain:lint all\n\n## Repository context. Gather first\n\nCollect these with **individual** Bash calls, one command per call, never combined into a single\ninvocation:\n\n- Working tree status (empty = clean), `git status --porcelain | head -20`\n- Current branch, `git branch --show-current`\n\nThe pipe is the bound and belongs in the command. A read-time cap (\"read only the first 20 entries\")\ncomes too late for whatever the command has already returned inline. What a result returns inline,\nand when it arrives as a saved file instead, is [Tools reference § Output\nlimits](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#output-limits).\n\nTreat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as\nseparate body Bash calls rather than pre-compute lines ([gather-block convention](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fconventions\u002Fgather-block\u002FREADME.md#the-pre-compute-block-runs-as-one-shell-invocation),\n\"The pre-compute block runs as one shell invocation\").\n\n## Purpose\n\nRun lint and format checks across affected ecosystems in one command. Fills the gap between \"no check\" and `\u002Fverification:confirm` (build+test+lint):\n\n| Skill | What it runs | Speed |\n|-------|-------------|-------|\n| `\u002Ftoolchain:lint` | Lint + format only | Fast (~5-15s) |\n| `\u002Ftoolchain:check` | Build + test + lint | Medium (~30-60s) |\n| `\u002Fverification:confirm` | Build + test + lint + outcome verification | Medium+ |\n\nUse `\u002Ftoolchain:lint` for quick feedback during development. Use `\u002Fverification:confirm` before committing.\n\n**The command surface is resolved, not hardcoded.** `\u002Ftoolchain:lint` resolves each ecosystem's `check-cmd`\u002F`fix-cmd`\u002F`code-fix-cmd` through the shared four-rung ladder in [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md). Shared with `\u002Ftoolchain:check`: the consuming repo's tracked `.claude\u002Fecosystems\u002F\u003Cecosystem>.yaml` is authoritative when present; the plugin's bundled portable defaults at `${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fecosystems\u002F` are the rung-4 fallback. The consumer's file always wins.\n\n**Two mutators, two gates.** Format-only and code-changing autofixes are separate keys and separate flags. Bare `--fix` must never run semantic lint autofixes (ruff `check --fix`, golangci-lint `--fix`, biome `check --write`, …).\n\n## Arguments\n\n`$ARGUMENTS`, optional ecosystem filter and\u002For mode flags.\n\n**Ecosystem filters** (if omitted, auto-detect from changed files):\n\n`\u002Ftoolchain:lint` covers `dotnet`, `python`, `typescript`, `bash`, `powershell`, `markdown`, `go`, `yaml`, and `cross-cutting` (each resolved per the ladder); any with matching files is exposed as a filter. Aliases: `py` → `python`; `ts`\u002F`node` → `typescript`; `shell` → `bash`; `ps`\u002F`pwsh` → `powershell`; `md` → `markdown`; `golang` → `go`; `xc`\u002F`text` → `cross-cutting`. Literal `all` runs every applicable ecosystem.\n\n**Mode flags:**\n\n| Flag | Effect |\n|------|--------|\n| (default) | Check mode. Report violations, no file modifications |\n| `--fix` or `fix` | **Format-only** fix mode. Run each ecosystem's non-null `fix-cmd` (whitespace \u002F import layout \u002F style). Does **not** run `code-fix-cmd`. |\n| `--code-fix` | **Code-changing** fix mode. Run each ecosystem's non-null `code-fix-cmd` behind the [confirmation gate](#code-fix-confirmation-gate). Mutually exclusive with `--fix` in one invocation; if both appear, prefer `--code-fix` and note that `--fix` was ignored. |\n| `--yes` \u002F `-y` | Skip the interactive confirmation prompt for `--code-fix`. Required for non-interactive \u002F headless `--code-fix` applies. Inert for check mode and for `--fix`. |\n| `--dry-run` | With `--code-fix`: emit the plan (commands + scoped files) and **stop**. Mutate nothing. Implies the plan half of the confirmation gate. |\n| `--all-files` | With `--code-fix`: allow applying when the scoped file count exceeds the [file-cap](#code-fix-scope-fence) (default 40). Without it, over-cap runs stop after the plan. |\n\n**Combinable:** `\u002Ftoolchain:lint dotnet --fix`, `\u002Ftoolchain:lint --fix`, `\u002Ftoolchain:lint --code-fix`, `\u002Ftoolchain:lint --code-fix --yes`, `\u002Ftoolchain:lint all`, `\u002Ftoolchain:lint md`\n\n## Workflow\n\n### 0. Resolve repo root and parse arguments\n\n```bash\nREPO_ROOT=$(git rev-parse --show-toplevel)\n```\n\nParse `$ARGUMENTS` for:\n\n- **Ecosystem filter**: extract any ecosystem name. Default: auto-detect\n- **Fix mode**: detect `--fix` \u002F `fix` (format-only) vs `--code-fix` (code-changing). Default: check mode\n- **Consent \u002F scope flags**: `--yes` \u002F `-y`, `--dry-run`, `--all-files` (only meaningful with `--code-fix`)\n\n### 1. Detect ecosystems\n\nIf an ecosystem filter was provided, use it. If `all`, run every applicable ecosystem from the config. Otherwise, classify changed files from `git status --porcelain` against each ecosystem's `globs` list; when the working tree is clean, fall back to the branch diff so checkpoint-committed work still gets classified. Resolve the default branch by **detection, not assumption**, never a hardcoded `main`\u002F`master`, and assign it before use:\n\n```bash\nREMOTE=\"\" DEFAULT_BRANCH=\"\"\nTRACKED=$(git config \"branch.$(git branch --show-current | tr -d '\\r').remote\" 2>\u002Fdev\u002Fnull | tr -d '\\r')\n[[ \"$TRACKED\" == \".\" ]] && TRACKED=\"\"\nCANDIDATES=$( { [[ -n \"$TRACKED\" ]] && echo \"$TRACKED\"; git remote | grep -qx origin && echo origin; git remote; } | awk 'NF && !seen[\\$0]++' )\nwhile IFS= read -r CANDIDATE; do\n  BRANCH=$(git symbolic-ref --short \"refs\u002Fremotes\u002F$CANDIDATE\u002FHEAD\" 2>\u002Fdev\u002Fnull)\n  BRANCH=${BRANCH#\"$CANDIDATE\u002F\"}\n  BRANCH=${BRANCH:-$(git ls-remote --symref --end-of-options \"$CANDIDATE\" HEAD 2>\u002Fdev\u002Fnull | awk '\u002F^ref:\u002F{sub(\u002Frefs\\\u002Fheads\\\u002F\u002F,\"\",\\$2); print \\$2; exit}')}\n  if [[ -n \"$BRANCH\" ]] && git rev-parse --verify --quiet \"refs\u002Fremotes\u002F$CANDIDATE\u002F$BRANCH\" >\u002Fdev\u002Fnull; then\n    REMOTE=$CANDIDATE DEFAULT_BRANCH=$BRANCH\n    break\n  fi\ndone \u003C\u003C\u003C \"$CANDIDATES\"\nif [[ -n \"$REMOTE\" ]]; then\n  git diff --name-only \"$(git merge-base \"refs\u002Fremotes\u002F$REMOTE\u002F$DEFAULT_BRANCH\" HEAD)..HEAD\"\nelse\n  echo \"branch diff unavailable (could not detect default branch)\"\nfi\n```\n\nThe loop probes candidate remotes in priority order, the remote the current branch tracks (`branch.\u003Cname>.remote`) first, then `origin` if present, then the rest, and selects the first one whose default branch resolves to a locally available tracking ref, never a hardcoded remote name. This handles an unpushed feature branch (no tracking remote) in a repo cloned with a different remote name (e.g. `git clone -o vendor`), and skips a remote that was added but never fetched (its default branch has no local `refs\u002Fremotes\u002F\u003Cremote>\u002F\u003Cbranch>` to diff against) in favor of a later remote that does, the candidate is accepted only when `git rev-parse` confirms the tracking ref exists locally. Each candidate's default branch comes from that remote's own `HEAD` (not the current branch's upstream, which on a pushed feature branch points at the feature branch itself and would make `merge-base` equal `HEAD`, yielding an empty diff), falling back to a `git ls-remote --symref` query when the local `HEAD` symref is absent. `merge-base` is taken against the fully-qualified remote-tracking ref `refs\u002Fremotes\u002F$REMOTE\u002F$DEFAULT_BRANCH`, which resolves without a local branch of that name and, like the `rev-parse` verify. Cannot be misparsed as an option when the remote name begins with a dash (`git clone --origin=-x`); the `git ls-remote` probe terminates option parsing with `--end-of-options` for the same reason. If no candidate yields a locally available default branch, skip the branch-diff path rather than guessing. A caller passing an explicit changed-file list (e.g. `\u002Fverification:confirm`) overrides both detection paths. Cross-cutting runs alongside detected ecosystems when ANY text file changed AND the repo opts into its tools.\n\nAuto-detection algorithm:\n\n1. Resolve each covered ecosystem's config per [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md`](${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fresolution-ladder.md) (consumer `.claude\u002Fecosystems\u002F\u003Cecosystem>.yaml` when present, else the bundled default; a malformed consumer file warns and degrades to inference, never a hard stop). Skip any ecosystem whose resolved `enabled` is `false` (a consumer opt-out). Excluded even under `all`\n2. For each ecosystem, match its `globs` against the changed-files list\n3. Run every ecosystem with ≥1 glob match whose `opt-in` condition holds, plus cross-cutting when any text file changed. This binary run\u002Fskip treatment applies cleanly when `opt-in` describes a SINGLE condition for the whole `check-cmd` (dotnet, python): unmet → excluded from the run but still reported (see sections 2 and 3 below, `skip (opt-in unmet: ...)`; never silently omitted). When `opt-in` instead describes MULTIPLE independent per-tool conditions bundled into one opaque command string (bash's shellcheck-always\u002Fshfmt-conditional split; cross-cutting's per-tool config-file list), this rule does not apply. `check-cmd`\u002F`fix-cmd`\u002F`code-fix-cmd` is a single opaque string with no way to run one sub-tool's portion without the other, so run it whole and report its real output. The known atomicity limitation this leaves open is in `\u002Ftoolchain:check`'s Gotchas.\n4. A changed file is unclaimed when no resolved ecosystem's `globs` match it, cross-cutting's `**` aside: that glob is never a claim by itself, whether cross-cutting runs or is disabled. A match by any other ecosystem counts, even one that is disabled or skipped for an unmet opt-in: that row already reports the consumer's choice. Collect each unclaimed text file for the report's two fixed lines (section 3). Under `all` the changed files still come from the detection paths above; an ecosystem filter skips this step. A deleted file is not named. A binary file stays quiet. Decide binary with `git ls-files --eol -c -o -- \u003Cfile>`: the file is binary when Git identifies its working-tree content as not text ([`--eol`](https:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-ls-files#Documentation\u002Fgit-ls-files.txt---eol)). A path with no working-tree content is deleted or not a regular file, never binary. One command serves a working-tree change, the branch diff and a caller-supplied changed-file list.\n\nIf neither detection path yields changes and no filter specified: report \"No changes found (working tree clean, no branch diff vs the default branch). Use `\u002Ftoolchain:lint all` to check the full repo, or `\u002Ftoolchain:lint \u003Cecosystem>` for a specific filter.\" and stop. If files changed but no ecosystem runs, print the unclaimed-file line (when it names any file) instead of the table, and stop.\n\n### 2. Run linters per ecosystem\n\n**Command selection by mode:**\n\n| Mode | Command key | Gate |\n|------|-------------|------|\n| check (default) | `check-cmd` | none (read-only) |\n| `--fix` | `fix-cmd` | none beyond the flag (format-only by contract) |\n| `--code-fix` | `code-fix-cmd` | [confirmation gate](#code-fix-confirmation-gate) + [scope fence](#code-fix-scope-fence) |\n\nHonor each ecosystem's `opt-in`: for a single-condition ecosystem (dotnet, python), an unmet condition skips the whole ecosystem, reporting `skip (opt-in unmet: \u003Ccondition, one short phrase>)` visibly (never a silent omission) in every column that ecosystem's row has. This skip counts toward the table's total ecosystem count but never toward the FAIL count, the same precedent as a missing-tool skip. For a multi-tool ecosystem (bash, cross-cutting) whose `check-cmd` bundles multiple sub-tools into one opaque string, this binary treatment doesn't apply. Run and report `check-cmd`\u002F`fix-cmd`\u002F`code-fix-cmd` whole; see `\u002Ftoolchain:check`'s Gotchas for the known atomicity limitation.\n\nFor ecosystem-specific gotchas, reference `\u002Ftoolchain:check`. Its `context\u002F\u003Cecosystem>.md` files own the per-ecosystem prose detail.\n\n**`\u003Cfiles>` substitution:** expand to the ecosystem-scoped changed-file list (paths relative to the execution root). Prefer this scoped list over whole-tree `.` \u002F `.\u002F...` whenever the command string contains `\u003Cfiles>`. Under `\u002Ftoolchain:lint all` with an empty detection set, expand to the matching files under each project root (or the repo root) rather than inventing a silent whole-tree rewrite for code-fix, and still apply the [file-cap](#code-fix-scope-fence) to that expanded set.\n\n**Go `*.go` filter for format\u002Fcode-fix:** ecosystem `globs` include `go.mod` \u002F `go.sum`, but `gofmt -w` and `golangci-lint run --fix` reject non-source inputs (`gofmt` exits 2 on `go.mod`; `golangci-lint` requires named files in one directory). When substituting `\u003Cfiles>` into Go `format-cmd` \u002F `code-fix-cmd`, drop every non-`.go` path first. For `golangci-lint run --fix`, further partition the remaining `.go` paths by parent directory and invoke once per directory (never pass a multi-directory file list in one process). If filtering leaves zero `.go` files, skip that Go format\u002Fcode-fix command and report the skip rather than invoking the tool on module metadata alone.\n\nPer-project walking (ecosystems with `project-discovery`):\n\n- python: walk each `pyproject.toml` directory and run check\u002Ffix from there\n- typescript: walk each `package.json` directory and run check\u002Ffix from there\n- go: walk each `go.mod` directory and run check\u002Ffix from there (a root `.\u002F...` invocation stops at a nested module boundary. See `\u002Ftoolchain:check`'s per-ecosystem context file)\n\nTool presence: verify on `PATH` before each ecosystem the tool its commands are invoked through (python's `uv`, not the `ruff` and `pyright` behind it); report `skip (tool missing: \u003Ctool>)` with `install-hint` when missing, never `FAIL`. The probe is per ecosystem, not per sub-tool: a sub-tool bundled inside an opaque compound `check-cmd` is not probed, so its absence surfaces at execution time as a real non-zero exit and the ecosystem reports `FAIL`, not `skip`. Same rule `\u002Ftoolchain:check` states, so both skills classify an identical environment identically.\n\nTool pins (`tool-pin` sub-key, e.g. zizmor): when the resolved config pins a tool version, warn if the installed version drifts from the pin (a pin typically mirrors the consumer's own CI pin). No pin, no check.\n\nCross-cutting: resolve `$EC_BIN` for editorconfig-checker binary-name variants before substituting into the check command:\n\n```bash\nEC_BIN=\"\"\nif command -v ec >\u002Fdev\u002Fnull 2>&1; then EC_BIN=ec\nelif command -v editorconfig-checker >\u002Fdev\u002Fnull 2>&1; then EC_BIN=editorconfig-checker\nelif command -v ec-windows-amd64 >\u002Fdev\u002Fnull 2>&1; then EC_BIN=ec-windows-amd64\nfi\n```\n\n### Code-fix confirmation gate\n\n`--code-fix` MUTATES semantics, not just whitespace, the only `\u002Ftoolchain:lint` path that does. ALWAYS emit the plan first:\n\n```text\nCode-fix plan — ecosystems: \u003Clist> (\u003CN> files scoped)\n- python: uv run ruff check \u003Cfiles> --fix --no-unsafe-fixes --unfixable F401  (\u003Cn> files)\n- go: golangci-lint run --fix \u003Cfiles>  (\u003Cm> files)\n- typescript: (no code-fix-cmd) — skip\n```\n\nThen gate on session context and flags. Every side-effect path is explicitly gated, the gate never self-downgrades unattended:\n\n| Session | Flags | Gate |\n|---|---|---|\n| Interactive | `--code-fix` only | Confirm with the user before applying. Honor scope narrowing (\"only python\"). |\n| Interactive | `--code-fix --yes` | Skip the confirmation prompt and apply (still honor the file-cap unless `--all-files`). |\n| Interactive or any | `--code-fix --dry-run` | Emit the plan and **STOP**. Mutate nothing. |\n| Non-interactive (`CLAUDE_CODE_REMOTE`, `claude -p`, an autonomous loop) | `--code-fix` without `--yes` | **STOP after the plan. Mutate nothing.** The plan IS the report. Re-run with `--yes` to apply. |\n| Non-interactive | `--code-fix --yes` | Apply (still honor the file-cap unless `--all-files`). |\n\n`--code-fix` opts INTO code-changing fix mode; `--yes` is the separate, explicit consent to mutate a tree with no human watching. A non-interactive session with no `--yes` is never consent. Bare `--fix` does not enter this gate.\n\n### Code-fix scope fence\n\nBefore applying `--code-fix`:\n\n1. **Changed-files allowlist.** Scope each `code-fix-cmd` to the ecosystem's changed-file list via `\u003Cfiles>` (or the expanded `all` set). Do not silently retarget a whole-tree `.` \u002F `.\u002F...` when a non-empty scoped list exists.\n2. **File cap (default 40).** Sum the scoped files across ecosystems that will actually run a non-null `code-fix-cmd`. If the sum exceeds 40 and `--all-files` is absent, emit the plan, report `file-cap exceeded (\u003Ccount> > 40; pass --all-files to override)`, and **STOP**. Mutate nothing.\n3. **No LOC auto-budget.** Do not invent a line-count ceiling; the confirmation plan (file list + commands) is the pre-apply review surface. After apply, surface `git diff --stat` so the operator can see blast radius.\n\n### 3. Present results\n\n```text\n## Lint Results\n\n| Ecosystem  | Lint     | Format   | Status |\n|------------|----------|----------|--------|\n| dotnet     | pass     | pass     | PASS   |\n| python     | FAIL     | pass     | FAIL   |\n| bash       | pass     | pass     | PASS   |\n| markdown   | pass     | —        | PASS   |\n\nOverall: FAIL (1 of 4 ecosystems failed)\n```\n\nUse `pass`, `FAIL`, a named skip, or `—` (not applicable). Every skip names its reason in `\u002Ftoolchain:check`'s named classes, and its class decides whether it blocks a \"done\" claim exactly as `\u002Ftoolchain:check`'s report table (its section 3) classifies it: `skip (tool missing: \u003Ctool>)` is an environment skip and blocks \"done\"; `skip (opt-in unmet: \u003Ccondition>)` is the consumer's opt-in and does not. Lint installs nothing and runs no CI-parity gates, so it never emits the `dependencies missing` or `unsupported` classes.\n\nAn ecosystem's Status and the Overall line read `FAIL` when any cell failed, `INCOMPLETE` when nothing failed but an environment skip remains, and `PASS` only when neither holds. `INCOMPLETE` names each cause with its reason (e.g. `Overall: INCOMPLETE (3 of 4 ecosystems passed; markdown: skip (tool missing: markdownlint-cli2))`), so a caller such as `\u002Fverification:confirm` holds its verdict on a lint-only environment gap. An opt-in-unmet skip or a `—` cell never makes a run `INCOMPLETE`.\n\nSplit lint and format into separate columns where the ecosystem has both (dotnet, python, bash). Use a single \"Lint\" column for ecosystems with only one tool (markdown, yaml, powershell). An opt-in-unmet skip fills every column that ecosystem's row has.\n\nIf `--fix` was used, note which ecosystems were format-fixed vs which have no `fix-cmd`.\n\nIf `--code-fix` was used (and applied), note which ecosystems ran `code-fix-cmd` vs which have none, and show `git diff --stat` for blast radius.\n\nShow failing output below the table. Truncated to key error lines, not the full dump.\n\nBelow the table, name every unclaimed changed text file (section 1, step 4) on one of two fixed lines, printed word for word even when a note elsewhere in the reply says the same thing:\n\n- `No ecosystem linter (cross-cutting text checks only): \u003Cpath>, \u003Cpath>` only when cross-cutting's check command executed in this invocation (its row reads `pass` or `FAIL`), so its checks covered them;\n- `Outside every ecosystem: \u003Cpath>, \u003Cpath>` in every other case, including a cross-cutting row that is a skip.\n\nNeither line changes a Status or the Overall line, and no binary file is on either. Say nothing about a binary file outside every ecosystem: no table row, no bullet, and no note that it is binary, was skipped or was ignored. Tool output the report shows, such as failing lines or `git diff --stat`, stays as printed.\n\n### 4. Fix mode notes\n\n- **`--fix`:** auto-fix capability derives from a non-null `fix-cmd`. Report check-only ecosystems alongside format fixes: \"Fixed formatting in dotnet, python, bash. markdownlint had no remaining auto-fixes.\"\n- **`--code-fix`:** capability derives from a non-null `code-fix-cmd`. Ecosystems with only `fix-cmd` (format-only) are not code-fixed under this flag. Tell the operator to use `--fix` for those. Example: \"Applied code-fix in python, go. typescript has no code-fix-cmd. Use `--fix` for format-only ecosystems (dotnet, bash, …).\"\n\n**Consumer overrides:** a consumer who still puts code-changing autofixes in `fix-cmd` keeps that behavior under `--fix` (their file wins). Prefer migrating those verbs into `code-fix-cmd` so bare `--fix` stays format-only. Bundled portable defaults already split the two.\n\n### 5. Record the result\n\nAfter a check-mode report, record its Overall line for the tree it ran on, in its own Bash call, with the line exactly as reported inside single quotes (write a `'` in it as `'\\''`):\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Frecord-result.mjs\" --skill lint --dir \"$REPO_ROOT\" --overall '\u003Cthe Overall line>'\n```\n\nThe plugin's Stop hook reads it at turn end the same way it reads `\u002Ftoolchain:check`'s record. Record nothing for `--fix` or `--code-fix`: the fix changes the tree, so the check that would count is the next check-mode run. Skip it too when an ecosystem filter narrowed the run (`all` and a caller's changed-file list do not narrow it), and when the run stopped at \"No changes found\" or with no ecosystem to run. A failed record (exit 2) changes nothing in the report; say it was not recorded.\n\n## Edge cases\n\n- **No git changes but `\u002Ftoolchain:lint all`**: run all applicable ecosystems (useful after rebase or pull)\n- **Missing tools**: report as `skip (tool missing: \u003Ctool>)` with the install hint, not as failure, and never as done: the Overall line reads `INCOMPLETE`. Scoped to the tool the ecosystem's commands are invoked through, not every sub-tool a compound command reaches (an un-probed sub-tool's absence is a real non-zero exit, so `FAIL`; see `\u002Ftoolchain:check`'s Gotchas)\n- **Opt-in unmet**: report as `skip (opt-in unmet: ...)` with the condition, not as failure and not a silent omission (e.g., dotnet with no C#-relevant `.editorconfig`)\n- **Multiple projects in same ecosystem**: run per-project (each `pyproject.toml`, each `package.json`)\n- **File outside any ecosystem**: a text file is named on one of the two unclaimed-file lines; a binary file (images, archives) outside every ecosystem gets no mention in the reply, not even to say it was skipped\n- **CWD drift**: always use absolute paths from `$REPO_ROOT`\n- **`--code-fix` over file-cap without `--all-files`**: plan + stop, never mutate\n- **`--code-fix` in non-interactive session without `--yes`**: plan + stop, never mutate\n- **Both `--fix` and `--code-fix`**: prefer `--code-fix`, note `--fix` ignored\n\n## Relationship to other skills\n\n- **Composes from `\u002Ftoolchain:check`**: `\u002Ftoolchain:check` owns the per-ecosystem prose gotchas. Reference it rather than duplicating\n- **Composed by `\u002Fverification:confirm`** (the separate `verification` plugin, when installed): the lint leg of full verification\n- **After a simplify\u002Fcleanup pass**: run `\u002Ftoolchain:lint` to catch formatting issues the cleanup introduced\n- **Before commit**: `\u002Ftoolchain:lint --fix` is a quick pre-commit **format** cleanup without the overhead of a full build. Use `\u002Ftoolchain:lint --code-fix` (interactive confirm, or `--yes` when headless) only when you intentionally want semantic lint autofixes.\n",{"metadata":24,"description":7,"argument-hint":27,"user-invocable":28,"disable-model-invocation":20},{"summary":25,"workflow-stage":26},"Polyglot lint and format checks without a full build","verify","[ecosystem] [--fix|--code-fix] [--yes] [--dry-run] [--all-files]",true,"main","4f2dcaaff35e8f9fccc6a9f4d82a5830ab17a5c5","plugins\u002Ftoolchain\u002Fskills\u002Flint",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":39,"prompt":49,"zipAvailable":28},[40,43,46],{"tool":41,"command":42},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill lint",{"tool":44,"command":45},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill lint",{"tool":47,"command":48},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill lint","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Ftoolchain\u002Fskills\u002Flint\u002FSKILL.md",[],[52,59,66,73,78,85],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"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":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"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":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"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":74,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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",[],[]]