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.
From plugin-qanpx claudepluginhub javimontano/mao-plugin-qaThis skill is limited to using the following tools:
assets/agent-template.mdassets/command-template.mdassets/hooks-json-template.jsonassets/plugin-json-template.jsonassets/settings-json-template.jsonassets/skill-template.mdexamples/moat-directory-output.mdprompts/moat-build.mdreferences/moat-asset-templates.mdscripts/generate-moat-dirs.shSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
"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.