Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/code-analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Comprehensive code quality analysis with expert-reviewed standards'
argument-hint: '[file-or-code]'
---

Run the shared prompt in @.github/prompts/code-analysis.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/code-analysis.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/create-module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Generates complete PowerShell module structure'
argument-hint: '[moduleName] [purpose] [audience] [complexity]'
---

Run the shared prompt in @.github/prompts/create-module.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/create-module.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/create-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Generate comprehensive tests following modern PowerShell patterns'
argument-hint: '[file-or-code] [testType] [coverage] [environment] [pesterVersion]'
---

Run the shared prompt in @.github/prompts/create-test.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/create-test.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/create-workflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Generates business workflow automation'
argument-hint: '[process] [trigger] [integrations] [errorHandling]'
---

Run the shared prompt in @.github/prompts/create-workflow.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/create-workflow.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/new-function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Creates enterprise-standard PowerShell function with modern best practices'
argument-hint: '[functionName] [purpose] [parameters] [environment] [psVersion]'
---

Run the shared prompt in @.github/prompts/new-function.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/new-function.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/optimize-performance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'PowerShell performance optimization with specific targets'
argument-hint: '[file-or-code] [datasetSize] [performanceTarget] [environment] [criticality]'
---

Run the shared prompt in @.github/prompts/optimize-performance.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/optimize-performance.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/performance-analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Detailed performance analysis and benchmarking'
argument-hint: '[file-or-code] [analysisScope] [metrics] [baseline] [target]'
---

Run the shared prompt in @.github/prompts/performance-analysis.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/performance-analysis.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/scaffold-project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Creates complete project scaffold with CI/CD'
argument-hint: '[projectName] [projectType] [cicd] [deployment]'
---

Run the shared prompt in @.github/prompts/scaffold-project.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/scaffold-project.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/security-review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Security analysis with modern PowerShell patterns'
argument-hint: '[file-or-code] [complianceFramework] [environment]'
---

Run the shared prompt in @.github/prompts/security-review.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/security-review.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
20 changes: 20 additions & 0 deletions .claude/commands/powershell-standards/validate-standards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
description: 'Validates code against PowerShell community standards'
argument-hint: '[file-or-code]'
---

Run the shared prompt in @.github/prompts/validate-standards.prompt.md.

That file is written for GitHub Copilot Chat and is the only copy of the prompt. Apply it here as
follows:

- Ignore its `agent` and `tools` frontmatter.
- `${input:NAME:...}` is a value to collect. Take it from the arguments below when they supply it,
otherwise ask before starting. The text after the name lists the choices or a placeholder, and a
final segment after another colon is the default.
- `${selection}` is the code the user selected or named in the arguments. `${fileBasename}` is the
file that code lives in, and `${workspaceFolderBasename}` is the repository folder name.
- If the contents of the prompt file are not shown above, read `.github/prompts/validate-standards.prompt.md`
before doing anything else.

Arguments: $ARGUMENTS
6 changes: 6 additions & 0 deletions .claude/rules/powershell-standards/pull-requests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@../../../.github/instructions/pull-requests.instructions.md

Source of this rule: `.github/instructions/pull-requests.instructions.md` (shared with GitHub Copilot,
which applies it to every file through `applyTo: '**'`). This rule has no `paths`, so Claude Code loads
it at launch: opening a pull request does not always involve reading a file. Relative links inside it
resolve from `.github/instructions/`.
2 changes: 0 additions & 2 deletions .github/instructions/analyze.instructions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
mode: 'agent'
applyTo: "**/*.ps1,**/*.psm1,**/*.psd1"
tools: ['codebase', 'githubRepo']
description: 'Performs comprehensive PowerShell code analysis for quality, security, and performance'
---

Expand Down
2 changes: 0 additions & 2 deletions .github/instructions/architecturedesign.instructions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
mode: 'agent'
applyTo: "**/*.psm1,**/module.json,**/README.md"
tools: ['codebase', 'githubRepo']
description: 'Designs enterprise-grade PowerShell architecture using proven design patterns and best practices'
---

Expand Down
2 changes: 0 additions & 2 deletions .github/instructions/cicd.instructions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
mode: 'agent'
applyTo: "**/.github/workflows/*.yml,**/.github/workflows/*.yaml,**/azure-pipelines.yml,**/build.ps1,**/deploy.ps1"
tools: ['codebase', 'githubRepo']
description: 'Sets up comprehensive CI/CD pipelines for PowerShell projects with automated testing and deployment'
---

Expand Down
1 change: 0 additions & 1 deletion .github/instructions/comments.instructions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
mode: 'edit'
applyTo: "**/*.ps1,**/*.psm1"
description: 'Defines help content standards for PowerShell functions - comment-based help and PlatyPS Markdown'
---
Expand Down
2 changes: 0 additions & 2 deletions .github/instructions/errorsandlogs.instructions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
mode: 'agent'
applyTo: "**/*.ps1,**/*.psm1"
tools: ['codebase', 'githubRepo']
description: 'Implements comprehensive error handling and structured logging for PowerShell solutions'
---

Expand Down
2 changes: 0 additions & 2 deletions .github/instructions/module.instructions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
mode: 'agent'
applyTo: "**/*.psm1,**/*.psd1,**/Public/*.ps1,**/Private/*.ps1"
tools: ['codebase', 'githubRepo']
description: 'Creates enterprise-grade PowerShell modules with proper structure, security, and functionality'
---

Expand Down
1 change: 0 additions & 1 deletion .github/instructions/pester.instructions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
applyTo: "**/Tests/**/*.ps1,**/*.Tests.ps1"
tools: ['codebase', 'githubRepo']
description: 'Creates comprehensive Pester 6 test suites for PowerShell code with enterprise testing standards'
---

Expand Down
1 change: 0 additions & 1 deletion .github/instructions/platyps.instructions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
applyTo: "**/docs/**/*.md,**/Public/*.ps1,**/*.psd1"
tools: ['codebase', 'githubRepo']
description: 'Generates and maintains module help documentation with Microsoft.PowerShell.PlatyPS, shipping MAML external help'
---

Expand Down
1 change: 0 additions & 1 deletion .github/instructions/powershell-version.instructions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
applyTo: "**/*.ps1,**/*.psm1,**/*.psd1"
tools: ['codebase', 'githubRepo']
description: 'PowerShell version baseline, support lifecycle, and version-dependent language/cmdlet features'
---

Expand Down
Loading