powershell-docs

powershell-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 39 tokens per session (6,049 once invoked), scanned A, original, MIT.

A reference guide to PowerShell 7.6 and Windows PowerShell 5.1, command-line shells and scripting languages commonly used for Windows administration. It covers variables, functions, modules, pipelines, remote access, and security settings.

In plain words
What is it for?
Use it to write scripts, run commands through the object-based pipeline, manage modules and processes, automate configuration, connect to remote systems, and handle execution or remoting security.
Why use it?
It explains both the language and the system-management commands needed to automate tasks on Windows and connected machines.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write scripts, run commands through the object-based pipeline, manage modules and processes, automate configuration, connect to remote systems, and handle execution or remoting security.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/powershell
Install

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.

Any agent
npx skills add pledgeandgrow/pledge-skills --skill powershell
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for powershell-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/powershell/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/powershell)
Your own site
<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.

agentmods 80×15 button for powershell-docs

Your own site · 80×15
<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>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,049 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 6ab0dd67f856, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/powershell/SKILL.md · 309 lines

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

Read the full file on GitHub · 309 lines

Files

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.

Changes

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.

  1. 1mo ago First seen · 309 lines · 39 tokens per session scan A 6ab0dd67f856

Subscribe to this mod's changes

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.

Related

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.

chaterm/terminal-skills · 13 tokens

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.

chen3feng/agent-skills · 48 tokens

shell-scripting

Shell scripting expert for Bash, POSIX compliance, error handling, and automation.

librefang/librefang-registry · 19 tokens

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…

zebbern/termstack · 84 tokens

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.

JanDeDobbeleer/oh-my-posh · 59 tokens

golang

Go conventions for this project that differ from common Go practice. Apply when writing, reviewing, or refactoring any Go source or test file.

JanDeDobbeleer/oh-my-posh · 31 tokens