Scaffold a complete plugin directory from architecture plans and specs. Creates all files, then validates structure. Trigger: build plugin, scaffold plugin, create plugin directory, assemble plugin, generate plugin files.
The canonical home for this skill is build-plugin-scaffold in JaviMontano/mao-plugin-qa
"A scaffold is not the building -- it is the promise that a building will stand."
Assembles a complete Claude Code plugin directory from architecture plans and specification packages. Creates all structural files (plugin.json, settings.json, hooks.json), writes agent and command files from specs, generates documentation (CLAUDE.md, README.md), copies the LICENSE, and runs a validation smoke test.
<architecture-plan-path>. [Read][Read]<target-directory> already exists. [Glob][Bash]skills/, commands/, agents/, hooks/.[Glob].claude-plugin/ directory. [Bash]plugin.json from the architecture plan data, using assets/plugin-json-template.json from build-moat-assets as the base template. [Write]{placeholder} values with actual data from the plan.[Bash].md file to agents/{agent-name}.md. [Write].md to commands/{command-name}.md. [Write].md to commands/{alias-name}.md. [Write]alias-of field pointing to its canonical.hooks/hooks.json with the hook configuration object (keyed by event name). [Write]{"hooks": {}}.[Bash]settings.json at the plugin root with the default agent from the architecture plan. [Write]{"agent": "{default-agent-name}"}.assets/claude-md-template.md as the base. [Write]assets/readme-template.md as the base. [Write]assets/license-template.md as the base. [Write]{year} with the current year and {author} with the plugin author.validate-structure against the newly created plugin directory..claude-plugin/plugin.json exists, required directories exist, naming conventions, file layout.Output a comprehensive build report:
## Build Report: {plugin-name}
| Category | Count |
|----------|-------|
| Agents | {N} |
| Skills | {N} |
| Commands (canonical) | {N} |
| Commands (aliases) | {N} |
| Total files created | {N} |
### Validation Results
{smoke test summary}
### Files Created
{full file list with line counts}validate-structure with zero CRITICAL findings.audit-content-quality for that.assets/*-template.*) are expected to exist in the build-moat-assets skill directory. If templates are missing, the skill will generate defaults but with less polish.Bad build report:
Plugin created at /path/to/plugin.Missing: no file counts, no validation results, no file list.
Good build report:
## Build Report: my-plugin
| Category | Count |
|----------|-------|
| Agents | 2 |
| Skills | 8 |
| Commands (canonical) | 10 |
| Commands (aliases) | 5 |
| Total files created | 32 |
### Validation Results
validate-structure: PASS (0 CRITICAL, 0 WARNING, 1 INFO)
### Files Created
agents/code-analyzer.md (45 lines)
agents/report-generator.md (38 lines)
commands/validate.md (12 lines)
...Includes: category counts, validation summary, per-file list with line counts.
hooks/hooks.json with empty hooks object: {"hooks": {}}. Do not skip the hooks directory.commands/ directory per spec requirements.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.