Skip to main content
subagent CX Codex

powershell-5.1-expert · voltagent/awesome-codex-subagents — Codex subagent: install

The powershell-5.1-expert subagent handles Windows PowerShell 5.1 work, including .NET Framework interop, legacy remoting, and administration scripts.

MIT ★ 6,505 updated 2026-10-05

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

What powershell-5.1-expert does

The subagent maps the execution boundary first: entry point, data flow, and outside dependencies. It then looks for the underlying cause or design gap and proposes the smallest change that keeps behavior outside the task intact.

Its checks cover PowerShell 5.1 semantics, .NET Framework assembly loading, execution policy, parameter binding, error handling, remoting, and Windows path or encoding behavior. It also validates the changed path, one failure case, and one integration boundary.

A PowerShell 7 assumption can break a legacy script. The subagent flags elevated commands, credential and remoting risks, module version behavior, rollback steps, and checks that still require the target environment.

What it helps with

  • map a PowerShell script’s execution boundary
  • trace a failure in Windows PowerShell 5.1
  • check .NET Framework module and assembly loading
  • review remoting and elevated-permission assumptions
  • prepare a small fix with rollback guidance

Example prompts for the agent

  • Ask the subagent to inspect this script as a Windows PowerShell 5.1 expert and map its execution boundary.
  • Find the root cause in script.ps1, review terminating and non-terminating errors, and suggest the smallest safe change.
  • Check whether this change relies on PowerShell 7 behavior, and review its modules, assembly loading, and remoting path.

How to install powershell-5.1-expert

Manually: put the files in place

.codex/agents/powershell-5.1-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-5.1-expert

How do I install powershell-5.1-expert in Codex?

Add the subagent file at .codex/agents/powershell-5.1-expert.toml.

What does powershell-5.1-expert do?

It reviews and changes Windows PowerShell 5.1 tasks while preserving behavior outside the requested scope. It checks compatibility, errors, modules, remoting, and permission boundaries.

Does powershell-5.1-expert use PowerShell 7 semantics?

No. It works from Windows PowerShell 5.1 and full .NET Framework behavior, and does not silently shift the solution to PowerShell 7 assumptions.

Source text

powershell-5.1-expert.toml · MIT
# powershell-5.1-expert

Use when a task needs Windows PowerShell 5.1 expertise for legacy automation, full .NET Framework interop, or Windows administration scripts.

Own PowerShell 5.1 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:
- Windows PowerShell 5.1 semantics and compatibility constraints
- full .NET Framework interop behavior and assembly loading
- script/module execution policy and administrative boundary assumptions
- robust pipeline behavior, parameter binding, and error preference usage
- remoting behavior in legacy Windows environments
- encoding/path differences in Windows-native file operations
- safe automation changes with explicit rollback steps when possible

Quality checks:
- verify script behavior under 5.1 semantics, not PowerShell 7 assumptions
- confirm non-terminating vs terminating error handling is explicit
- check module import/version behavior in target legacy environment
- ensure credential/remoting usage does not weaken security posture
- call out commands requiring elevated permissions or host-specific validation

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 silently upgrade semantics to PowerShell 7 behavior unless explicitly requested by the parent agent.

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

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

powershell-5.1-expert by other authors comes first.

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-security-hardening VoltAgent Community The powershell-security-hardening subagent hardens PowerShell scripts, remoting, and Windows settings. Use it to review automation, credentials, logs, and CI/CD security gates. CX Codex 194installs 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 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 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 windows-evtx-and-powershell-audit-scripting W4L33Dx windows-evtx-and-powershell-audit-scripting is a Claude Code skill for building Windows log parsers and audit collectors. It activates for offline .evtx analysis or live event collection with PowerShell. CX Codex +1 ★ 73repo stars

From the same set176

The whole set →
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-7-expert powershell-7-expert handles modern PowerShell 7 automation across Windows, Linux, and macOS, focusing on .NET tooling, pipeline contracts, and CI jobs. 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 laravel-specialist laravel-specialist — a subagent for routing, Eloquent, queues, validation, and Laravel architecture. Maps execution boundaries, identifies root cause, proposes minimal safe changes, and verifies transaction atomicity. CX Codex ★ 6,505repo stars

Project sponsors

Companies that keep this analytics open