[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MBQ8C5632956N9JB6BB5Z":3,"skill-same:01M77MBQ8C5632956N9JB6BB5Z":60},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":53},"01M77MBQ8C5632956N9JB6BB5Z","setup",null,"Verify powershell-format's prerequisites and configuration here, and register its git pre-commit entry. Use when: 'set up powershell-format', 'configure powershell-format', 'is powershell-format working', PowerShell formatting or linting silently isn't happening, or a hook reported a missing prerequisite or drifted git hook. Actions: check (read-only, default) | apply | 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\u002Fpowershell-format\u002Fskills\u002Fsetup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Verify powershell-format's prerequisites and configuration here, and register its git pre-commit entry. Use when: 'set up powershell-format', 'configure powershell-format', 'is powershell-format working', PowerShell formatting or linting silently isn't happening, or a hook reported a missing prerequisite or drifted git hook. Actions: check (read-only, default) | apply | apply install-git-hooks [scope=local|shared]. Re-runnable.\"\nargument-hint: \"[check|apply [install-git-hooks [scope=local|shared]]]\"\nuser-invocable: true\ndisable-model-invocation: true\nallowed-tools:\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## 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. Formatting and linting rules come from\nthe repository's own `PSScriptAnalyzerSettings.psd1`, and the tunables are the native\n`userConfig` options (the on\u002Foff toggle and the end-of-turn check). The `pwsh` runtime and the\nPSScriptAnalyzer module are resolved from the environment (never bundled, never downloaded),\nand the plugin installs nothing, so `apply` is otherwise guidance-only. It never modifies\nuser settings or the plugin cache.\n\nNote the deliberate asymmetry vs the sibling formatter plugins: only `node` absence is a\nprerequisite defect here. A machine without PowerShell, or without the PSScriptAnalyzer\nmodule, or a repo without a settings file, is INFO in `check`, never FAIL: the hooks stay\nquiet by design. A machine without PowerShell still gets the `SessionStart` probe's notice once per\nsession while the plugin is enabled.\n\nAction routing: no argument or `check` runs the check; `apply` runs the check first, then\noffers remediation guidance. Both 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 pre-commit check (`${CLAUDE_PLUGIN_ROOT}\u002Fgit-hooks\u002Fpowershell-check.sh`) and its\n`powershell-check.ps1` are the single source of truth for what the plugin requires and how it\nresolves things.\n\n**Read them first.** Probe what they actually do, don't recite this file. Then run the\nprobes via Bash and report a PASS\u002FFAIL\u002FINFO table 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` downgrades from\nFAIL to INFO. The hooks exit through their enabled-gate before probing anything, so a deliberately\ndisabled plugin is not broken. Report the probes informationally and note that re-enabling\nrestores the FAIL semantics. A missing `node` stays FAIL in either state: every hook row launches\n`node`, and the gate runs inside `hooks\u002Fexec-bash.mjs`.\n\n1. **Bash version.** Check against the floor, Bash 3.2 or newer (`${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Fcheck-lib.sh`).\n2. **`node`.** Probe via Bash: `command -v node`, then `node --version` when it resolves. FAIL if\n   absent: every handler in `hooks\u002Fhooks.json` launches through `node hooks\u002Fexec-bash.mjs`, so\n   without `node` the hook never starts and says nothing (README Requirements). The hook process\n   resolves bare `node` from the persisted Machine\u002FUser PATH, not from this shell. On Windows a\n   version manager can return a per-call path whose directory name contains a process id (fnm's\n   `fnm_multishells\\\u003Cpid>_\u003Ctimestamp>\\node`); that path is ephemeral, so FAIL when it is the only \u003C!-- portability-ok: Windows path, not a shell regex -->\n   hit, say so, and report the persisted resolution separately from\n   `[Environment]::GetEnvironmentVariable('Path','Machine')` and `'User'`. A non-ephemeral in-shell\n   hit is INFO beside that result, not a PASS by itself. `node` is the only FAIL-class\n   prerequisite.\n3. **`pwsh` (PowerShell 7+).** Probe read-only:\n   `pwsh -NoProfile -NonInteractive -Command '$PSVersionTable.PSVersion.ToString()'`. INFO,\n   not FAIL: the plugin probes `pwsh` only (never legacy `powershell.exe`) and the hooks stay\n   quiet when it is absent, while the `SessionStart` probe reports it once per session on every\n   host where the plugin is enabled. Report the version when present.\n4. **PSScriptAnalyzer module.** Probe **only when `pwsh` resolved** (chain behind step 3 so\n   the probe never errors on a pwsh-less box):\n   `pwsh -NoProfile -NonInteractive -Command 'if (Get-Module -ListAvailable -Name PSScriptAnalyzer) { \"present\" } else { \"absent\" }'`.\n   INFO, not FAIL: absent → an agent commit fails with the install command and a person's commit gets a notice, as the check-placement contract says; the Stop check stays silent. This probe is read-only. `Get-Module -ListAvailable` inspects, it does\n   not format, lint, or mutate.\n5. **`PSScriptAnalyzerSettings.psd1` opt-in.** INFO: the check runs **only on a file a\n   `PSScriptAnalyzerSettings.psd1` governs** (walking up from the file to the repo root,\n   stopping at the closest one). Absence\n   is the opt-out and is **by design, not a defect**. The plugin is inert until a repo adopts\n   a settings file. Report whether one exists and its location. When one exists, surface the\n   README **Trust model**: the settings file is executed-adjacent configuration. A\n   `CustomRulePath` it declares would load and run repository-supplied rule modules during\n   analysis, so the check skips such a settings state until the user approves its exact content (a marker\n   under the repository's git common directory in `powershell-format\u002Ftrust-approvals`, one\n   store for every session and commit; any settings or rule-module change revokes it). It carries the same trust as build\u002FCI configuration.\n6. **Hook toggle.** Report the effective `powershell_format_enabled` value:\n   `${user_config.powershell_format_enabled}` (unexpanded or empty means default `true`; any\n   value other than `true` disables the hooks). Also report `powershell_format_end_of_turn`:\n   `${user_config.powershell_format_end_of_turn}` (unexpanded or empty means the shipped default\n   `false`), as INFO: on, the Stop row checks the uncommitted changes once per turn; off, only the\n   git pre-commit entry runs.\n7. **Hook registration.** INFO: confirm the plugin is enabled for this project\n   (`\u002Fplugin` → Installed) rather than parsing settings files.\n8. **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\u002Fpowershell-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`,\n   `blocked`, `unsafe-path` or `stage-failed` per entry; `refused` means a locally edited copy or\n   dispatcher, which the `modified` decision covers, `blocked` that another tool owns the local\n   hooks directory, which the `hooks-path-owned` decision covers, `unsafe-path` the decision of\n   that name, and `stage-failed` that `git add` failed on a shared install: report it, since the\n   team would not receive the files. The entry's `powershell-check.ps1` is copied beside its\n   script.\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 8 does.\n\nThe entry rewrites: at commit it formats the staged PowerShell files and stages the result, so\ntell the user that a commit can change the files it contains, and that a partly staged\nPowerShell file is refused untouched. It runs Invoke-Formatter, which costs about a second per\ncommit that stages PowerShell. When a `PSScriptAnalyzerSettings.psd1` declares `CustomRulePath`,\nthe entry skips that state until the user approves it; tell the user the approval command only\nin the user's own channel, never in text an agent commit would print.\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 powershell-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 finding point at the resolution. This skill installs nothing:\n\n- missing `node` \u002F Bash: platform install instructions from the README Requirements section;\n  this skill never installs system packages.\n- `pwsh` absent (and PowerShell support is wanted): point at installing\n  [PowerShell 7+](https:\u002F\u002Flearn.microsoft.com\u002Fpowershell\u002Fscripting\u002Finstall\u002Finstalling-powershell);\n  this skill never installs it. If PowerShell is genuinely not applicable on this machine,\n  leaving it absent is a valid end state. The hooks stay quiet; the once-per-session probe\n  notice is the only signal, and `powershell_format_enabled` false or disabling the plugin stops it.\n- PSScriptAnalyzer module absent: `Install-Module PSScriptAnalyzer` is **user-scope guidance\n  only**. State the command for the reader to run; this skill never runs it.\n- no `PSScriptAnalyzerSettings.psd1` (and linting\u002Fformatting is wanted): explain that adding a\n  settings file at or below the project root opts the repo in, but this skill does not write\n  it. The settings file is the executed-adjacent trust boundary above; the choice and the edit\n  belong to the consumer.\n- toggle off: set `powershell_format_enabled` to `true` through Claude Code's native flow,\n  interactively with `\u002Fplugin configure powershell-format@\u003Cmarketplace>` or by a headless route,\n  as the marketplace's plugin-reconfiguration convention gives them in\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  (it owns the verified-version record). Apply the scope and failure-signal caveats in its\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).\n  Read both sections and print what they give, the fallback route, its behavior on an\n  already-installed plugin and the scope to pass included, rather than only naming them, and\n  leave out the verified-version record.\n  Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never\n  writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\n  same-session `check` can still show the old value, and report the observed effective value,\n  never an unobserved change.\n\n  - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and\n    when a saved value applies, fetch\n    [plugin CLI reference § plugin configure](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcli-reference#plugin-configure)\n    live.\n\nAfter pointing at a remediation, re-run the relevant `check` probe live via Bash and report its\nactual result. Never claim resolved on the reader's report that they installed something.\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 or linter. `git commit` of a `.ps1`, `.psm1`, or `.psd1` file exercises the\n  installed pre-commit entry end-to-end. The `check` pwsh probes are read-only capability checks; they never format,\n  lint, or mutate any file.\n- Write the plugin cache, Claude Code user settings, or `pluginConfigs`. Nor the repository,\n  including `PSScriptAnalyzerSettings.psd1`. The `pwsh` runtime and the PSScriptAnalyzer module\n  are resolved from the environment, never installed, so remediation is guidance only.\n- Download tools during `check` beyond the read-only presence and version probes.\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. Formatting and linting rules come from\nthe repository's own `PSScriptAnalyzerSettings.psd1`, and the tunables are the native\n`userConfig` options (the on\u002Foff toggle and the end-of-turn check). The `pwsh` runtime and the\nPSScriptAnalyzer module are resolved from the environment (never bundled, never downloaded),\nand the plugin installs nothing, so `apply` is otherwise guidance-only. It never modifies\nuser settings or the plugin cache.\n\nNote the deliberate asymmetry vs the sibling formatter plugins: only `node` absence is a\nprerequisite defect here. A machine without PowerShell, or without the PSScriptAnalyzer\nmodule, or a repo without a settings file, is INFO in `check`, never FAIL: the hooks stay\nquiet by design. A machine without PowerShell still gets the `SessionStart` probe's notice once per\nsession while the plugin is enabled.\n\nAction routing: no argument or `check` runs the check; `apply` runs the check first, then\noffers remediation guidance. Both 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 pre-commit check (`${CLAUDE_PLUGIN_ROOT}\u002Fgit-hooks\u002Fpowershell-check.sh`) and its\n`powershell-check.ps1` are the single source of truth for what the plugin requires and how it\nresolves things.\n\n**Read them first.** Probe what they actually do, don't recite this file. Then run the\nprobes via Bash and report a PASS\u002FFAIL\u002FINFO table 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` downgrades from\nFAIL to INFO. The hooks exit through their enabled-gate before probing anything, so a deliberately\ndisabled plugin is not broken. Report the probes informationally and note that re-enabling\nrestores the FAIL semantics. A missing `node` stays FAIL in either state: every hook row launches\n`node`, and the gate runs inside `hooks\u002Fexec-bash.mjs`.\n\n1. **Bash version.** Check against the floor, Bash 3.2 or newer (`${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fgit-hooks\u002Fcheck-lib.sh`).\n2. **`node`.** Probe via Bash: `command -v node`, then `node --version` when it resolves. FAIL if\n   absent: every handler in `hooks\u002Fhooks.json` launches through `node hooks\u002Fexec-bash.mjs`, so\n   without `node` the hook never starts and says nothing (README Requirements). The hook process\n   resolves bare `node` from the persisted Machine\u002FUser PATH, not from this shell. On Windows a\n   version manager can return a per-call path whose directory name contains a process id (fnm's\n   `fnm_multishells\\\u003Cpid>_\u003Ctimestamp>\\node`); that path is ephemeral, so FAIL when it is the only \u003C!-- portability-ok: Windows path, not a shell regex -->\n   hit, say so, and report the persisted resolution separately from\n   `[Environment]::GetEnvironmentVariable('Path','Machine')` and `'User'`. A non-ephemeral in-shell\n   hit is INFO beside that result, not a PASS by itself. `node` is the only FAIL-class\n   prerequisite.\n3. **`pwsh` (PowerShell 7+).** Probe read-only:\n   `pwsh -NoProfile -NonInteractive -Command '$PSVersionTable.PSVersion.ToString()'`. INFO,\n   not FAIL: the plugin probes `pwsh` only (never legacy `powershell.exe`) and the hooks stay\n   quiet when it is absent, while the `SessionStart` probe reports it once per session on every\n   host where the plugin is enabled. Report the version when present.\n4. **PSScriptAnalyzer module.** Probe **only when `pwsh` resolved** (chain behind step 3 so\n   the probe never errors on a pwsh-less box):\n   `pwsh -NoProfile -NonInteractive -Command 'if (Get-Module -ListAvailable -Name PSScriptAnalyzer) { \"present\" } else { \"absent\" }'`.\n   INFO, not FAIL: absent → an agent commit fails with the install command and a person's commit gets a notice, as the check-placement contract says; the Stop check stays silent. This probe is read-only. `Get-Module -ListAvailable` inspects, it does\n   not format, lint, or mutate.\n5. **`PSScriptAnalyzerSettings.psd1` opt-in.** INFO: the check runs **only on a file a\n   `PSScriptAnalyzerSettings.psd1` governs** (walking up from the file to the repo root,\n   stopping at the closest one). Absence\n   is the opt-out and is **by design, not a defect**. The plugin is inert until a repo adopts\n   a settings file. Report whether one exists and its location. When one exists, surface the\n   README **Trust model**: the settings file is executed-adjacent configuration. A\n   `CustomRulePath` it declares would load and run repository-supplied rule modules during\n   analysis, so the check skips such a settings state until the user approves its exact content (a marker\n   under the repository's git common directory in `powershell-format\u002Ftrust-approvals`, one\n   store for every session and commit; any settings or rule-module change revokes it). It carries the same trust as build\u002FCI configuration.\n6. **Hook toggle.** Report the effective `powershell_format_enabled` value:\n   `${user_config.powershell_format_enabled}` (unexpanded or empty means default `true`; any\n   value other than `true` disables the hooks). Also report `powershell_format_end_of_turn`:\n   `${user_config.powershell_format_end_of_turn}` (unexpanded or empty means the shipped default\n   `false`), as INFO: on, the Stop row checks the uncommitted changes once per turn; off, only the\n   git pre-commit entry runs.\n7. **Hook registration.** INFO: confirm the plugin is enabled for this project\n   (`\u002Fplugin` → Installed) rather than parsing settings files.\n8. **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\u002Fpowershell-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`,\n   `blocked`, `unsafe-path` or `stage-failed` per entry; `refused` means a locally edited copy or\n   dispatcher, which the `modified` decision covers, `blocked` that another tool owns the local\n   hooks directory, which the `hooks-path-owned` decision covers, `unsafe-path` the decision of\n   that name, and `stage-failed` that `git add` failed on a shared install: report it, since the\n   team would not receive the files. The entry's `powershell-check.ps1` is copied beside its\n   script.\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 8 does.\n\nThe entry rewrites: at commit it formats the staged PowerShell files and stages the result, so\ntell the user that a commit can change the files it contains, and that a partly staged\nPowerShell file is refused untouched. It runs Invoke-Formatter, which costs about a second per\ncommit that stages PowerShell. When a `PSScriptAnalyzerSettings.psd1` declares `CustomRulePath`,\nthe entry skips that state until the user approves it; tell the user the approval command only\nin the user's own channel, never in text an agent commit would print.\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 powershell-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 finding point at the resolution. This skill installs nothing:\n\n- missing `node` \u002F Bash: platform install instructions from the README Requirements section;\n  this skill never installs system packages.\n- `pwsh` absent (and PowerShell support is wanted): point at installing\n  [PowerShell 7+](https:\u002F\u002Flearn.microsoft.com\u002Fpowershell\u002Fscripting\u002Finstall\u002Finstalling-powershell);\n  this skill never installs it. If PowerShell is genuinely not applicable on this machine,\n  leaving it absent is a valid end state. The hooks stay quiet; the once-per-session probe\n  notice is the only signal, and `powershell_format_enabled` false or disabling the plugin stops it.\n- PSScriptAnalyzer module absent: `Install-Module PSScriptAnalyzer` is **user-scope guidance\n  only**. State the command for the reader to run; this skill never runs it.\n- no `PSScriptAnalyzerSettings.psd1` (and linting\u002Fformatting is wanted): explain that adding a\n  settings file at or below the project root opts the repo in, but this skill does not write\n  it. The settings file is the executed-adjacent trust boundary above; the choice and the edit\n  belong to the consumer.\n- toggle off: set `powershell_format_enabled` to `true` through Claude Code's native flow,\n  interactively with `\u002Fplugin configure powershell-format@\u003Cmarketplace>` or by a headless route,\n  as the marketplace's plugin-reconfiguration convention gives them in\n  [§ The routes](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#the-routes)\n  (it owns the verified-version record). Apply the scope and failure-signal caveats in its\n  [§ Caveats every setup skill's short form carries](..\u002F..\u002Freference\u002Fplugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).\n  Read both sections and print what they give, the fallback route, its behavior on an\n  already-installed plugin and the scope to pass included, rather than only naming them, and\n  leave out the verified-version record.\n  Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never\n  writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a\n  same-session `check` can still show the old value, and report the observed effective value,\n  never an unobserved change.\n\n  - **Pointer**: for the headless command's flags, how it reports a saved or refused value, and\n    when a saved value applies, fetch\n    [plugin CLI reference § plugin configure](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fcli-reference#plugin-configure)\n    live.\n\nAfter pointing at a remediation, re-run the relevant `check` probe live via Bash and report its\nactual result. Never claim resolved on the reader's report that they installed something.\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 or linter. `git commit` of a `.ps1`, `.psm1`, or `.psd1` file exercises the\n  installed pre-commit entry end-to-end. The `check` pwsh probes are read-only capability checks; they never format,\n  lint, or mutate any file.\n- Write the plugin cache, Claude Code user settings, or `pluginConfigs`. Nor the repository,\n  including `PSScriptAnalyzerSettings.psd1`. The `pwsh` runtime and the PSScriptAnalyzer module\n  are resolved from the environment, never installed, so remediation is guidance only.\n- Download tools during `check` beyond the read-only presence and version probes.\n",{"shell":24,"description":7,"allowed-tools":25,"argument-hint":30,"user-invocable":31,"disable-model-invocation":31},"bash",[26,27,28,29],"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-git-hooks [scope=local|shared]]]",true,"main","c68fcc0bf2eb1373a1c9ed172abdae781872e8d0","plugins\u002Fpowershell-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":42,"prompt":52,"zipAvailable":31},[43,46,49],{"tool":44,"command":45},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":47,"command":48},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill setup",{"tool":50,"command":51},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fpowershell-format\u002Fskills\u002Fsetup\u002FSKILL.md",[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fgit-hook-decisions.md","REFERENCE","参考文档",5152,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fpowershell-format\u002Fskills\u002Fsetup\u002Freference\u002Fgit-hook-decisions.md",[61,68,75,82,87,94],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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",[],[]]