plan-architecture

Generate plugin architecture plans with agent roles, skill mapping, hooks, and command routing.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/JaviMontano/mao-plugin-qa --skill plan-architecture-javimontano
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: plan-architecture
Source: https://github.com/JaviMontano/mao-plugin-qa/tree/main/skills/plan-architecture
Command: npx skills add https://github.com/JaviMontano/mao-plugin-qa --skill plan-architecture-javimontano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Designing a Claude Code plugin requires deciding how many agents to create, which skills belong to which movement, which hooks are compatible with which lifecycle events, and how commands should route. Doing this ad hoc leads to orphaned skills, incompatible hook configurations, and unmaintainable plugin structures. ## Core Features & Use Cases - Agent Role Definition: Assigns skills to agents using a 5+ skills heuristic, with boundaries, least-privilege tool allowlists, and maxTurns estimates. - Hook Compatibility Validation: Checks proposed hooks against the type-event compatibility matrix (command/http work on all 22 events; prompt/agent only on ToolUseContext events) and flags CRITICAL mismatches. - Command Routing & Quality Gates: Builds a canonical command table with aliases and places testable quality gates between movements. - Use Case: After running an ideation step that produced a plugin brief, feed the brief path to this Skill to produce an architecture-plan.md with Mermaid diagrams, a component summary, and next-step recommendations. ## Quick Start Run the plan-architecture skill with the path to my plugin brief to generate a complete architecture plan document.

Frequently Asked Questions about plan-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I plan the architecture of a Claude Code plugin?▼

Provide a plugin concept brief to the plan-architecture skill, which parses the brief and produces an architecture-plan.md covering agent roles, skill-movement mapping, hook strategy, command routing, quality gates, and Mermaid diagrams.

How many agents should a Claude Code plugin have?▼

The skill applies a heuristic: a movement gets its own agent if it has 5 or more skills or fundamentally different tool needs. More than 4 agents is flagged as a code smell, and simple plugins often work with a single agent.

Which hook types are compatible with Claude Code lifecycle events?▼

Command and http hook types work with all 22 lifecycle events. Prompt and agent hook types only work with PreToolUse, PostToolUse, and PermissionRequest events because they require ToolUseContext. Incompatible combinations are flagged as CRITICAL.

Does plan-architecture create the plugin files and directories?▼

No. This skill only produces a plan document. Creating directories, files, and scaffolds is the responsibility of the separate build-plugin-scaffold skill, which consumes the architecture plan.

What happens if my plugin brief is missing or incomplete?▼

The skill reports the error and suggests running the ideation step first. It validates that the brief contains required sections such as problem statement, movement structure, and component estimates before proceeding.