Skip to main content
subagent CX Codex

powershell-7-expert · voltagent/awesome-codex-subagents — Codex subagent: what it does, how to install

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

MIT ★ 6,505 updated 2026-10-05

Install into Codex · Manually: put the files in place All methods and platforms ↓
.codex/agents/powershell-7-expert.toml
Open on GitHub

What powershell-7-expert 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.

What it helps with

  • 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 for the agent

  • 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.

How to install powershell-7-expert

Manually: put the files in place

.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/

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about powershell-7-expert

How to install powershell-7-expert in Codex?

Add the agent definition file to .codex/agents/powershell-7-expert.toml within your repository.

What does powershell-7-expert do?

It diagnoses and refactors PowerShell 7 scripts, covering cross-platform execution, .NET tooling, error handling, and pipeline contracts.

Does powershell-7-expert support older Windows PowerShell?

No, it focuses strictly on modern pwsh and avoids backporting to legacy Windows PowerShell unless explicitly told to do so.

Source text

powershell-7-expert.toml · MIT
# 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.

© VoltAgent · MIT · VoltAgent/awesome-codex-subagents

Similar subagents

All subagents for DevOps and infrastructure →

powershell-7-expert by other authors comes first.

powershell-7-expert VoltAgent Community powershell-7-expert builds cross-platform PowerShell 7+ scripts for Azure, Microsoft Graph, and CI/CD pipelines with .NET 6/7 interop. CX Codex 256installs write-script-powershell windmill-labs write-script-powershell directs coding agents on writing PowerShell scripts for Windmill, handling safe local execution, metadata locks, and platform resources. CX Codex +1 1installs powershell-5.1-expert VoltAgent Community powershell-5.1-expert — a subagent for PowerShell 5.1 automation on Windows, covering Active Directory, DNS, DHCP, and GPO tasks in legacy .NET Framework environments. CX Codex 196installs powershell-module-architect VoltAgent Community powershell-module-architect is a Claude Code subagent for designing and refactoring PowerShell modules. It handles profile systems, reusable libraries, and cross-version automation work. CX Codex 183installs powershell-windows davila7 powershell-windows defines patterns for Windows PowerShell scripts, enforcing cmdlet parentheses, pure ASCII console output, and safe JSON parsing. Solves common syntax crashes. CX Codex +1 169installs powershell-2025-changes JosiahSiegel powershell-2025-changes is a Claude Code skill that lists PowerShell changes in 2025 and replacement cmdlets for scripts affected by them. CX Codex +1 174installs PnP PowerShell pnp Lets your agent run PnP PowerShell cmdlets and build scripts for SharePoint Online, Teams, Entra ID and the rest of Microsoft 365 from plain text. CX Codex +1 ★ 10repo stars

From the same set176

The whole set →
rust-engineer rust-engineer — a subagent for Rust work centered on ownership correctness, lifetimes, and async behavior. Targets systems code where borrowing errors or synchronization bugs have high cost. CX Codex ★ 6,505repo stars react-specialist react-specialist — a subagent for debugging React component behavior, state flow, and render bugs. It isolates root causes and applies targeted fixes. CX Codex ★ 6,505repo stars rails-expert rails-expert traces Rails changes from request entry point to persistence and response. Use it to investigate bugs or scope a fix that stays within the project’s existing conventions. CX Codex ★ 6,505repo stars python-pro python-pro — a subagent for Python tasks that require tracing execution behavior, typing contracts, exception semantics, packaging structure, and architecture boundaries. Finds root causes instead of surface fixes. CX Codex ★ 6,505repo stars powershell-5.1-expert The powershell-5.1-expert subagent handles Windows PowerShell 5.1 work, including .NET Framework interop, legacy remoting, and administration scripts. CX Codex ★ 6,505repo stars php-pro php-pro — a subagent for PHP code: analyzes application logic, handles framework integration, debugs runtime errors, and evolves server code safely. Use it when you need deep PHP expertise, not just syntax. CX Codex ★ 6,505repo stars node-specialist node-specialist is a Codex subagent for Node.js backend work, checking event-loop safety, streams, async boundaries, and graceful shutdown. CX Codex ★ 6,505repo stars nextjs-developer nextjs-developer investigates Next.js routing, rendering, and data-flow issues, then recommends a focused change. Use it when server/client boundaries or deployment behavior matter. CX Codex ★ 6,505repo stars

Project sponsors

Companies that keep this analytics open