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.

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.

agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/powershell
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00019 $0.03024
Sonnet 5 $0.00008 $0.01210
Haiku 4.5 $0.00004 $0.00605

Measured 6d ago against content hash 6ab0dd67f856, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 1mo ago), licensed MIT. It adds 39 tokens to every session and 6,049 once invoked, about $0.0002 per session on Opus 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

Skill "shell-scripting" from chaterm/terminal-skills, covering shell 脚本编写, 概述, 基础语法, 脚本结构 and 脚本描述.

chaterm/terminal-skills · 13 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

robotgo-flow

Use when building YAML-driven Windows RPA workflows in Go — step-by-step desktop automation with image template matching, interactive recording mode, hotkey triggers. RobotGo-Flow: YAML-based Windows RPA framework built on RobotGo.

znlgis/opengis-skills · 50 tokens

Binary Ninja Scripting

Write and execute Binary Ninja Python scripts — full API reference included.

buzzer-re/Rikugan · 17 tokens

shell-scripting

Use this skill when writing bash or zsh scripts, parsing arguments, handling errors, or automating CLI workflows. Triggers on bash scripting, shell scripts, argument parsing, process substitution, here documents, signal trapping, exit codes, and any task requiring portable shell script development.

alibaba/anolisa · 60 tokens

analyzing-windows-prefetch-with-python

Use when parse Windows Prefetch files using the windowsprefetch Python library to reconstruct application execution history, detect renamed or masquerading binaries, and identify suspicious program execution patterns. Use when working with analyzing windows prefetch with python.

oyi77/1ai-skills · 56 tokens