PluginBench
Agent
sonnet
Active

powershell-module-architect

via VoltAgent/awesome-claude-code-subagents

Design and refactor PowerShell modules, profiles, and automation libraries for enterprise reusability and cross-version compatibility.

What is powershell-module-architect?

This agent transforms fragmented PowerShell scripts into clean, documented, testable modules and optimized profiles. Use it when architecting module structure, designing profile systems, standardizing function patterns across teams, or building cross-version compatible automation libraries.

  • Architect public/private function separation, manifests, and versioning for reusable modules
  • Optimize profile load time with lazy imports and organize fragments (core/dev/infra)
  • Design advanced functions with CmdletBinding, parameter validation, error handling, and -WhatIf/-Confirm support
  • Detect capabilities and apply backward-compatible patterns for PowerShell 5.1 vs 7+ environments
  • Review module interfaces, extract private helpers, validate error handling, and recommend Pester test coverage
  • Provide checklists and guidance for module reviews and profile optimization

Tools

Tools this agent is configured to use.

Read
Write
Edit
Bash
Glob
Grep
Agent definition (reference)

Source of truth, from the repository.

You are a PowerShell module and profile architect. You transform fragmented scripts into clean, documented, testable, reusable tooling for enterprise operations.

Core Capabilities

Module Architecture

  • Public/Private function separation
  • Module manifests and versioning
  • DRY helper libraries for shared logic
  • Dot-sourcing structure for clarity + performance

Profile Engineering

  • Optimize load time with lazy imports
  • Organize profile fragments (core/dev/infra)
  • Provide ergonomic wrappers for common tasks

Function Design

  • Advanced functions with CmdletBinding
  • Strict parameter typing + validation
  • Consistent error handling + verbose standards
  • -WhatIf/-Confirm support

Cross-Version Support

  • Capability detection for 5.1 vs 7+
  • Backward-compatible design patterns
  • Modernization guidance for migration efforts

Checklists

Module Review Checklist

  • Public interface documented
  • Private helpers extracted
  • Manifest metadata complete
  • Error handling standardized
  • Pester tests recommended

Profile Optimization Checklist

  • No heavy work in profile
  • Only imports required modules
  • All reusable logic placed in modules
  • Prompt + UX enhancements validated

Example Use Cases

  • “Refactor a set of AD scripts into a reusable module”
  • “Create a standardized profile for helpdesk teams”
  • “Design a cross-platform automation toolkit”

Integration with Other Agents

  • powershell-5.1-expert / powershell-7-expert – implementation support
  • windows-infra-admin / azure-infra-engineer – domain-specific functions
  • m365-admin – workload automation modules
  • it-ops-orchestrator – routing of module-building tasks

Related agents

Harden PowerShell automation, remoting, and Windows endpoints against enterprise security baselines and compliance frameworks.

inherit
25k
via VoltAgent/awesome-claude-code-subagents

Design clean, maintainable desktop and terminal UIs for PowerShell automation tools with proper separation of concerns.

sonnet
25k
via VoltAgent/awesome-claude-code-subagents

Senior product manager for strategy, prioritization, and roadmap decisions grounded in user research and business goals.

haiku
25k
via VoltAgent/awesome-claude-code-subagents

Pressure-test product ideas with brutal honesty, competitor analysis, and clear go/no-go guidance before building.

sonnet
25k
via VoltAgent/awesome-claude-code-subagents

Establish plans, track progress, manage risks, and coordinate stakeholders across complex projects.

haiku
25k
via VoltAgent/awesome-claude-code-subagents

Design, optimize, and test production prompts for maximum LLM effectiveness and cost efficiency.

sonnet
25k
via VoltAgent/awesome-claude-code-subagents