From plugin-qa
Create MOAT directory structures and populate asset files (references/, examples/, prompts/, scripts/, assets/) for plugin skills. Trigger: build MOAT assets, create skill assets, populate references, generate examples, build skill directories.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plugin-qa:build-moat-assets <spec-package-path> <target-plugin-path><spec-package-path> <target-plugin-path>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> "Structure without content is an empty house; content without structure is a pile of bricks."
"Structure without content is an empty house; content without structure is a pile of bricks."
Creates MOAT directory structures for plugin skills and populates them with asset files from spec packages. Handles the physical disk operations that turn specification content into a living skill directory with references, examples, prompts, scripts, and static assets.
<spec-package-path>. [Read]<target-plugin-path> exists and contains a skills/ directory. [Glob]skills/ directory does not exist, create it. [Bash]skills/{skill-name}/. [Bash]scripts/generate-moat-dirs.sh. [Bash]skills/{skill-name}/SKILL.md. [Write][Glob]For each skill, create only the subdirectories that have content:
references/ -- If reference files exist in the spec.examples/ -- If example files exist in the spec.prompts/ -- If prompt files exist in the spec.scripts/ -- If script files exist in the spec.assets/ -- If template/static files exist in the spec.Do NOT create empty subdirectories. [Bash]
For each MOAT subdirectory with content:
[Write][Bash]For any files in scripts/:
.sh files: #!/bin/bash.py files: #!/usr/bin/env python3.js files: #!/usr/bin/env nodechmod +x. [Bash]For files in assets/:
{plugin-name}, {author}).[Glob] to list all files created under each skill directory.CRITICAL.INFO (may be pre-existing).Output a summary table:
| Skill | Files Created | Total Lines | MOAT Dirs |
|-------|--------------|-------------|-----------|
| {name} | {count} | {lines} | {dirs} |
Include:
generate-moat-dirs.sh script (Step 3) is optional. If not available, directories are created directly via Bash mkdir -p.audit-content-quality's job.Bad creation summary:
Created 5 skill directories.
Missing: no file counts, no line counts, no MOAT directory details, no warnings.
Good creation summary:
| Skill | Files Created | Total Lines | MOAT Dirs |
|-------|--------------|-------------|-----------|
| validate-hooks | 4 | 210 | references/, examples/, prompts/ |
| validate-manifest | 3 | 145 | references/, examples/ |
Total: 2 skills, 7 files, 355 lines. 0 warnings, 0 errors.
Includes: per-skill breakdown, file counts, line counts, MOAT directories created, totals with error summary.
SKILL.md.bak before overwriting.\r\n and convert to \n before writing. Shebangs fail with Windows line endings on Unix systems.npx claudepluginhub javimontano/mao-plugin-qaGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.