Skip to content
Development
Skill

/powershell-windows

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

From plugin
ai-rules-1c
55032 skills13 agents45 commands

Claude Code

$ npx -y skills add comol/ai_rules_1c --skill powershell-windows --agent claude-code

SKILL.md

powershell-windows.SKILL.md
name: powershell-windows
description: "PowerShell scripting rules for Windows environment. Use when running shell commands, Docker operations, or HTTP requests on Windows PowerShell."

PowerShell Windows — Scripting Rules

Core Principles

1. Command Separation

  • Windows PowerShell 5.1 does not support `&&`; PowerShell 7 does.
  • For independent commands use `;`: `Set-Location "path"; Get-ChildItem`.
  • For dependent native commands preserve short-circuit semantics explicitly:
  git add .
  if ($LASTEXITCODE -eq 0) { git commit -m "message" }

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

  • Prefer PowerShell-native HTTP so behavior does not depend on whether `curl`

resolves to an alias or `curl.exe`:

  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` | Running Windows PowerShell 5.1 | Use `;` only for independent commands; use `$LASTEXITCODE` for conditional chaining | | `curl` behaves unexpectedly | Windows PowerShell alias / executable resolution differs | Use `Invoke-WebRequest`, or call `curl.exe` explicitly when its CLI semantics are required | | `timeout` behaves unexpectedly | Console utility semantics differ from shell sleep | Use `Start-Sleep` | | `Path not found` | Missing quotes on spaced path | Wrap path in double quotes |

Correct Command Examples

# Change directory and execute command
cd "D:\My Projects\MyApp"; ./gradlew clean build -x test

# Wait and make HTTP request
Start-Sleep -Seconds 10; Invoke-WebRequest -Uri "http://localhost:9090/status" -UseBasicParsing

# Docker operations
docker-compose -f "D:\My Projects\MyApp\docker-compose.yml" down
docker-compose -f "D:\My Projects\MyApp\docker-compose.yml" build --no-cache
docker-compose -f "D:\My Projects\MyApp\docker-compose.yml" up -d

# Check server status
$response = Invoke-WebRequest -Uri "http://localhost:9090/status" -UseBasicParsing
$json = $response.Content | ConvertFrom-Json
Write-Host "Transport: $($json.mcp.transport)"
Read more
@comol
Ships withai-rules-1c

Rules\skills\subagens for vibecoding in 1C(bsl)

55032 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
550
Star history of comol/ai_rules_1c on GitHub, a chart by star-history.com

Other skills on ai-rules-1c.

openspec-apply-change

openspec-apply-change

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through…

@comol@comolInstall Skill
openspec-archive-change

openspec-archive-chang…

Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after…

@comol@comolInstall Skill
openspec-explore

openspec-explore

Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a…

@comol@comolInstall Skill
openspec-propose

openspec-propose

Propose a new OpenSpec change with all artifacts generated in one step. Use when the user wants to quickly describe what they…

@comol@comolInstall Skill
openspec-sync-specs

openspec-sync-specs

Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta…

@comol@comolInstall Skill
openspec-update-change

openspec-update-change

Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the…

@comol@comolInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills3w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react12d252k
@facebook@facebookInstall Skill

Questions about powershell-windows.

Which coding agents can use powershell-windows?
powershell-windows installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.