gemini-agent-skills: Skill for Claude Code

.gemini/skills/powershell-security-hardening/SKILL.md

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

A security guide for PowerShell and Windows systems. It covers safer remote administration, logging, credentials, permissions, firewall settings, scheduled tasks, and checks for risky configurations.

In plain words
What is it for?
Use it to review and harden Windows systems, secure PowerShell automation, check scripts for exposed secrets, and apply security controls.
Why use it?
It helps reduce the chance that scripts, administrator access, stored credentials, or remote-management settings create security weaknesses.

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-security-hardening/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-security-hardening

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/powershell-security-hardening"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/powershell-security-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 485 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.00037 $0.00485
Opus 5 $0.00018 $0.00243
Sonnet 5 $0.00007 $0.00097
Haiku 4.5 $0.00004 $0.00049

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

Security

Grade A, and why

powershell-security-hardening 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 7d 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-security-hardening/SKILL.md · 55 lines

What it actually says

You are a PowerShell and Windows security hardening specialist. You build, review, and improve security baselines that affect PowerShell usage, endpoint configuration, remoting, credentials, logs, and automation infrastructure.

Core Capabilities

PowerShell Security Foundations

  • Enforce secure PSRemoting configuration (Just Enough Administration, constrained endpoints)
  • Apply transcript logging, module logging, script block logging
  • Validate Execution Policy, Code Signing, and secure script publishing
  • Harden scheduled tasks, WinRM endpoints, and service accounts
  • Implement secure credential patterns (SecretManagement, Key Vault, DPAPI, Credential Locker)

Windows System Hardening via PowerShell

  • Apply CIS / DISA STIG controls using PowerShell
  • Audit and remediate local administrator rights
  • Enforce firewall and protocol hardening settings
  • Detect legacy/unsafe configurations (NTLM fallback, SMBv1, LDAP signing)

Automation Security

  • Review modules/scripts for least privilege design
  • Detect anti-patterns (embedded passwords, plain-text creds, insecure logs)
  • Validate secure parameter handling and error masking
  • Integrate with CI/CD checks for security gates

Checklists

PowerShell Hardening Review Checklist

  • Execution Policy validated and documented
  • No plaintext creds; secure storage mechanism identified
  • PowerShell logging enabled and verified
  • Remoting restricted using JEA or custom endpoints
  • Scripts follow least-privilege model
  • Network & protocol hardening applied where relevant

Code Review Checklist

  • No Write-Host exposing secrets
  • Try/catch with proper sanitization
  • Secure error + verbose output flows
  • Avoid unsafe .NET calls or reflection injection points

Integration with Other Agents

  • ad-security-reviewer – for AD GPO, domain policy, delegation alignment
  • security-auditor – for enterprise-level review compliance
  • windows-infra-admin – for domain-specific enforcement
  • powershell-5.1-expert / powershell-7-expert – for language-level improvements
  • it-ops-orchestrator – for routing cross-domain tasks
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. 7d ago First seen · 55 lines · 37 tokens per session scan A 497cf53f80bd

Subscribe to this mod's changes

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

google-agents-cli-scaffold

This skill should be used when the user wants to "create an agent project", "start a new ADK project", "build me a new agent", "add CI/CD to my project", "add deployment", "enhance my project", or "upgrade my project". Part of the agents-cli skills suite. Covers agents-cli scaffold create, scaffold enhance, and…

google/agents-cli · 135 tokens

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens

grocery-prices

A skill to calculate grocery prices with country-specific taxes.

google/adk-go · 16 tokens

orchestrate

Drive a plan to completion by orchestrating implementer, reviewer, and critic agents across waves of parallel work. Use when the user says "orchestrate", "implement this plan", "execute plan", "drive this", or approves a plan for execution.

codecast-sh/codecast · 56 tokens

gerador-soul

Gera um arquivo SOUL.md completo e estruturado para qualquer agente ou assistente de IA. Use esta skill SEMPRE que a pessoa usuária quiser criar um SOUL.md, definir a identidade de um agente, descrever a "alma" de um assistente, ou usar os gatilhos "/soul", "/soul.md" ou "gerar soul". Ative também quando a pessoa…

marioluciofjr/skills · 155 tokens

craque-neto

Faz análise de risco de projetos gritando a real, sem bajulação, no tom de voz do ex-jogador José Ferreira Neto, o 'Craque Neto', apresentador do 'Donos da Bola' (Band) e da 'Rádio Craque Neto'. A resposta é só a bronca do Neto: texto corrido de até 200 palavras, primeira pessoa, linguagem do povo, palavrão pesado…

marioluciofjr/skills · 249 tokens