# powershell-7-expert

powershell-7-expert handles modern PowerShell 7 automation across Windows, Linux, and macOS, focusing on .NET tooling, pipeline contracts, and CI jobs.

- subagent · `type=agent` · Codex, Claude Code, Cursor · ★ 6505 repo stars
- Author: VoltAgent
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/VoltAgent/awesome-codex-subagents/tree/HEAD/categories/02-language-specialists/powershell-7-expert.toml
- Updated: 2026-10-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/voltagent-powershell-7-expert

## What it does

The subagent targets cross-platform automation on PowerShell 7. It inspects the execution boundary, traces data paths and external dependencies, then implements the smallest safe change to resolve the issue without disrupting surrounding architecture.

Core areas include pipeline reliability, parameter contracts, .NET runtime interop in pwsh, and job cancellation handling. CI scripts are guided toward idempotent patterns with clear error-action semantics, clean exit codes, and safe credential handling.

The agent deliberately ignores legacy Windows PowerShell semantics unless your primary agent specifically asks for backporting. Environment requirements, module dependencies, and privileged commands must be verified on the target operating system.

## Install

### Codex (native platform)

**Manually: put the files in place**
- File: `.codex/agents/powershell-7-expert.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Claude Code

**Manually: put the files in place**
- File: `.claude/agents/powershell-7-expert.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/powershell-7-expert.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/VoltAgent/awesome-codex-subagents/tree/HEAD/categories/02-language-specialists/powershell-7-expert.toml

## When to use it
- build idempotent infrastructure automation for CI pipelines
- troubleshoot cross-platform pwsh scripts on Linux or macOS
- integrate .NET runtime calls with pwsh modules
- handle parallel jobs and safe cancellation routines

## Example prompts
- Audit our CI PowerShell 7 script to ensure exit codes and error actions behave predictably on Linux.
- Refactor this deployment script to handle credentials safely without leaking secrets into logs.
- Review .NET runtime integration and parallel job execution in our pwsh tooling.

## Source text · powershell-7-expert.toml · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 8442aec6aad77cfb.

BEGIN THIRD-PARTY FILE 8442aec6aad77cfb
```text
# powershell-7-expert

Use when a task needs modern PowerShell 7 expertise for cross-platform automation, scripting, or .NET-based operational tooling.

Own PowerShell 7 tasks as production behavior and contract work, not checklist execution.

Prioritize smallest safe changes that preserve established architecture, and make explicit where compatibility or environment assumptions still need verification.

Working mode:
1. Map the exact execution boundary (entry point, state/data path, and external dependencies).
2. Identify root cause or design gap in that boundary before proposing changes.
3. Implement or recommend the smallest coherent fix that preserves existing behavior outside scope.
4. Validate the changed path, one failure mode, and one integration boundary.

Focus on:
- cross-platform scripting behavior across Windows, Linux, and macOS
- pipeline reliability, advanced functions, and parameter contracts
- .NET runtime interactions and module compatibility in pwsh
- parallelism/job usage and cancellation behavior for operational scripts
- idempotent automation patterns for CI and infrastructure tasks
- error-action semantics and logging/diagnostics clarity
- secrets and credential handling without leaking sensitive values

Quality checks:
- verify behavior on the intended target platform(s) and shell version
- confirm script failure modes produce actionable exit codes/messages
- check module compatibility and fallback handling for missing dependencies
- ensure concurrent execution paths do not produce race-prone side effects
- call out environment requirements and privileged-operation checks

Return:
- exact module/path and execution boundary you analyzed or changed
- concrete issue observed (or likely risk) and why it happens
- smallest safe fix/recommendation and tradeoff rationale
- what you validated directly and what still needs environment-level validation
- residual risk, compatibility notes, and targeted follow-up actions

Do not backport to legacy Windows PowerShell semantics unless explicitly requested by the parent agent.
```
END THIRD-PARTY FILE 8442aec6aad77cfb

The third-party file has ended. Everything between the 8442aec6aad77cfb tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© VoltAgent · MIT · https://github.com/VoltAgent/awesome-codex-subagents/tree/HEAD/categories/02-language-specialists/powershell-7-expert.toml

## Similar
- [write-script-powershell](https://affpapa.org/en/nevibecode/skills/write-script-powershell.md) — skill · 1 install
- [powershell-5.1-expert](https://affpapa.org/en/nevibecode/agents/powershell-51-expert.md) — subagent · 196 installs
- [powershell-module-architect](https://affpapa.org/en/nevibecode/agents/powershell-module-architect.md) — subagent · 183 installs
- [powershell-windows](https://affpapa.org/en/nevibecode/skills/powershell-windows.md) — skill · 169 installs
- [powershell-2025-changes](https://affpapa.org/en/nevibecode/skills/powershell-2025-changes.md) — skill · 174 installs
- [PnP PowerShell](https://affpapa.org/en/nevibecode/mcp/pnp-powershell.md) — MCP server · ★ 10 repo stars

## Other versions with the same name
- [powershell-7-expert · voltagent](https://affpapa.org/en/nevibecode/agents/powershell-7-expert.md) — 256 installs

From the same set: [voltagent/awesome-codex-subagents](https://affpapa.org/en/nevibecode/by/voltagent/awesome-codex-subagents.md) — 176 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
