[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77M2EYRSH5M920ZS0N5SC7H":3,"skill-same:01M77M2EYRSH5M920ZS0N5SC7H":61},{"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":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":54},"01M77M2EYRSH5M920ZS0N5SC7H","setup",null,"Verify markdown-format's prerequisites and configuration here, and register its git pre-commit entry. Use when: 'set up markdown-format', 'configure markdown-format', 'is markdown-format working', formatting silently isn't happening, or a hook reported a missing prerequisite or drifted git hook. Actions: check (read-only, default) | apply [install-lint] | apply install-git-hooks [scope=local|shared]. Re-runnable.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fmarkdown-format\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Verify markdown-format's prerequisites and configuration here, and register its git pre-commit entry. Use when: 'set up markdown-format', 'configure markdown-format', 'is markdown-format working', formatting silently isn't happening, or a hook reported a missing prerequisite or drifted git hook. Actions: check (read-only, default) | apply [install-lint] | apply install-git-hooks [scope=local|shared]. Re-runnable.\"\nargument-hint: \"[check|apply [install-lint|install-git-hooks [scope=local|shared]]]\"\nuser-invocable: true\ndisable-model-invocation: true\nallowed-tools:\n  - \"Bash(command -v jq*)\"\n  - \"Bash(node \\\"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\\\" verify:*)\"\n  - \"Bash(node ${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs verify:*)\"\n  - \"Bash(node \\\"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\\\" plan:*)\"\n  - \"Bash(node ${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs plan:*)\"\nshell: bash\n---\n\n## Pre-computed context\n\n`check`'s `jq` probe ran at load time. Read this row instead of re-issuing it; it shows\nthe tool's path when present, or `absent` when missing:\n\n- `jq`: !`command -v jq 2>\u002Fdev\u002Fnull || echo absent`\n\nA row missing, reading as literal command text, or reading `[shell command execution\ndisabled by policy]` carries no result: run that tool's `command -v` probe via Bash instead.\n\n- **Pointer**: for the placeholder a skipped load-time command leaves, fetch\n  [skills § Inject dynamic context](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#inject-dynamic-context)\n  live.\n- **As of**: 2026-11-11\n- **Recheck trigger**: the placeholder text changes.\n\n## Purpose\n\nThin check-centric setup per the uniform setup contract (`docs\u002Fplugin-philosophy.md`\n\"Setup is explicit and repeatable\" in the marketplace repository): `check` inspects and\nreports, `apply` resolves. The only consumer-project files this plugin owns are its git-hook\nentry copies, which `apply install-git-hooks` writes. Rules come from the repository's own\nmarkdownlint config, and the tunables are the native `userConfig` options (the on\u002Foff toggle,\nthe gitignored-file switch and the end-of-turn check). `apply` is otherwise guidance-and-verify,\nwith one more write path: the explicitly invoked `apply install-lint` dependency install\ndescribed below.\n\nAction routing: no argument or `check` runs the check; `apply` runs the check first, then\nremediation; `apply install-lint` additionally authorizes the consumer-repo dependency\ninstall described below. All are non-interactive. Never prompt when the action is given.\n`apply install-git-hooks` asks only where its section says to.\n\n## `check` (read-only)\n\nThe hook script (`${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fmarkdown-format.sh`) and the gates it shares with\nthe pre-commit entry (`${CLAUDE_PLUGIN_ROOT}\u002Fgit-hooks\u002Fmarkdown-gates.sh`) are the single source\nof truth for what the plugin requires and how it resolves things.\n\n**Read them first.** Probe what they actually do, don't recite this file. Then read the\npre-computed `jq` row, run the remaining probes via Bash, and report a PASS\u002FFAIL\u002FINFO\ntable with one remediation line per FAIL. Do not modify anything.\nRead each option value from this text; never put a `${user_config.*}` string in a shell command.\nOpen plugin files by the `${CLAUDE_PLUGIN_ROOT}` paths this skill names; never Glob or Grep the plugin directory.\n\nWhen the plugin's toggle is disabled, every prerequisite absence except Node.js (item 1)\ndowngrades from FAIL to INFO. The hook and the `SessionStart` probe both exit through the\nenabled gate before probing anything, so a deliberately disabled plugin is not broken.\nNode.js stays FAIL: Claude Code must spawn `node` for the hook row before that gate can run.\nA tool the git pre-commit entry needs keeps the grade it gets with the toggle on while that entry\nis installed (item 9 reports it as a `tool` line beside an `ok`, `stale` or `modified` entry): the\nentry runs at commit outside Claude Code and reads no toggle.\nReport the probes informationally and note that re-enabling restores the FAIL semantics.\n\n1. **Node.js.** Every hook row starts through `node hooks\u002Fexec-bash.mjs`, so without\n   `node` on `PATH` no hook launches and nothing is enforced. Probe it via Bash with\n   `node --version` (a hook cannot report its own missing launcher; a stale version-manager\n   shim resolves on `PATH` yet cannot run, so resolution alone is not a PASS). FAIL if it is\n   absent or exits non-zero, in every toggle state; the remediation is to install or repair\n   Node.js (README Requirements).\n2. **Bash version.** Check against the hooks' floor, Bash 3.2 or newer (`${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fhook-utils.sh`).\n3. **`jq`.** The pre-computed `jq` row, or the Bash probe when that row carries no result. The\n   batch hook reads the file paths with `jq` and does nothing, silently, without it. FAIL if\n   absent *and* the repository opted in per item 5; INFO otherwise, because without a config\n   nothing would run anyway and the missing config, not jq, is why.\n4. **`markdownlint-cli2`.** Resolve it exactly the way the gates' `md_local_bin` and the\n   hook's PATH lookup do: `PATH` first, then `node_modules\u002F.bin\u002Fmarkdownlint-cli2` walking up\n   from a Markdown file's directory to the repository root, with the shim's symlinks followed\n   and its physical target required to stay inside the repository's `node_modules` tree. A\n   binary or shim the hook would reject must not PASS here. Then confirm the resolved tool\n   actually executes, loading no repository config or module: run it with `--help`, never `-h`, `--version` or a\n   bare glob. It executed when its first output line is the tool's version banner, whatever the\n   exit code (a repo shim can resolve yet still be broken: missing Node interpreter, dangling\n   target). Anything else is FAIL, with the execution error in the remediation line. FAIL when\n   nothing the hook would accept resolves.\n   - **Probe**: [`markdownlint-cli2` `--help` and `--version`](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fissues\u002F13201#issuecomment-6630609726).\n     **As of**: 2026-11-04. **Recheck trigger**: a `markdownlint-cli2` release changes what `--help`\n     prints first, or adds a `--version` flag.\n5. **Consumer markdownlint config, the opt-in.** This is what activates the plugin, not a\n   style detail. Mirror the gates' `md_config_state` walk: from a Markdown file's directory\n   up to the repo root, so nested configs apply to nested files and the opt-in is per-path (a\n   root config covers the tree; a `docs\u002F` config covers only `docs\u002F`). Where that walk finds\n   nothing the hook exits silently: no `--fix`, no findings, and no notice, not even a missing\n   prerequisite. The `SessionStart` probe does not check for a config, so it can still report\n   a missing `markdownlint-cli2` in a repository that never opted in. Search the whole tree\n   (skip `node_modules`), report the root config the cascade discovers, list nested configs\n   with their directory scope, and report as INFO, gated, every config the gates'\n   `md_classify` flags (a `.cjs` or `.mjs` config, or one naming `customRules`,\n   `markdownItPlugins` or `outputFormatters`, or holding a backslash in a quoted string): the\n   plugin runs markdownlint-cli2 under it only after the user approves that config state\n   (README \"Trust model\"), so until then the files it governs are neither rewritten nor\n   checked. Never create the approval marker yourself: approval is the user's. For a path no config governs, report the plugin as **INFO,\n   inactive, not PASS**: nothing is broken, the repository simply never opted in, and that is\n   the whole reason formatting is not happening. Name the remediation in the same line rather\n   than leaving the reader to infer it: the user can add a markdownlint config to opt in. Do not\n   offer to create one. Never report markdownlint's own default rules as the\n   fallback. An unconfigured repo gets no rules, not the defaults.\n6. **Path scope, the repository's `.gitignore`.** INFO: the batch hook leaves a gitignored\n   file alone, because a path the repository excludes is not part of the reviewable artifact.\n   (The pre-commit entry only sees files git stages, so it needs no such rule.) List the\n   ignored Markdown the repository carries as out of scope with\n   `git ls-files --others --ignored --exclude-standard -- '*.md' '*.mdc'`,\n   and note that a tracked file is never treated\n   as ignored even when a pattern matches it. Report the effective\n   `${user_config.markdown_format_lint_gitignored}` value (unexpanded or empty means\n   default `false`, i.e. gitignored files are skipped); `true` restores rewriting there.\n7. **Hook toggle.** Report the effective `markdown_format_enabled` value:\n   `${user_config.markdown_format_enabled}` (unexpanded or empty means default `true`). Also\n   report `markdown_format_end_of_turn`: `${user_config.markdown_format_end_of_turn}`\n   (unexpanded or empty means unset, the default), as INFO: unset, the Stop row shows you the\n   findings in the uncommitted changes when a turn ends and the turn ends; `true`, it hands them\n   back to Claude once per turn; `false`, only the batch rewrite and the git pre-commit entry\n   run.\n8. **Hook registration.** INFO: confirm the plugin is enabled for this project\n   (`\u002Fplugin` → Installed) rather than parsing settings files.\n9. **Git pre-commit entry.** Run `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" verify`\n   from the repository. Each line is `\u003Cstate>\\t\u003Centry>[\\t\u003Cdetail>]`: `ok` is PASS, `declined` is\n   INFO (this clone said no; silent at session start), and `missing`, `stale`, `modified` or `superseded` is a\n   FAIL whose remediation is `apply install-git-hooks`; a `superseded` detail lists what an install under an earlier plugin name left, which that action removes on the user's yes. A `tool\\t\u003Ctool>\\tmissing` line means the\n   installed entry cannot run here: list every such tool with its install method from the\n   `${CLAUDE_PLUGIN_ROOT}\u002Fprerequisites.json` (Read that path), so a lane or cloud setup script can provision it before an\n   auto-mode session commits. Outside a git repository, report INFO and skip the step.\n\n## `apply install-git-hooks [scope=local|shared]`\n\nRegisters the plugin's git-hook entries (`git-hooks\u002Fentries.json`) with the repository's hook\nmanager. The installer script only detects, renders and writes files the plugin owns; every step\nthat needs judgment comes back to you as a `decisions[]` item, which you reason about and apply\nwith your own edit tools.\n\n1. **Scope.** Use the argument when given. Otherwise, when the user is present, ask: `local`\n   (this clone only, nothing committed) or `shared` (committed under `.githooks\u002Fmarkdown-format\u002F`,\n   so every teammate and agent gets it). When nobody can answer, use `local`.\n2. **Plan.** Run `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" plan --scope \u003Cscope>`\n   and read the JSON: `manager`, `actions[]`, `decisions[]`.\n3. **Manager conflict.** A `manager-conflict` decision lists the evidence (two managers, or one\n   this installer does not drive, such as the pre-commit framework). Show it and ask which manager\n   should carry the entry; rerun `plan` with `--manager lefthook|husky|plain`. Without an answer,\n   stop here and report.\n4. **Actions.** When `actions[]` holds `copy` items, run\n   `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" copy --scope \u003Cscope>` (plus the same\n   `--manager` when you passed one). It prints `installed`, `refreshed`, `unchanged`, `refused` or\n   `blocked` per entry; `refused` means a locally edited copy, which the `modified` decision\n   covers, and `blocked` means another tool owns the local hooks directory, which the\n   `hooks-path-owned` decision covers.\n5. **Decisions.** Read [reference\u002Fgit-hook-decisions.md](reference\u002Fgit-hook-decisions.md) for\n   what each kind asks of you, apply each one, then rerun `plan` until only the decisions you\n   chose to leave remain.\n6. **Verify.** Run `verify` and report its lines as `check` step 9 does.\n\nThe entry rewrites: at commit it formats the staged Markdown files and stages the result, so tell\nthe user that a commit can change the files it contains, and that a partly staged Markdown file is\nrefused untouched.\n\nWhen the user does not want an entry in this clone, run\n`node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" decline --entry markdown-check`; the\nsession-start drift line then stays silent until `verify` runs by hand, and `--undo` reverses it.\nAdd `--global` (with or without `--undo`) to decline the entry in every clone;\n`git config --global checks.git-hooks.declined true` declines every entry of every plugin, and an\nentry's own key set to `false` in a clone opts that entry back in. The [adoption\npath](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fcontracts\u002Fcheck-placement\u002Fadopting-git-hooks.md) explains to the user each scope and why a formatter's cleanup PR comes first.\n\n## `apply` (idempotent)\n\nRun `check`, then for each FAIL offer the resolution. Never install anything without the\nconsumer's explicit go-ahead in the invocation. `apply install-lint` adds\n`markdownlint-cli2` as a dev dependency in the consumer repository **using the\nrepository's own package manager**, resolved in order: lockfile (`pnpm-lock.yaml` →\n`pnpm add -D`, `yarn.lock` → `yarn add -D`, `bun.lock`\u002F`bun.lockb` → `bun add -d`,\n`package-lock.json` or `npm-shrinkwrap.json` → `npm install --save-dev`), then the\n`package.json` `\"packageManager\"` field when no lockfile exists, then npm only when\nneither signal is present. With no `package.json`, an ambiguous multi-lockfile state, or a lockfile that\ncontradicts `packageManager`, stop with manager-specific guidance instead of guessing.\nNever introduce a competing lockfile. The change is stated before running. For a Yarn repository, don't infer the linker. Ask\nthe repo's own Yarn: run `yarn config get nodeLinker` in the repo. `pnp` → skip the install\nand give guidance, because Plug'n'Play generates a loader file, not the `node_modules\u002F.bin`\nshim the hook resolves; install `markdownlint-cli2` on `PATH` or switch the linker.\n`node-modules`\u002F`pnpm`, or Yarn Classic → install. For the setting's values and default, fetch\n[`nodeLinker`](https:\u002F\u002Fyarnpkg.com\u002Fconfiguration\u002Fyarnrc#nodeLinker) live. The\nverify-after-remediation rule below is the backstop when an install still yields no\nusable shim. After ANY remediation, re-run the\nrelevant `check` probe live via Bash (a pre-computed row predates the remediation) and report\nits actual result. Never claim resolved on the\ninstall command's exit code alone. For everything else `apply` only points:\n\n- missing `jq` \u002F Bash \u002F Node.js: platform install instructions from the README Requirements section;\n  this skill never installs system packages.\n- toggle off: set `markdown_format_enabled` to `true` through Claude Code's native flow,\n  interactively with `\u002Fplugin configure markdown-format@\u003Cmarketplace>` or by a headless route, as\n  the marketplace's plugin-reconfiguration convention gives them in\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  (it owns the verified-version record). Apply the scope and failure-signal caveats in its\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).\n  Read both sections and print what they give, the fallback route, its behavior on an\n  already-installed plugin and the scope to pass included, rather than only naming them, and\n  leave out the verified-version record.\n  Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never\n  writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\n  same-session `check` can still show the old value, and report the observed effective value,\n  never an unobserved change.\n\n  - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and\n    when a saved value applies, fetch\n    [plugin CLI reference § plugin configure](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcli-reference#plugin-configure)\n    live.\n- no markdownlint config: this is why the plugin does nothing here, so lead with it rather\n  than leaving it as a footnote under the passing prerequisites. Then offer to create a\n  minimal `.markdownlint-cli2.jsonc` in the repository root only when explicitly asked.\n  The plugin imposes no rules of its own, and which rules a repository adopts is its own\n  decision, never this skill's.\n\nRe-running `apply` after everything passes changes nothing and reports \"already configured\".\n\n## What this skill does NOT do\n\n- Run the formatter. Editing any `.md` file exercises the batch hook end-to-end, and\n  `git commit` exercises the installed pre-commit entry. The only\n  execution `check` performs is the `--help` liveness probe of the resolved linter; it never\n  lints, fixes, touches repository content, or loads a repository config or module.\n- Write the plugin cache, Claude Code user settings, or `pluginConfigs`.\n- Download anything during `check`; network use happens only in an explicitly\n  requested `apply install-lint` inside the consumer repository.\n","## Pre-computed context\n\n`check`'s `jq` probe ran at load time. Read this row instead of re-issuing it; it shows\nthe tool's path when present, or `absent` when missing:\n\n- `jq`: !`command -v jq 2>\u002Fdev\u002Fnull || echo absent`\n\nA row missing, reading as literal command text, or reading `[shell command execution\ndisabled by policy]` carries no result: run that tool's `command -v` probe via Bash instead.\n\n- **Pointer**: for the placeholder a skipped load-time command leaves, fetch\n  [skills § Inject dynamic context](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#inject-dynamic-context)\n  live.\n- **As of**: 2026-11-11\n- **Recheck trigger**: the placeholder text changes.\n\n## Purpose\n\nThin check-centric setup per the uniform setup contract (`docs\u002Fplugin-philosophy.md`\n\"Setup is explicit and repeatable\" in the marketplace repository): `check` inspects and\nreports, `apply` resolves. The only consumer-project files this plugin owns are its git-hook\nentry copies, which `apply install-git-hooks` writes. Rules come from the repository's own\nmarkdownlint config, and the tunables are the native `userConfig` options (the on\u002Foff toggle,\nthe gitignored-file switch and the end-of-turn check). `apply` is otherwise guidance-and-verify,\nwith one more write path: the explicitly invoked `apply install-lint` dependency install\ndescribed below.\n\nAction routing: no argument or `check` runs the check; `apply` runs the check first, then\nremediation; `apply install-lint` additionally authorizes the consumer-repo dependency\ninstall described below. All are non-interactive. Never prompt when the action is given.\n`apply install-git-hooks` asks only where its section says to.\n\n## `check` (read-only)\n\nThe hook script (`${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fmarkdown-format.sh`) and the gates it shares with\nthe pre-commit entry (`${CLAUDE_PLUGIN_ROOT}\u002Fgit-hooks\u002Fmarkdown-gates.sh`) are the single source\nof truth for what the plugin requires and how it resolves things.\n\n**Read them first.** Probe what they actually do, don't recite this file. Then read the\npre-computed `jq` row, run the remaining probes via Bash, and report a PASS\u002FFAIL\u002FINFO\ntable with one remediation line per FAIL. Do not modify anything.\nRead each option value from this text; never put a `${user_config.*}` string in a shell command.\nOpen plugin files by the `${CLAUDE_PLUGIN_ROOT}` paths this skill names; never Glob or Grep the plugin directory.\n\nWhen the plugin's toggle is disabled, every prerequisite absence except Node.js (item 1)\ndowngrades from FAIL to INFO. The hook and the `SessionStart` probe both exit through the\nenabled gate before probing anything, so a deliberately disabled plugin is not broken.\nNode.js stays FAIL: Claude Code must spawn `node` for the hook row before that gate can run.\nA tool the git pre-commit entry needs keeps the grade it gets with the toggle on while that entry\nis installed (item 9 reports it as a `tool` line beside an `ok`, `stale` or `modified` entry): the\nentry runs at commit outside Claude Code and reads no toggle.\nReport the probes informationally and note that re-enabling restores the FAIL semantics.\n\n1. **Node.js.** Every hook row starts through `node hooks\u002Fexec-bash.mjs`, so without\n   `node` on `PATH` no hook launches and nothing is enforced. Probe it via Bash with\n   `node --version` (a hook cannot report its own missing launcher; a stale version-manager\n   shim resolves on `PATH` yet cannot run, so resolution alone is not a PASS). FAIL if it is\n   absent or exits non-zero, in every toggle state; the remediation is to install or repair\n   Node.js (README Requirements).\n2. **Bash version.** Check against the hooks' floor, Bash 3.2 or newer (`${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fhook-utils.sh`).\n3. **`jq`.** The pre-computed `jq` row, or the Bash probe when that row carries no result. The\n   batch hook reads the file paths with `jq` and does nothing, silently, without it. FAIL if\n   absent *and* the repository opted in per item 5; INFO otherwise, because without a config\n   nothing would run anyway and the missing config, not jq, is why.\n4. **`markdownlint-cli2`.** Resolve it exactly the way the gates' `md_local_bin` and the\n   hook's PATH lookup do: `PATH` first, then `node_modules\u002F.bin\u002Fmarkdownlint-cli2` walking up\n   from a Markdown file's directory to the repository root, with the shim's symlinks followed\n   and its physical target required to stay inside the repository's `node_modules` tree. A\n   binary or shim the hook would reject must not PASS here. Then confirm the resolved tool\n   actually executes, loading no repository config or module: run it with `--help`, never `-h`, `--version` or a\n   bare glob. It executed when its first output line is the tool's version banner, whatever the\n   exit code (a repo shim can resolve yet still be broken: missing Node interpreter, dangling\n   target). Anything else is FAIL, with the execution error in the remediation line. FAIL when\n   nothing the hook would accept resolves.\n   - **Probe**: [`markdownlint-cli2` `--help` and `--version`](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fissues\u002F13201#issuecomment-6630609726).\n     **As of**: 2026-11-04. **Recheck trigger**: a `markdownlint-cli2` release changes what `--help`\n     prints first, or adds a `--version` flag.\n5. **Consumer markdownlint config, the opt-in.** This is what activates the plugin, not a\n   style detail. Mirror the gates' `md_config_state` walk: from a Markdown file's directory\n   up to the repo root, so nested configs apply to nested files and the opt-in is per-path (a\n   root config covers the tree; a `docs\u002F` config covers only `docs\u002F`). Where that walk finds\n   nothing the hook exits silently: no `--fix`, no findings, and no notice, not even a missing\n   prerequisite. The `SessionStart` probe does not check for a config, so it can still report\n   a missing `markdownlint-cli2` in a repository that never opted in. Search the whole tree\n   (skip `node_modules`), report the root config the cascade discovers, list nested configs\n   with their directory scope, and report as INFO, gated, every config the gates'\n   `md_classify` flags (a `.cjs` or `.mjs` config, or one naming `customRules`,\n   `markdownItPlugins` or `outputFormatters`, or holding a backslash in a quoted string): the\n   plugin runs markdownlint-cli2 under it only after the user approves that config state\n   (README \"Trust model\"), so until then the files it governs are neither rewritten nor\n   checked. Never create the approval marker yourself: approval is the user's. For a path no config governs, report the plugin as **INFO,\n   inactive, not PASS**: nothing is broken, the repository simply never opted in, and that is\n   the whole reason formatting is not happening. Name the remediation in the same line rather\n   than leaving the reader to infer it: the user can add a markdownlint config to opt in. Do not\n   offer to create one. Never report markdownlint's own default rules as the\n   fallback. An unconfigured repo gets no rules, not the defaults.\n6. **Path scope, the repository's `.gitignore`.** INFO: the batch hook leaves a gitignored\n   file alone, because a path the repository excludes is not part of the reviewable artifact.\n   (The pre-commit entry only sees files git stages, so it needs no such rule.) List the\n   ignored Markdown the repository carries as out of scope with\n   `git ls-files --others --ignored --exclude-standard -- '*.md' '*.mdc'`,\n   and note that a tracked file is never treated\n   as ignored even when a pattern matches it. Report the effective\n   `${user_config.markdown_format_lint_gitignored}` value (unexpanded or empty means\n   default `false`, i.e. gitignored files are skipped); `true` restores rewriting there.\n7. **Hook toggle.** Report the effective `markdown_format_enabled` value:\n   `${user_config.markdown_format_enabled}` (unexpanded or empty means default `true`). Also\n   report `markdown_format_end_of_turn`: `${user_config.markdown_format_end_of_turn}`\n   (unexpanded or empty means unset, the default), as INFO: unset, the Stop row shows you the\n   findings in the uncommitted changes when a turn ends and the turn ends; `true`, it hands them\n   back to Claude once per turn; `false`, only the batch rewrite and the git pre-commit entry\n   run.\n8. **Hook registration.** INFO: confirm the plugin is enabled for this project\n   (`\u002Fplugin` → Installed) rather than parsing settings files.\n9. **Git pre-commit entry.** Run `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" verify`\n   from the repository. Each line is `\u003Cstate>\\t\u003Centry>[\\t\u003Cdetail>]`: `ok` is PASS, `declined` is\n   INFO (this clone said no; silent at session start), and `missing`, `stale`, `modified` or `superseded` is a\n   FAIL whose remediation is `apply install-git-hooks`; a `superseded` detail lists what an install under an earlier plugin name left, which that action removes on the user's yes. A `tool\\t\u003Ctool>\\tmissing` line means the\n   installed entry cannot run here: list every such tool with its install method from the\n   `${CLAUDE_PLUGIN_ROOT}\u002Fprerequisites.json` (Read that path), so a lane or cloud setup script can provision it before an\n   auto-mode session commits. Outside a git repository, report INFO and skip the step.\n\n## `apply install-git-hooks [scope=local|shared]`\n\nRegisters the plugin's git-hook entries (`git-hooks\u002Fentries.json`) with the repository's hook\nmanager. The installer script only detects, renders and writes files the plugin owns; every step\nthat needs judgment comes back to you as a `decisions[]` item, which you reason about and apply\nwith your own edit tools.\n\n1. **Scope.** Use the argument when given. Otherwise, when the user is present, ask: `local`\n   (this clone only, nothing committed) or `shared` (committed under `.githooks\u002Fmarkdown-format\u002F`,\n   so every teammate and agent gets it). When nobody can answer, use `local`.\n2. **Plan.** Run `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" plan --scope \u003Cscope>`\n   and read the JSON: `manager`, `actions[]`, `decisions[]`.\n3. **Manager conflict.** A `manager-conflict` decision lists the evidence (two managers, or one\n   this installer does not drive, such as the pre-commit framework). Show it and ask which manager\n   should carry the entry; rerun `plan` with `--manager lefthook|husky|plain`. Without an answer,\n   stop here and report.\n4. **Actions.** When `actions[]` holds `copy` items, run\n   `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" copy --scope \u003Cscope>` (plus the same\n   `--manager` when you passed one). It prints `installed`, `refreshed`, `unchanged`, `refused` or\n   `blocked` per entry; `refused` means a locally edited copy, which the `modified` decision\n   covers, and `blocked` means another tool owns the local hooks directory, which the\n   `hooks-path-owned` decision covers.\n5. **Decisions.** Read [reference\u002Fgit-hook-decisions.md](reference\u002Fgit-hook-decisions.md) for\n   what each kind asks of you, apply each one, then rerun `plan` until only the decisions you\n   chose to leave remain.\n6. **Verify.** Run `verify` and report its lines as `check` step 9 does.\n\nThe entry rewrites: at commit it formats the staged Markdown files and stages the result, so tell\nthe user that a commit can change the files it contains, and that a partly staged Markdown file is\nrefused untouched.\n\nWhen the user does not want an entry in this clone, run\n`node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" decline --entry markdown-check`; the\nsession-start drift line then stays silent until `verify` runs by hand, and `--undo` reverses it.\nAdd `--global` (with or without `--undo`) to decline the entry in every clone;\n`git config --global checks.git-hooks.declined true` declines every entry of every plugin, and an\nentry's own key set to `false` in a clone opts that entry back in. The [adoption\npath](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fcontracts\u002Fcheck-placement\u002Fadopting-git-hooks.md) explains to the user each scope and why a formatter's cleanup PR comes first.\n\n## `apply` (idempotent)\n\nRun `check`, then for each FAIL offer the resolution. Never install anything without the\nconsumer's explicit go-ahead in the invocation. `apply install-lint` adds\n`markdownlint-cli2` as a dev dependency in the consumer repository **using the\nrepository's own package manager**, resolved in order: lockfile (`pnpm-lock.yaml` →\n`pnpm add -D`, `yarn.lock` → `yarn add -D`, `bun.lock`\u002F`bun.lockb` → `bun add -d`,\n`package-lock.json` or `npm-shrinkwrap.json` → `npm install --save-dev`), then the\n`package.json` `\"packageManager\"` field when no lockfile exists, then npm only when\nneither signal is present. With no `package.json`, an ambiguous multi-lockfile state, or a lockfile that\ncontradicts `packageManager`, stop with manager-specific guidance instead of guessing.\nNever introduce a competing lockfile. The change is stated before running. For a Yarn repository, don't infer the linker. Ask\nthe repo's own Yarn: run `yarn config get nodeLinker` in the repo. `pnp` → skip the install\nand give guidance, because Plug'n'Play generates a loader file, not the `node_modules\u002F.bin`\nshim the hook resolves; install `markdownlint-cli2` on `PATH` or switch the linker.\n`node-modules`\u002F`pnpm`, or Yarn Classic → install. For the setting's values and default, fetch\n[`nodeLinker`](https:\u002F\u002Fyarnpkg.com\u002Fconfiguration\u002Fyarnrc#nodeLinker) live. The\nverify-after-remediation rule below is the backstop when an install still yields no\nusable shim. After ANY remediation, re-run the\nrelevant `check` probe live via Bash (a pre-computed row predates the remediation) and report\nits actual result. Never claim resolved on the\ninstall command's exit code alone. For everything else `apply` only points:\n\n- missing `jq` \u002F Bash \u002F Node.js: platform install instructions from the README Requirements section;\n  this skill never installs system packages.\n- toggle off: set `markdown_format_enabled` to `true` through Claude Code's native flow,\n  interactively with `\u002Fplugin configure markdown-format@\u003Cmarketplace>` or by a headless route, as\n  the marketplace's plugin-reconfiguration convention gives them in\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  (it owns the verified-version record). Apply the scope and failure-signal caveats in its\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).\n  Read both sections and print what they give, the fallback route, its behavior on an\n  already-installed plugin and the scope to pass included, rather than only naming them, and\n  leave out the verified-version record.\n  Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never\n  writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\n  same-session `check` can still show the old value, and report the observed effective value,\n  never an unobserved change.\n\n  - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and\n    when a saved value applies, fetch\n    [plugin CLI reference § plugin configure](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcli-reference#plugin-configure)\n    live.\n- no markdownlint config: this is why the plugin does nothing here, so lead with it rather\n  than leaving it as a footnote under the passing prerequisites. Then offer to create a\n  minimal `.markdownlint-cli2.jsonc` in the repository root only when explicitly asked.\n  The plugin imposes no rules of its own, and which rules a repository adopts is its own\n  decision, never this skill's.\n\nRe-running `apply` after everything passes changes nothing and reports \"already configured\".\n\n## What this skill does NOT do\n\n- Run the formatter. Editing any `.md` file exercises the batch hook end-to-end, and\n  `git commit` exercises the installed pre-commit entry. The only\n  execution `check` performs is the `--help` liveness probe of the resolved linter; it never\n  lints, fixes, touches repository content, or loads a repository config or module.\n- Write the plugin cache, Claude Code user settings, or `pluginConfigs`.\n- Download anything during `check`; network use happens only in an explicitly\n  requested `apply install-lint` inside the consumer repository.\n",{"shell":24,"description":7,"allowed-tools":25,"argument-hint":31,"user-invocable":32,"disable-model-invocation":32},"bash",[26,27,28,29,30],"Bash(command -v jq*)","Bash(node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" verify:*)","Bash(node ${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs verify:*)","Bash(node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs\" plan:*)","Bash(node ${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Finstall.mjs plan:*)","[check|apply [install-lint|install-git-hooks [scope=local|shared]]]",true,"main","c68fcc0bf2eb1373a1c9ed172abdae781872e8d0","plugins\u002Fmarkdown-format\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":43,"prompt":53,"zipAvailable":32},[44,47,50],{"tool":45,"command":46},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":48,"command":49},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":51,"command":52},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fmarkdown-format\u002Fskills\u002Fsetup\u002FSKILL.md",[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"reference\u002Fgit-hook-decisions.md","REFERENCE","参考文档",5152,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fmarkdown-format\u002Fskills\u002Fsetup\u002Freference\u002Fgit-hook-decisions.md",[62,69,76,83,88,95],{"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},"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":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},"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":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"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":84,"name":78,"nameZh":6,"description":79,"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},"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":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},"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":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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",[],[]]