apex-accelerator powershell.instructions.md

PowerShell scripting guidance based on Microsoft practices. It defines conventions for function names, parameters, variables, aliases, indentation, validation, and built-in help sections.

In plain words
What is it for?
Use it when writing PowerShell functions or scripts, including naming, parameter design, validation, full cmdlet usage, and comment-based help.
Why use it?
Inconsistent scripts are harder to understand, use, and maintain. These conventions make PowerShell commands and their documentation more predictable.

Instructions file for GitHub Copilot

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 instructions/jonathan-vella/apex-accelerator/powershell
Clone the repo
git clone --depth 1 https://github.com/jonathan-vella/apex-accelerator

Made for: GitHub Copilot.

Per session 612 This file is loaded in full into every session.
When invoked 612 The same file — it is already loaded in full.
Security scan A 0 findings. 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 $0.00612 $0.00612
Opus 5 $0.00306 $0.00306
Sonnet 5 $0.00122 $0.00122
Haiku 4.5 $0.00061 $0.00061

Measured 2d ago against content hash ea886f051aba, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apex-accelerator powershell.instructions.md scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/powershell.instructions.md · 79 lines

How it starts

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

PowerShell Cmdlet Development Guidelines

Quick Reference

Rule Standard
Naming Verb-Noun with approved verbs (Get-Verb), PascalCase
Parameters PascalCase, singular, descriptive; use ValidateSet/ValidateNotNullOrEmpty
Variables PascalCase (public), camelCase (private); avoid abbreviations
Aliases Never in scripts — use full cmdlet and parameter names
Indentation 4 spaces, opening { on same line as statement

Mandatory Patterns

CmdletBinding and Comment-Based Help

Every public function MUST have [CmdletBinding()] and comment-based help:

function Get-UserProfile {
    <#
    .SYNOPSIS
        Retrieves user profile details.
    .DESCRIPTION
        Fetches the profile for a given username with optional detail level.
    .PARAMETER Username
        The target user's login name.
    .EXAMPLE
        Get-UserProfile -Username 'jdoe' -ProfileType Detailed
    #>
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [string]$Username,

        [Parameter()]
        [ValidateSet('Basic', 'Detailed')]
        [string]$ProfileType = 'Basic'
    )
    process { <# logic #> }
}

ShouldProcess for Destructive Operations

Use SupportsShouldProcess with appropriate ConfirmImpact for any function that modifies system state:

[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]

Pipeline Support

  • Use ValueFromPipeline / ValueFromPipelineByPropertyName
  • Implement Begin/Process/End blocks
  • Return rich objects ([PSCustomObject]), not formatted text
  • Implement -PassThru for action cmdlets that normally produce no output

Error Handling

  • Set $ErrorActionPreference = 'Stop' in begin block
  • Use try/catch with specific exception types
  • In [CmdletBinding()] functions, prefer $PSCmdlet.WriteError() and $PSCmdlet.ThrowTerminatingError() over Write-Error and throw
  • Construct proper ErrorRecord objects with category, target, and exception
  • Use Write-Verbose for operational detail, Write-Warning for warnings, avoid Write-Host except for UI text

Read the full file on GitHub · 79 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 · 79 lines · 612 tokens per session scan A ea886f051aba

Subscribe to this mod's changes

apex-accelerator powershell.instructions.md is an instructions file published in the GitHub repository jonathan-vella/apex-accelerator (50 stars, last pushed 6d ago), licensed MIT. It adds 612 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

claude-code-settings copilot-instructions.md

Instructions for feiskyer/claude-code-settings, covering claude.md, environment setup, required dependencies, configuration and skills.

feiskyer/claude-code-settings · 649 tokens

squad copilot-instructions.md

Copilot instructions for bradygaster/squad, covering copilot coding agent — squad instructions, ⚠️ identity lock — read this first, 🚦 route before you act — generic copilot sessions, adversarial input handling and team context.

bradygaster/squad · 1,349 tokens

vscode-unify-chat-provider AGENTS.md

Instructions for smallmain/vscode-unify-chat-provider, a project described as: Integrate multiple LLM API providers into VS Code's GitHub Copilot Chat using the Language Model API. One-click use of your Claude Code, Gemini CLI, Antigravity, Github Copilot, OpenAI Codex (ChatGPT Plus/Pro), xAI Grok (SuperGrok / X…

smallmain/vscode-unify-chat-provider · 271 tokens

agent-rules testing.instructions.md

Instructions for lirantal/agent-rules, covering testing guidelines for node.js applications, general testing principles, guiding principles, descriptive test naming (three-part structure) and structure tests by the aaa pattern.

lirantal/agent-rules · 6,713 tokens

agent-rules child-process.instructions.md

Instructions for lirantal/agent-rules, covering system processes secure coding guidelines, your mission and spawning system processes.

lirantal/agent-rules · 196 tokens

ab100 AGENTS.md

Instructions for timothywarner-org/ab100, covering agents.md, repository purpose, source of truth, course structure and poc app.

timothywarner-org/ab100 · 1,542 tokens