Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By melodic-software Verified Orgv1.1.9MITIn 1 marketplace
Formats and lints staged PowerShell files at git pre-commit using your repo's PSScriptAnalyzerSettings.psd1, blocking commits on findings in lines they add. Needs PowerShell 7+ (pwsh), the PSScriptAnalyzer module and Node.js; the optional end-of-turn check is off by default.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
formatter, linter, pre-commit, git-hooks, psscriptanalyzer, pwsh, hook
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run the session hookspowershell_format_enabled
Turns the end-of-turn check and the session-start probe on or off. The git pre-commit entry is registered by /powershell-format:setup apply install-git-hooks and is not affected.
booleandefault true
Check PowerShell in uncommitted changes at turn endpowershell_format_end_of_turn
At the end of each turn, run the pre-commit PSScriptAnalyzer check over the lines changed since the last commit and hand any findings back so they are fixed before the turn ends, at most once per turn. Nothing is rewritten. Off by default.
booleandefault false
A Claude Code plugin that formats and lints PowerShell at git pre-commit. On every commit
that stages a .ps1, .psm1, or .psd1 file it runs
PSScriptAnalyzer's
Invoke-Formatter (formatting in place, then re-staging the result) and
Invoke-ScriptAnalyzer (linting), and blocks the commit only on a finding on a line the
commit adds. It covers every author, human or agent, once the entry is installed with
/powershell-format:setup apply install-git-hooks.
It uses your repository's own analyzer settings. It ships no rules of its own
and runs only when your repo has opted into a PSScriptAnalyzerSettings.psd1.
powershell-check. The staged PowerShell files are rewritten with
Invoke-Formatter and re-staged; the rewritten paths print on stdout. A file that is
partly staged is refused untouched (<path>: partly staged; format it or stage it fully, then commit), because re-staging a rewrite would stage its unstaged hunks too. Findings
print as <path>:<line>: [<severity>] <rule>: <message> on stderr and block the commit
only when the line is one the commit adds.powershell_format_end_of_turn on, a Stop row runs the
same check over the uncommitted changes, without rewriting, and hands the findings back
once per turn. Off by default.PSScriptAnalyzerSettings.psd1 governs, found by walking up from the file to the
repository root and stopping at the closest one, and the entry passes that file to the
analyzer explicitly. A repo without a settings file is left untouched rather than
formatted and linted with PSScriptAnalyzer's built-in defaults. A settings file that
declares CustomRulePath is additionally gated on explicit approval. See
Trust model.
Pointer: when deciding how PSScriptAnalyzer finds settings on its own, fetch
Settings Support in ScriptAnalyzer
live..githooks/ is never rewritten.pwsh or PSScriptAnalyzer module fails an agent's commit with
the install command and a one-line skip key (git -c checks.skipmissing=pwsh commit ...,
or PSScriptAnalyzer); a person's commit gets a one-line notice and proceeds. pwsh is
resolved from PATH and is never downloaded.The opt-in PSScriptAnalyzerSettings.psd1 is executed-adjacent configuration,
not inert data. A settings file may declare a CustomRulePath naming PowerShell rule
modules, and this plugin treats every module it names as code the analyzer may run.
The entry therefore never runs the
analyzer under such a settings file without an explicit approval: it skips the
run and prints a trust-gate notice. A person's notice names the settings file and the approval marker to
create; an agent commit's notice says the run was skipped and that approval is
yours, without the command that grants it. To approve, review the settings file and every rule module it
references. Treat them with the same trust you give your build and CI
configuration, then create the marker directory using the exact mkdir -p
command your notice carries. The marker lives under the repository's git common
directory, in powershell-format/trust-approvals, so one approval covers the end-of-turn
row, an agent's commit and your own. The marker is content-addressed over the
repository, the settings file, every file reachable under each declared
CustomRulePath entry (recursively for directories), and every repository
file those files reference by string literal (transitively, bounded), so a
change to the settings, to any referenced rule module, or to a file a rule
module loads, including a branch switch that swaps module bytes under an
unchanged settings file, revokes the approval and re-gates the run.
Detection uses PowerShell's restricted data-file parser, not a textual
scan. A settings file that parser cannot read is treated as code-loading
and stays gated. A CustomRulePath entry that does not resolve to
hashable content leaves the state unverifiable with no approval route.
When no approval store can be found the gate fails closed and the
run stays skipped. A settings file without
CustomRulePath is declarative rule configuration and runs immediately.
7-day copy clicks
npx claudepluginhub melodic-software/claude-code-plugins --plugin powershell-formatBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground