Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pledgeandgrow/pledge-skills --skill powershellgit clone --depth 1 https://github.com/pledgeandgrow/pledge-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/powershell)<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/powershell"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/powershell/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/powershell"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/powershell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.06049 |
| Opus 5.5 | $0.00016 | $0.02420 |
| Sonnet 5.5 | $0.00008 | $0.01210 |
| Haiku 4.5 | $0.00004 | $0.00605 |
Grade A, and why
powershell-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 309 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PowerShell Skill
PowerShell — Task-based command-line shell and scripting language for system administration. Version: PowerShell 7.6 (latest) + Windows PowerShell 5.1 | Docs: learn.microsoft.com/powershell
Quick Reference
| Topic | File | Sections |
|---|---|---|
| Getting Started | getting-started.md |
What is PowerShell, installation, versions, execution policy, console/ISE/VS Code, Get-Help, $PSVersionTable |
| Language | language.md |
Variables, arrays, hashtables, strings, operators, control flow, functions, classes, error handling, about_ topics, scope |
| Cmdlets & Modules | cmdlets-modules.md |
Core modules, cmdlet reference, pipeline, providers, PSDrives, PSResourceGet, PowerShell Gallery, utility modules |
| Remoting & Security | remoting-security.md |
WinRM/SSH remoting, sessions, CIM/WMI, JEA, execution policies, SecureString, DSC, security features |
Core Concepts
- Cmdlet: Compiled .NET command following Verb-Noun naming (e.g.,
Get-Process,Set-Item) - Module: Package containing cmdlets, providers, functions, aliases (e.g.,
Microsoft.PowerShell.Management) - Pipeline: Object-based pipeline passing .NET objects between commands
- Provider: Access data stores like filesystem, registry, certificate store as drives (PSDrive)
- PSDrive: Virtual drive mapped to a provider path (e.g.,
HKLM:\,Cert:\,Env:\) - Runspace: Operating environment for PowerShell commands
- Session (PSSession): Persistent remote PowerShell connection
- DSC: Desired State Configuration for declarative infrastructure management
- Execution Policy: Controls script execution (Restricted, RemoteSigned, Unrestricted, AllSigned, Bypass)
PowerShell Versions
| Version | Runtime | Status |
|---|---|---|
| PowerShell 7.6 | .NET 9 | Current (cross-platform) |
| PowerShell 7.4/7.5 | .NET 8 | Supported (LTS) |
| Windows PowerShell 5.1 | .NET Framework 4.x | Built into Windows (maintenance only) |
| PowerShell 6.x | .NET Core 2.x | End of life |
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 309 lines · 39 tokens per session scan A 6ab0dd67f856
powershell-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 3mo ago), licensed MIT. It adds 39 tokens to every session and 6,049 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
shell-scripting
A guide to writing Bash shell scripts, which automate command-line tasks on Linux and similar systems. It covers variables, arrays, conditions, loops, functions, and safer script structure.
wsl-bash-crlf-or-tempfile
When a Windows shell (PowerShell/cmd) feeds a bash script into WSL, CRLF line endings can corrupt the first shell builtin; force LF or pipe via a temp file.
shell-scripting
Shell scripting expert for Bash, POSIX compliance, error handling, and automation.
powershell-expert
Develop PowerShell scripts, tools, modules, and GUIs following Microsoft best practices. Use when writing PowerShell code, creating Windows Forms/WPF interfaces, working with PowerShell Gallery modules, or needing cmdlet/module recommendations. Covers script development, parameter design, pipeline handling, error…
segment-docs
Reference mapping between Oh My Posh Go segment source code and MDX documentation. Use when creating, updating, or auditing segment documentation, or when reading segment Go code and needing to understand how code constructs map to user-facing options, template properties, and type representations in docs.
golang
Go conventions for this project that differ from common Go practice. Apply when writing, reviewing, or refactoring any Go source or test file.