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.
The canonical home for this skill is build-moat-assets in JaviMontano/mao-plugin-qa
"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.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.