Borrowing it
Nothing to install: this file belongs to fadwen/Powershell-Copilot-Standards. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fadwen/Powershell-Copilot-Standards/main/.github/prompts/new-function.prompt.mdgit clone --depth 1 https://github.com/fadwen/Powershell-Copilot-StandardsWrote 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.
[](https://agentmods.dev/commands/fadwen/powershell-copilot-standards/new-function)<a href="https://agentmods.dev/commands/fadwen/powershell-copilot-standards/new-function"><img src="https://agentmods.dev/badge/commands/fadwen/powershell-copilot-standards/new-function/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/fadwen/powershell-copilot-standards/new-function"><img src="https://agentmods.dev/badge/commands/fadwen/powershell-copilot-standards/new-function.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.00298 |
| Opus 5.5 | $0.00004 | $0.00119 |
| Sonnet 5.5 | $0.00002 | $0.00060 |
| Haiku 4.5 | $0.00001 | $0.00030 |
Grade A, and why
new-function 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 1mo 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.
What it actually says
Create a PowerShell function with these specifications:
Function Details:
- Function name: ${input:functionName:Verb-Noun}
- Purpose: ${input:purpose:Describe what this function accomplishes}
- Parameters needed: ${input:parameters:List the parameters and their types}
- Environment: ${input:environment:Development,Testing,Production:Development}
Context:
- Current file: ${fileBasename}
- Project: ${workspaceFolderBasename}
- PowerShell version: ${input:psVersion:7.6,5.1+7.6:7.6}
Requirements:
- Use modern PowerShell patterns (PSCredential::new(), $_ in catch blocks)
- Include proper comment-based help with complete syntax
- Implement appropriate parameter validation (avoid redundant validation)
- Use correlation IDs for enterprise logging
- Apply context-appropriate performance patterns
- Follow approved PowerShell verb usage
- Use descriptive output types instead of [PSCustomObject]
Standards Compliance:
- Error handling: Use $_ in catch blocks, not $Error[0]
- String operations: Context-appropriate (simple concatenation vs StringBuilder)
- Null handling: Simple null checks where appropriate, exceptions for operations that might fail
- Documentation: Complete comment-based help blocks
- Security: Modern credential handling patterns
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.
- 1mo ago First seen · 39 lines · 10 tokens per session scan A 8a15068bc78e
new-function is a command published in the GitHub repository fadwen/Powershell-Copilot-Standards (19 stars, last pushed 1mo ago), licensed MIT. It adds 10 tokens to every session and 298 once invoked, about $0.0000 per session on Opus 5.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-09-16.
Other commands, from other repositories
rust-developer
Comprehensive Rust development assistance for systems programming, async applications, web services, and CLI tools with Rust documentation verification.
fastapi
FastAPI application design and implementation conventions. Use this skill when building, updating, or reviewing FastAPI services, routers, dependencies, request/response schemas, streaming endpoints, or API tests. Trigger on FastAPI-specific work such as path operation design, dependency injection, response models…
azure-graph-dotnet:deploy-azure
Deploy a C# Azure Functions or Container Job project to Azure — provision infrastructure with Bicep, push image to ACR, assign Managed Identity Graph permissions, and generate or update GitHub Actions or Azure DevOps CI/CD pipelines.
go-review
Go code review for idiomatic patterns.
cli-enhance
Add features to existing CLI applications like colors, progress bars, shell completions, and better error messages.
gen-ts-api-code
A code-generation workflow that reads API definitions from YApi, a tool for documenting and testing web APIs, and produces TypeScript code.