chaggle/dsh-powershell-check
chaggle★ 1JavaScriptLast synced: 2026-08-15
Native DeepSeek Harness plugin: gates pwsh tool calls against PowerShell pitfalls via the official tools/pre-execute interception point, bundles the powershell-check skill
README excerpt
@chaggle/dsh-powershell-check A native DeepSeek Harness plugin that gates every pwsh tool call against the PowerShell pitfalls documented in the blog post PowerShell 实战踩坑大全 (GBK console mojibake, $var: parsing, PS 5.1 ternary, double-quoted variable expansion, JS escaping, Start-Process quoting and sandbox traps, -FeatureName arrays, DISM verbs, RestoreHealth source versions, CDN downloads, npm.cmd suffix, && / chains), and bundles the powershell-check skill. Installable as a profile plugin: dsh plugin --profile add @chaggle/dsh-powershell-check (or mount the row directly — see Install). Features - Automatic gate — subscribes to the official tools/pre-execute interception point; every pwsh call is statically checked before execution. Blocking violations (R2–R11) return a deny whose reason IS the fix guidance; the advisory R1 passes through. warn mode only logs. - Bundled skill — exposes powershell-check through ctx.skills.registerProvider (the dsh-skill-badge pattern), visible and loadable in every session catalog. - Bilingual — rule text, CLI output ( --lang en zh ), deny reasons, and docs ship in English and Simplified Chinese. - Single rule source — the rules engine ( src/checke…
View full README on GitHub →