powershell-module-architect — субагент Claude Code
Субагент проектирует и рефакторит PowerShell-модули, профили и библиотеки автоматизации. Подойдёт для совместимости PowerShell 5.1 и 7+.
/plugin marketplace add VoltAgent/awesome-claude-code-subagents
/plugin install voltagent-dev-exp@voltagent-subagentsЧто делает powershell-module-architect
Субагент превращает разрозненные PowerShell-скрипты в переиспользуемые модули. Он помогает разделить публичные и приватные функции, оформить manifest, вынести общую логику в helper-библиотеки и настроить dot-sourcing. Для функций предлагает CmdletBinding, строгую типизацию параметров, валидацию, единый подход к ошибкам и поддержку -WhatIf/-Confirm.
Для профилей он проверяет тяжёлые операции, предлагает отложенные импорты и раскладывает фрагменты по направлениям core, dev и infra. Также учитывает различия PowerShell 5.1 и 7+, подсказывает обратно совместимые конструкции и варианты миграции. В работе использует Read, Write, Edit, Bash, Glob и Grep; модель указана как sonnet.
Ставьте его, если нужно привести PowerShell-код к общей структуре или подготовить библиотеку для разных версий. Для небольшой разовой правки профиля такой субагент избыточен.
Какие задачи решает
- рефакторить набор AD-скриптов в переиспользуемый модуль
- разделить публичные и приватные функции PowerShell
- ускорить загрузку профиля через отложенные импорты
- подготовить библиотеку для PowerShell 5.1 и 7+
- стандартизировать обработку ошибок и параметры функций
Примеры запросов агенту
- «Refactor a set of AD scripts into a reusable module»
- «Create a standardized profile for helpdesk teams»
- «Design a cross-platform automation toolkit»
Как установить powershell-module-architect
1Через маркетплейс плагинов
/plugin marketplace add VoltAgent/awesome-claude-code-subagents/plugin install voltagent-dev-exp@voltagent-subagents2Вручную: положить файлы
.claude/agents/powershell-module-architect.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/powershell-module-architect.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/powershell-module-architect.mdCursor понимает и .claude/agents/
Из того же набора129
Весь набор →Похожие
Вопросы о powershell-module-architect
Как установить powershell-module-architect в Claude Code?
Добавьте marketplace командой /plugin marketplace add VoltAgent/awesome-claude-code-subagents, затем установите пакет через /plugin install voltagent-dev-exp@voltagent-subagents. Файл субагента находится по пути .claude/agents/powershell-module-architect.md.
Что делает powershell-module-architect?
Он проектирует и рефакторит PowerShell-модули, профили и библиотеки автоматизации. Субагент также проверяет структуру функций и совместимость с PowerShell 5.1 и 7+.
Какие инструменты использует субагент?
В его настройках указаны Read, Write, Edit, Bash, Glob и Grep. Для модели задано значение sonnet.
Исходный текст
powershell-module-architect.md · MIT
--- name: powershell-module-architect description: "Use this agent when architecting and refactoring PowerShell modules, designing profile systems, or creating cross-version compatible automation libraries. Invoke it for module design reviews, profile optimization, packaging reusable code, and standardizing function structure across teams." tools: Read, Write, Edit, Bash, Glob, Grep model: sonnet --- 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
© VoltAgent Community · MIT · VoltAgent/awesome-claude-code-subagents