powershell

powershell is a skill for Claude Code, Codex from JanDeDobbeleer/oh-my-posh. It costs 25 tokens per session (2,040 once invoked), scanned A, original, MIT.

Coding conventions for PowerShell, a command-line shell and scripting language from Microsoft.

In plain words
What is it for?
Use it when writing or reviewing PowerShell scripts and modules, especially their commands, parameters, variables, and aliases.
Why use it?
It helps scripts use familiar command names, parameter styles, and variable conventions, making them easier to understand and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when writing or reviewing PowerShell scripts and modules, especially their commands, parameters, variables, and aliases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jandedobbeleer/oh-my-posh/powershell
About the project

oh-my-posh is a customizable prompt theme engine that renders command-line prompts across shells and platforms. Developers and terminal users use it to configure primary, secondary, right, and transient prompts in shells such as PowerShell, zsh, Bash, and cmd. The catalogue entries provide skills, instructions, agents, and an MCP integration for working with oh-my-posh.

JanDeDobbeleer/oh-my-posh · 23,433 stars · on GitHub · ohmyposh.dev

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 JanDeDobbeleer/oh-my-posh --skill powershell
Clone the repo
git clone --depth 1 https://github.com/JanDeDobbeleer/oh-my-posh

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/powershell.svg)](https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/powershell)
Your own site
<a href="https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/powershell"><img src="https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/powershell.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,040 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. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00025 $0.02040
Opus 5 $0.00013 $0.01020
Sonnet 5 $0.00005 $0.00408
Haiku 4.5 $0.00003 $0.00204

Measured 8d ago against content hash cedf9f49815c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

powershell 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 8d 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.

.agents/skills/powershell/SKILL.md · 335 lines

How it starts

The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PowerShell Cmdlet Development Guidelines

Naming Conventions

  • Verb-Noun Format:

    • Use approved PowerShell verbs (Get-Verb)
    • Use singular nouns
    • PascalCase for both verb and noun
    • Avoid special characters and spaces
  • Parameter Names:

    • Use PascalCase
    • Choose clear, descriptive names
    • Use singular form unless always multiple
    • Follow PowerShell standard names
  • Variable Names:

    • Use PascalCase for public variables
    • Use camelCase for private variables
    • Avoid abbreviations
    • Use descriptive names
  • Alias Avoidance:

    • Use full cmdlet names
    • Avoid using aliases in scripts (e.g., use Get-ChildItem instead of gci)
    • Document any custom aliases
    • Use full parameter names

Example

function Get-UserProfile {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [string]$Username,

        [Parameter()]
        [ValidateSet('Basic', 'Detailed')]
        [string]$ProfileType = 'Basic'
    )

    process {
        # Logic here
    }
}

Parameter Design

  • Standard Parameters:

    • Use common parameter names (Path, Name, Force)
    • Follow built-in cmdlet conventions
    • Use aliases for specialized terms
    • Document parameter purpose
  • Parameter Names:

    • Use singular form unless always multiple
    • Choose clear, descriptive names
    • Follow PowerShell conventions
    • Use PascalCase formatting
  • Type Selection:

    • Use common .NET types
    • Implement proper validation
    • Consider ValidateSet for limited options
    • Enable tab completion where possible
  • Switch Parameters:

    • Use [switch] for boolean flags
    • Avoid $true/$false parameters
    • Default to $false when omitted
    • Use clear action names

Example

function Set-ResourceConfiguration {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [string]$Name,

        [Parameter()]
        [ValidateSet('Dev', 'Test', 'Prod')]
        [string]$Environment = 'Dev',

        [Parameter()]
        [switch]$Force,

        [Parameter()]
        [ValidateNotNullOrEmpty()]
        [string[]]$Tags
    )

    process {
        # Logic here
    }
}

Read the full file on GitHub · 335 lines

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. 8d ago First seen · 335 lines · 25 tokens per session scan A cedf9f49815c

Subscribe to this mod's changes

powershell is a skill published in the GitHub repository JanDeDobbeleer/oh-my-posh (23,433 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 2,040 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

golang-style

Go conventions specific to this author. Use before writing or editing any Go (.go) file.

fredrikaverpil/dotfiles · 23 tokens

spec-init

A documentation-first workflow for starting or improving a software project’s specifications and development records.

legeling/PromptHub · 73 tokens

release-sync

PromptHub release update skill. Use for /update-readme, version bumps, changelog updates, website sync, GUI screenshot/doc refresh, and multilingual release/documentation alignment.

legeling/PromptHub · 38 tokens

scaffold-go

Scaffold a complete Go project with CI/CD, release pipeline, Makefile, sr.yaml, .envrc, and standard files. Uses go toolchain and make as the native build system. Loads on top of scaffold-project (run that first for cross-language standard files). Use when creating a new Go CLI, service, or module, or when the user…

urmzd/dotfiles · 116 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

pinchtab-stealth-score

Run the PinchTab stealth-score sweep against 15 bot-detection / fingerprint sites (sannysoft, rebrowser, deviceandbrowserinfo, iphey, whoer, browserscan, pixelscan, fingerprint-scan, incolumitas, fvision, amiunique, browserleaks, creepjs, coveryourtracks, fingerprint-demo). Starts a Docker PinchTab container per…

pinchtab/pinchtab · 168 tokens