Generate plugin architecture plan with agent roles, skill-movement mapping, hook strategy, and command routing. Trigger: plan architecture, design plugin structure, architect plugin, plugin architecture, plan plugin layout.
The canonical home for this skill is plan-architecture in JaviMontano/mao-plugin-qa
"Architecture is the art of making decisions you will not regret when the plugin grows."
Generate a complete architecture plan for a Claude Code plugin. Takes a plugin concept brief (from ideate-plugin) and produces a detailed technical plan covering agents, skills, hooks, commands, quality gates, and execution flows.
/pqa:ideate first.[DOC].code-analyzer, report-generator).[CONFIG]validate-structure, generate-report).[DOC]type:command -- compatible with all 22 events.type:http -- compatible with all 22 events.type:prompt -- compatible with PreToolUse, PostToolUse, and PermissionRequest ONLY (requires ToolUseContext).type:agent -- compatible with PreToolUse, PostToolUse, and PermissionRequest ONLY (requires ToolUseContext).CRITICAL (prompt/agent on non-ToolUseContext events) and propose alternatives.[CONFIG]/prefix:validate)./prefix:v).[DOC]G1: Analysis Complete).[DOC][CODIGO]architecture-plan.md:
# Architecture Plan: {plugin-name}
## Overview
## Agent Roles
## Skill-Movement Map
## Hook Strategy
## Command Routing Table
## Quality Gates
## Diagrams
## Component Summary
## Next Steps/pqa:plan-moat next.[DOC][CODIGO][CONFIG][CODIGO][DOC][CODIGO][DOC][CONFIG]build-plugin-scaffold's job.Bad architecture plan excerpt:
## Agents
- Agent 1: handles stuff
- Agent 2: handles other stuffMissing: no tool allowlist, no boundaries, no maxTurns, no skill assignments.
Good architecture plan excerpt:
## Agent Roles
| Agent | Boundary | Skills Owned | Tools | maxTurns |
|-------|----------|-------------|-------|----------|
| code-analyzer | Owns validation movement. Reads only. | validate-structure, validate-manifest, validate-components | Read, Glob, Grep | 25 |
| report-generator | Owns reporting movement. Writes report files. | generate-qa-report, generate-qa-scorecard | Read, Glob, Write | 15 |Includes: agent name, boundary, skills owned, tool allowlist, maxTurns estimate.
type:prompt hooks on Stop or Compact events (runtime error).b56591e
Canonical home
since Aug 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.