gemini-agent-skills: Skill for Claude Code

.gemini/skills/powershell-5.1-expert/SKILL.md

powershell-5.1-expert is a skill for Claude Code, Gemini CLI from saeed-vayghan/gemini-agent-skills. It costs 48 tokens per session (495 once invoked), scanned A, original, MIT.

A guide to Windows PowerShell 5.1 automation for older Windows and enterprise systems. It covers Active Directory, DNS, DHCP, Group Policy, Windows servers, and the older .NET Framework.

In plain words
What is it for?
Use it to automate directory objects, DNS records, DHCP scopes, Group Policy, and Windows servers with validation, dry runs, logging, and rollback planning.
Why use it?
It helps scripts remain compatible with legacy environments that cannot use PowerShell 7 features or newer modules.

Skill for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: allowed-tools in frontmatter, but also installed under .gemini/.

This is saeed-vayghan/gemini-agent-skills's own configuration. It tells Claude Code and Gemini CLI how to work on gemini-agent-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gemini-agent-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saeed-vayghan/gemini-agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saeed-vayghan/gemini-agent-skills/master/.gemini/skills/powershell-5.1-expert/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/saeed-vayghan/gemini-agent-skills

Made for: Claude Code, Gemini CLI.

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-5.1-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/powershell-5.1-expert/github.svg)](https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/powershell-5.1-expert)
Your own site
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/powershell-5.1-expert"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/powershell-5.1-expert/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-5.1-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/powershell-5.1-expert"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/powershell-5.1-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 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.00048 $0.00495
Opus 5 $0.00024 $0.00247
Sonnet 5 $0.00010 $0.00099
Haiku 4.5 $0.00005 $0.00049

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

Security

Grade A, and why

powershell-5.1-expert 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.

.gemini/skills/powershell-5.1-expert/SKILL.md · 60 lines

What it actually says

You are a PowerShell 5.1 specialist focused on Windows-only automation. You ensure scripts and modules operate safely in mixed-version, legacy environments while maintaining strong compatibility with enterprise infrastructure.

Core Capabilities

Windows PowerShell 5.1 Specialization

  • Strong mastery of .NET Framework APIs and legacy type accelerators
  • Deep experience with RSAT modules:
    • ActiveDirectory
    • DnsServer
    • DhcpServer
    • GroupPolicy
  • Compatible scripting patterns for older Windows Server versions

Enterprise Automation

  • Build reliable scripts for AD object management, DNS record updates, DHCP scope ops
  • Design safe automation workflows (pre-checks, dry-run, rollback)
  • Implement verbose logging, transcripts, and audit-friendly execution

Compatibility + Stability

  • Ensure backward compatibility with older modules and APIs
  • Avoid PowerShell 7+–exclusive cmdlets, syntax, or behaviors
  • Provide safe polyfills or version checks for cross-environment workflows

Checklists

Script Review Checklist

  • [CmdletBinding()] applied
  • Parameters validated with types + attributes
  • -WhatIf/-Confirm supported where appropriate
  • RSAT module availability checked
  • Error handling with try/catch and friendly error messages
  • Logging and verbose output included

Environment Safety Checklist

  • Domain membership validated
  • Permissions and roles checked
  • Changes preceded by read-only Get-* queries
  • Backups performed (DNS zone exports, GPO backups, etc.)

Example Use Cases

  • “Create AD users from CSV and safely stage them before activation”
  • “Automate DHCP reservations for new workstations”
  • “Update DNS records based on inventory data”
  • “Bulk-adjust GPO links across OUs with rollback support”

Integration with Other Agents

  • windows-infra-admin – for infra-level safety and change planning
  • ad-security-reviewer – for AD posture validation during automation
  • powershell-module-architect – for module refactoring and structure
  • it-ops-orchestrator – for multi-domain coordination
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 · 60 lines · 48 tokens per session scan A 9780d8a4a5fc

Subscribe to this mod's changes

powershell-5.1-expert is a skill published in the GitHub repository saeed-vayghan/gemini-agent-skills (34 stars, last pushed 7mo ago), licensed MIT. It adds 48 tokens to every session and 495 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-09-03.

Related

Other skills, from other repositories

adk-sample-creator

Author or rework a runnable example under examples/ in the ADK Go repository — the directory, main.go, the README with its Mermaid diagram and real transcript, and the index row. Use when adding a sample for a feature (workflow graph, tool, registry client, model backend, server), when asked to "add an example" for…

google/adk-go · 94 tokens

google-agents-cli-adk-code

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent Development Kit) Python API patterns and code examples. Part of the Google ADK skills suite. It provides a quick reference…

google/agents-cli · 129 tokens

app-intents

Writes and reviews Swift App Intents code that exposes app actions and data to Siri, Shortcuts, Spotlight, widgets, Control Center, and Apple Intelligence. Use when adding AppIntent, AppEntity, OpenIntent, AppShortcutsProvider, EntityQuery, Focus Filters, AssistantEntity/AssistantIntent schemas, on-screen awareness…

n0an/App-Intents-Agent-Skill · 99 tokens

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

beel-collab/presets.dev · 30 tokens

go-rod-master

Comprehensive guide for browser automation and web scraping with go-rod (Chrome DevTools Protocol) including stealth anti-bot-detection patterns.

beel-collab/presets.dev · 28 tokens

fp-ts-pragmatic

A practical, jargon-free guide to fp-ts functional programming - the 80/20 approach that gets results without the academic overhead. Use when writing TypeScript with fp-ts library.

beel-collab/presets.dev · 36 tokens