powershell-windows

powershell-windows is a skill for Claude Code, Codex from Desko77/cursor-1c-skills. It costs 30 tokens per session (803 once invoked), scanned A, original, MIT.

A set of PowerShell rules for running commands on Windows. PowerShell is Windows' command-line scripting environment, and these rules cover paths, Docker, HTTP requests, delays, and JSON.

In plain words
What is it for?
Run shell commands, Docker operations, web requests, process checks, and JSON handling correctly in Windows PowerShell.
Why use it?
It prevents common command and syntax errors when an agent operates in a Windows environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/desko77/cursor-1c-skills/powershell-windows
Any agent
npx skills add Desko77/cursor-1c-skills --skill powershell-windows
Clone the repo
git clone --depth 1 https://github.com/Desko77/cursor-1c-skills

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-windows

README.md
[![agentmods](https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/powershell-windows.svg)](https://agentmods.dev/skills/desko77/cursor-1c-skills/powershell-windows)
Your own site
<a href="https://agentmods.dev/skills/desko77/cursor-1c-skills/powershell-windows"><img src="https://agentmods.dev/badge/skills/desko77/cursor-1c-skills/powershell-windows.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 803 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00030 $0.00803
Opus 5 $0.00015 $0.00402
Sonnet 5 $0.00006 $0.00161
Haiku 4.5 $0.00003 $0.00080

Measured 2d ago against content hash 0e87fd9ee4d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

powershell-windows scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Wrong**: `curl -s http://localhost:9090/status`
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/powershell-windows/SKILL.md · 109 lines

How it starts

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

PowerShell Windows - Scripting Rules

Essential rules for correct PowerShell usage on Windows. Follow these rules to avoid common errors when executing shell commands.

Core Principles

1. Command Separation

  • Wrong: cd "path" && command (bash syntax)
  • Correct: cd "path"; command (PowerShell syntax)

2. Path Quoting

  • Always use double quotes for paths with spaces:
cd "D:\My Projects\MyApp"

3. Script Execution

  • For .bat/.cmd files:
./gradlew clean build
.\gradlew.bat clean build

4. Docker Commands

  • Specify full path to docker-compose files:
docker-compose -f "D:\My Projects\app\docker-compose.yml" up -d

5. HTTP Requests

  • Wrong: curl -s http://localhost:9090/status
  • Correct:
Invoke-WebRequest -Uri "http://localhost:9090/status" -UseBasicParsing

6. Waiting/Delays

  • Wrong: timeout 10
  • Correct:
Start-Sleep -Seconds 10

7. JSON Handling

  • JSON parsing:
$response = Invoke-WebRequest -Uri "http://localhost:9090/status" -UseBasicParsing
$json = $response.Content | ConvertFrom-Json
$json | ConvertTo-Json -Depth 3

8. Process Checking

  • Process search:
Get-Process -Name "java" -ErrorAction SilentlyContinue

9. Docker Operations

  • Stop containers:
docker-compose -f "path\to\file.yml" down
  • Build images:
docker-compose -f "path\to\file.yml" build --no-cache

10. Error Handling

  • Ignore errors:
Get-Process -Name "java" -ErrorAction SilentlyContinue

Common Errors and Fixes

Error Cause Fix
&& is not recognized Using bash syntax Replace && with ;
curl not found curl not installed on Windows Use Invoke-WebRequest
timeout not found timeout not supported Use Start-Sleep
Path not found Missing quotes on spaced path Wrap path in double quotes

Read the full file on GitHub · 109 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. 2d ago First seen · 109 lines · 30 tokens per session scan A 0e87fd9ee4d6

Subscribe to this mod's changes

powershell-windows is a skill published in the GitHub repository Desko77/cursor-1c-skills (55 stars, last pushed 3d ago), licensed MIT. It adds 30 tokens to every session and 803 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

powershell-windows

PowerShell scripting rules for Windows environment. Use when running shell commands, Docker operations, or HTTP requests on Windows PowerShell.

Desko77/claude-code-skills-1c · 30 tokens

1c-form-compile

Компиляция управляемой формы 1С из JSON-определения или из метаданных объекта. Используй когда нужно создать форму с нуля по описанию элементов или сгенерировать типовую форму.

Desko77/claude-code-skills-1c · 50 tokens

1c-form-patterns

Справочник паттернов компоновки управляемых форм 1С. Используй как справочник при проектировании форм - архетипы, конвенции, продвинутые приемы.

Desko77/claude-code-skills-1c · 48 tokens

1c-bsp-registration

Добавить функцию регистрации БСП (СведенияОВнешнейОбработке) в модуль объекта обработки.

Desko77/claude-code-skills-1c · 27 tokens

docx-from-sample

Создать новый DOCX в оформлении готового образца: взять чужой документ как шаблон стилей и наполнить своими данными, сохранив титул, заголовки с нумерацией, стили таблиц, ширины столбцов, заливку шапок, колонтитулы, книжные и альбомные секции. Используй когда просят сделать документ по образцу, в том же формате, как в…

Desko77/claude-code-skills-1c · 115 tokens

1c-cfe-patch-method

Перехватчики методов в расширении 1С (CFE). Используй когда нужно перехватить метод заимствованного объекта - код до, после или вместо оригинального - либо свериться с оригиналом после обновления основной конфигурации.

Desko77/claude-code-skills-1c · 61 tokens