Generates complete, correctly formatted instruction files for all 10 entity types (Workflow, Agent, Skill, Command, Rule, Knowledge-base, Resources, Script, Hook) per assigned intricacy level. Use in Step 3 to materialize each entity from the architectural blueprint as a deployable file.
Generates the complete content of instruction files for each entity type, adapting the depth to the assigned intricacy level and respecting all formatting conventions.
Input:
workflow | agent-specialist | agent-supervisor | skill | command | rule | knowledge-base | script | hooksimple | medium | complexOutput:
.md file with YAML frontmatter and Markdown body, ready to downloadBefore writing the file, verify:
/resources directory and referencing them.| Type | Prefix | Example |
|---|---|---|
| Workflow | wor- | wor-customer-onboarding.md |
| Agent Specialist | age-spe- | age-spe-email-classifier.md |
| Agent Supervisor | age-sup- | age-sup-output-validator.md |
| Skill | ski- | ski-format-output/SKILL.md |
| Command | com- | com-quick-translate.md |
| Rule | rul- | rul-output-standards.md |
| Knowledge-base | kno- | kno-brand-guidelines.md |
| Resources | res- | res-security-policies.md |
| Script | scp- | scp-lint-check.sh |
| Hook | hok- | hok-memory-auto-save.md |
Templates are split by entity category to minimize context load:
wor-, age-spe-, age-sup-, com-): read ../../resources/res-entity-templates-behavioral.mdski-, rul-, kno-, res-, scp-, hok-): read ../../resources/res-entity-templates-support.mdExtract the structure for the requested entity type and fill it dynamically per the assigned intricacy level.
Full specifications for all three intricacy levels (simple, medium, complex), cross-reference path conventions, consistency rules, content partitioning, and pre-validation checklist:
../../resources/res-entity-builder-protocol.md
Platform output: This skill generates GA (
.agents/) entities only. Platform-specific output (CC, Codex) is handled byski-output-claude-codeandski-output-codexrespectively. Skills use theski-[name]/SKILL.mdsubdirectory structure on all platforms — never create flatski-name.mdfiles.
If when planning the intricacy level (especially for complex) you anticipate a very extensive entity or one that will exceed the recommended limit:
./resources/ directory to host that raw information.See detailed policies in [Security Policies](./resources/res-security-policies.md).After generating the entity content and before returning it, run this automated checklist:
name and description are present; description ≤ 250 chars.creation_order.resources/.Emit a summary line at the end of the generated entity:
Pre-validation: ✅ frontmatter | ✅ cross-refs | ✅ size (2847/3000) | ✅ sections | ✅ naming
If any check fails, use ⚠️ and describe the issue. Do not suppress failures.
Universal requirement (all intricacy levels): Every generated agent (type age-spe-* or age-sup-*) MUST include in its Execution Protocol:
"Before presenting your output, emit a
<sys-eval>block perrul-strict-compliance."
Every agent's Related rules table MUST include rul-strict-compliance. This ensures all generated systems produce traceable outputs.
Example — Generation of Agent Specialist at simple level
Input:
{
"type": "agent-specialist",
"name": "age-spe-email-classifier",
"function": "Classify incoming emails into predefined categories",
"intricacy_level": "simple"
}
Expected output: Agent with Goals (2), Tasks (4), linear Execution Protocol (5-6 steps), Specific Rules (3), without Skills or KB if not needed.