Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Windows Security Operational Patterns

ASecurity

Windows-specific patterns, security practices, and operational traps that cause silent failures.

19 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentsrustgoshellsecurity

Works with

cli

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill windows-security-operational-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Windows Security Operational Patterns?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Windows Security Operational Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-windows-security-operational-patterns/badge)](https://www.skillsdirectory.com/skills/rondoflow-windows-security-operational-patterns)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: windows-security-operational-patterns
description: "Windows-specific patterns, security practices, and operational traps that cause silent failures."
category: "Community"
author: community
version: "1.0.0"
icon: puzzle
---

## Credential Management

- Never hardcode passwords in scripts — use Windows Credential Manager:
  ```powershell
  # Store
  cmdkey /generic:"MyService" /user:"admin" /pass:"secret"
  # Retrieve in script
  $cred = Get-StoredCredential -Target "MyService"
  ```
- For scripts, use `Get-Credential` and export securely:
  ```powershell
  $cred | Export-Clixml -Path "cred.xml"  # Encrypted to current user/machine
  $cred = Import-Clixml -Path "cred.xml"
  ```

## Silent Failures

- Windows Defender silently quarantines downloaded scripts/executables — check quarantine if script disappears
- Group Policy overrides local settings silently — `gpresult /r` to see what's actually applied
- Antivirus real-time scanning blocks file operations intermittently — add exclusions for build/automation folders
- PowerShell `-ErrorAction SilentlyContinue` hides problems — use `Stop` and handle explicitly

## Symbolic Links

- Creating symlinks requires admin OR SeCreateSymbolicLinkPrivilege — regular users fail silently
- Enable Developer Mode for symlinks without admin: Settings → For Developers → Developer Mode
- `mklink` is CMD-only, PowerShell uses `New-Item -ItemType SymbolicLink`

## Script Signing

- Unsigned scripts fail on restricted machines with confusing errors — sign for production:
  ```powershell
  $cert = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert
  Set-AuthenticodeSignature -FilePath script.ps1 -Certificate $cert
  ```
- AllSigned policy requires ALL scripts signed including profile.ps1

## Operational Safety

- Always `-WhatIf` first on destructive operations — `Remove-Item -Recurse -WhatIf`
- `Start-Transcript` for audit trail — forgotten until incident investigation
- NTFS permissions: `icacls` for CLI, but inheritance rules are non-obvious — test changes on copy first

## WinRM Remoting

- Enable correctly: `Enable-PSRemoting -Force` isn't enough on workgroups
- Workgroup machines need TrustedHosts: `Set-Item WSMan:\localhost\Client\TrustedHosts -Value "server1,server2"`
- HTTPS remoting needs certificate setup — HTTP sends credentials readable on network

## Event Logging

- Scripts should log to Windows Event Log for centralized monitoring:
  ```powershell
  New-EventLog -LogName Application -Source "MyScript" -ErrorAction SilentlyContinue
  Write-EventLog -LogName Application -Source "MyScript" -EventId 1000 -Message "Started"
  ```
- Custom event sources require admin to create — create during install, not runtime

## File Locking

- Windows locks files aggressively — test file access before operations:
  ```powershell
  try { [IO.File]::OpenWrite($path).Close(); $true } catch { $false }
  ```
- Scheduled tasks writing to same file as user → conflicts. Use unique temp files and atomic rename

## Temp File Hygiene

- `$env:TEMP` fills silently — scripts should cleanup with `try/finally`:
  ```powershell
  $tmp = New-TemporaryFile
  try { ... } finally { Remove-Item $tmp -Force }
  ```
- Orphaned temp files accumulate across reboots — unlike Linux /tmp

## Service Account Gotchas

- Services run in different user context — `$env:USERPROFILE` points to system profile, not user's
- Network access from SYSTEM account uses machine credentials — may fail where user succeeds
- Mapped drives don't exist for services — use UNC paths `\\server\share`

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →