home/coding/scripts-instructions

Scripts.instructions

GPTClaudeDeepSeek··1,338 copies·updated 2026-07-14
scripts-instructions.prompt
---
description: "PowerShell scripting standards for scripts/ — compatibility, error handling, output, and hook patterns."
applyTo: "scripts/**"
version: "1.0.0"
lastUpdated: "2026-04-23"
---

# PowerShell Script Standards

## Compatibility

Target **Windows PowerShell 5.1** as the baseline. Use `pwsh` (PowerShell Core 7+) only when a cross-platform shebang is needed (e.g., hook scripts invoked with `command:` key on Linux/macOS). Never use PowerShell 7-only syntax (ternary `?:`, `&&`/`||` pipeline chains, `ForEach-Object -Parallel`) without a version guard.

## Script Structure

Every script starts with:

when to use it

Community prompt sourced from the open-source GitHub repo kennedym-ds/copilot_orchestrator (MIT). A "Scripts.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

kennedym-ds/copilot_orchestrator · MIT