windows-powershell-rules

Community

PowerShell command execution rules.

Authormasakinihirota
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures that AI agents execute commands correctly within a Windows PowerShell environment, preventing errors caused by incompatible Unix commands and promoting the use of native PowerShell cmdlets or provided tools.

Core Features & Use Cases

  • Enforces PowerShell Native Commands: Strictly prohibits the use of Unix-like commands (e.g., rm, ls, grep) and mandates the use of their PowerShell equivalents (e.g., Remove-Item, Get-ChildItem, Select-String).
  • Prioritizes Agent Tools: Directs agents to use built-in tools like grep_search, list_dir, and view_file over direct command-line execution whenever possible.
  • Handles Encoding: Provides guidance on setting UTF8 encoding for command output to prevent garbled text, especially with Japanese characters.
  • Use Case: An AI agent needs to list files in a directory and then search for a specific string within a file. Instead of using ls and grep, it should use the list_dir tool and the grep_search tool, respectively, to ensure compatibility and reliability in the Windows PowerShell environment.

Quick Start

Use the windows-powershell-rules skill to ensure all commands are executed using native PowerShell cmdlets or provided agent tools.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: windows-powershell-rules
Download link: https://github.com/masakinihirota/vns-masakinihirota-better-old/archive/main.zip#windows-powershell-rules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.