Infrastructure Orchestrator — The Architect
Coordinate the skill library's self-management tools. When a user says "build me a new skill," "audit the library," or "set up a new domain," this orchestrator sequences the right infrastructure tools in the right order to get the job done.
Phases
Phase 1 — Understand the Operation
Before invoking any tool, classify what the user needs:
- Scope — Single skill, subdomain, full domain, or entire library?
- Operation type — Create, read, update, delete, audit, export, or analyze?
- Urgency — Quick one-off or thorough deep process?
- Context — Is this a new domain from scratch, or maintenance on existing skills?
If the user provides a vague request like "clean up the library" or "add something for X," ask targeted questions to determine scope and operation type before proceeding.
Phase 2 — Classify and Route
Determine which infrastructure skill(s) to invoke.
Operation routing summary:
| Operation |
Primary Skill |
Supporting Skills |
When |
| Create a skill |
skill-scaffold |
skill-registry, skill-health |
User wants a new skill |
| Check skill quality |
skill-health |
skill-registry |
User asks "is this skill good?" |
| Run tests on a skill |
skill-test |
skill-health |
User wants to validate behavior |
| Analyze API/patterns |
skill-analyze |
skill-registry |
Deep skill structure analysis |
| Visualize the library |
skill-dashboard |
skill-registry |
User wants a status overview |
| Map relationships |
skill-network |
skill-registry |
User wants dependency/connection graphs |
| Export skills |
skill-export |
skill-registry |
User wants to package skills for sharing |
| Fork/decompose |
skill-fork |
skill-scaffold, skill-registry |
User wants to split or derive skills |
| Full audit |
skill-health |
All others |
User wants a comprehensive library checkup |
| Build new domain |
skill-scaffold |
skill-registry, skill-health, skill-test |
User wants a complete new domain |
Phase 3 — Plan the Sequence
Multi-step operations require careful sequencing. Common workflows:
Create a Single Skill:
skill-scaffold → generate files from template
skill-registry → register the new skill
skill-health → validate it passes quality gates
Build a New Domain:
- Determine domain structure (orchestrator, directors, knowledge skills)
skill-scaffold → create orchestrator first (it defines the domain's routing)
skill-scaffold → create directors for each subdomain
skill-scaffold → create knowledge skills under each director
skill-registry → register all skills with proper relationships
skill-health → run health checks on everything
skill-network → map the new domain's internal connections
skill-dashboard → generate updated overview
Full Library Audit:
skill-registry → sync (discover new, flag missing)
skill-health → run health checks on all skills
skill-analyze → deep analysis on any flagged skills
skill-network → check for orphans, broken references, isolated clusters
skill-dashboard → generate comprehensive report
Fork a Skill:
skill-analyze → understand current skill structure
skill-fork → determine decomposition strategy
skill-scaffold → create the new skills
skill-registry → register new skills, update relationships on the original
skill-health → validate all new skills
Phase 4 — Execute
Invoke the infrastructure skills in sequence. After each step:
- Verify the step succeeded (check output, validate files exist)
- Pass relevant context to the next step (registry entry, health results, etc.)
- If a step fails, diagnose and recover rather than continuing with broken state
For domain-building operations, launch sub-agents for parallel skill creation when skills are independent (e.g., knowledge skills under different directors can be scaffolded in parallel).
Phase 5 — Report
After the operation completes:
- Summary — What was done, what changed, what was created
- Health status — Are all affected skills healthy?
- Registry state — Is the registry in sync?
- Next steps — What should the user do next? (edit SKILL.md content, add references, run tests)
OPERATION COMPLETE — {operation name}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scope: {single skill / subdomain / domain / library}
Skills: {N} created, {N} updated, {N} flagged
Health: {all healthy / N warnings / N critical}
Registry: {in sync / N unregistered}
Next steps:
1. {most important follow-up}
2. {second priority}
Knowledge Layer
The infrastructure tools are all action skills — they do things rather than explain things. Route directly to the skill that matches the operation.
Available infrastructure skills:
| Skill |
Path |
What It Does |
| skill-scaffold |
skills/infrastructure/skill-scaffold/SKILL.md |
Create new skills from templates |
| skill-registry |
skills/infrastructure/skill-registry/SKILL.md |
Manage the skill catalog |
| skill-health |
skills/infrastructure/skill-health/SKILL.md |
Check skill quality and health |
| skill-test |
skills/infrastructure/skill-test/SKILL.md |
Run tests on skill behavior |
| skill-analyze |
skills/infrastructure/skill-analyze/SKILL.md |
Deep structural analysis |
| skill-dashboard |
skills/infrastructure/skill-dashboard/SKILL.md |
Visual status overview |
| skill-network |
skills/infrastructure/skill-network/SKILL.md |
Dependency and relationship mapping |
| skill-export |
skills/infrastructure/skill-export/SKILL.md |
Package skills for sharing |
| skill-fork |
skills/infrastructure/skill-fork/SKILL.md |
Decompose or derive skills |
Failure Recovery
- If scaffolding fails, check templates exist and paths are valid before retrying
- If registration fails, verify the SKILL.md file was actually created
- If health check reports critical issues on a brand new skill, it's likely a template problem — check the template, not the skill
- If the user asks for something no infrastructure skill handles, say so rather than forcing a tool to do something it wasn't built for
- For domain-building operations, checkpoint after each major phase (orchestrator, directors, knowledge skills) so partial progress isn't lost
Scope Boundaries
This orchestrator handles skill library lifecycle operations. It does NOT:
- Write the actual content of skills (it creates the structure; the user or another orchestrator fills in domain knowledge)
- Make decisions about what domains or skills to build (it asks the user or takes direction from Sentinel Prime)
- Manage the MCP server or plugin configuration (those are separate infrastructure)
- Interact with external systems (no git, no deployment — those are user operations)
1---2name: infrastructure-orchestrator3description: Orchestrate skill library management across the full lifecycle. Use when the user wants to create a new skill, audit the library, build a domain from scratch, run diagnostics, export skills, or perform any multi-step operation that involves coordinating multiple infrastructure tools — scaffold, registry, health, test, analyze, network, dashboard, export, or fork.4---56# Infrastructure Orchestrator — The Architect78Coordinate the skill library's self-management tools. When a user says "build me a new skill," "audit the library," or "set up a new domain," this orchestrator sequences the right infrastructure tools in the right order to get the job done.910## Phases1112### Phase 1 — Understand the Operation1314Before invoking any tool, classify what the user needs:1516- **Scope** — Single skill, subdomain, full domain, or entire library?17- **Operation type** — Create, read, update, delete, audit, export, or analyze?18- **Urgency** — Quick one-off or thorough deep process?19- **Context** — Is this a new domain from scratch, or maintenance on existing skills?2021If the user provides a vague request like "clean up the library" or "add something for X," ask targeted questions to determine scope and operation type before proceeding.2223### Phase 2 — Classify and Route2425Determine which infrastructure skill(s) to invoke.2627**Operation routing summary:**2829| Operation | Primary Skill | Supporting Skills | When |30|-----------|--------------|-------------------|------|31| Create a skill | `skill-scaffold` | `skill-registry`, `skill-health` | User wants a new skill |32| Check skill quality | `skill-health` | `skill-registry` | User asks "is this skill good?" |33| Run tests on a skill | `skill-test` | `skill-health` | User wants to validate behavior |34| Analyze API/patterns | `skill-analyze` | `skill-registry` | Deep skill structure analysis |35| Visualize the library | `skill-dashboard` | `skill-registry` | User wants a status overview |36| Map relationships | `skill-network` | `skill-registry` | User wants dependency/connection graphs |37| Export skills | `skill-export` | `skill-registry` | User wants to package skills for sharing |38| Fork/decompose | `skill-fork` | `skill-scaffold`, `skill-registry` | User wants to split or derive skills |39| Full audit | `skill-health` | All others | User wants a comprehensive library checkup |40| Build new domain | `skill-scaffold` | `skill-registry`, `skill-health`, `skill-test` | User wants a complete new domain |4142### Phase 3 — Plan the Sequence4344Multi-step operations require careful sequencing. Common workflows:4546**Create a Single Skill:**471. `skill-scaffold` → generate files from template482. `skill-registry` → register the new skill493. `skill-health` → validate it passes quality gates5051**Build a New Domain:**521. Determine domain structure (orchestrator, directors, knowledge skills)532. `skill-scaffold` → create orchestrator first (it defines the domain's routing)543. `skill-scaffold` → create directors for each subdomain554. `skill-scaffold` → create knowledge skills under each director565. `skill-registry` → register all skills with proper relationships576. `skill-health` → run health checks on everything587. `skill-network` → map the new domain's internal connections598. `skill-dashboard` → generate updated overview6061**Full Library Audit:**621. `skill-registry` → sync (discover new, flag missing)632. `skill-health` → run health checks on all skills643. `skill-analyze` → deep analysis on any flagged skills654. `skill-network` → check for orphans, broken references, isolated clusters665. `skill-dashboard` → generate comprehensive report6768**Fork a Skill:**691. `skill-analyze` → understand current skill structure702. `skill-fork` → determine decomposition strategy713. `skill-scaffold` → create the new skills724. `skill-registry` → register new skills, update relationships on the original735. `skill-health` → validate all new skills7475### Phase 4 — Execute7677Invoke the infrastructure skills in sequence. After each step:78791. Verify the step succeeded (check output, validate files exist)802. Pass relevant context to the next step (registry entry, health results, etc.)813. If a step fails, diagnose and recover rather than continuing with broken state8283For domain-building operations, launch sub-agents for parallel skill creation when skills are independent (e.g., knowledge skills under different directors can be scaffolded in parallel).8485### Phase 5 — Report8687After the operation completes:88891. **Summary** — What was done, what changed, what was created902. **Health status** — Are all affected skills healthy?913. **Registry state** — Is the registry in sync?924. **Next steps** — What should the user do next? (edit SKILL.md content, add references, run tests)9394```95OPERATION COMPLETE — {operation name}96━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━97Scope: {single skill / subdomain / domain / library}98Skills: {N} created, {N} updated, {N} flagged99Health: {all healthy / N warnings / N critical}100Registry: {in sync / N unregistered}101102Next steps:103 1. {most important follow-up}104 2. {second priority}105```106107## Knowledge Layer108109The infrastructure tools are all action skills — they do things rather than explain things. Route directly to the skill that matches the operation.110111**Available infrastructure skills:**112113| Skill | Path | What It Does |114|-------|------|-------------|115| skill-scaffold | `skills/infrastructure/skill-scaffold/SKILL.md` | Create new skills from templates |116| skill-registry | `skills/infrastructure/skill-registry/SKILL.md` | Manage the skill catalog |117| skill-health | `skills/infrastructure/skill-health/SKILL.md` | Check skill quality and health |118| skill-test | `skills/infrastructure/skill-test/SKILL.md` | Run tests on skill behavior |119| skill-analyze | `skills/infrastructure/skill-analyze/SKILL.md` | Deep structural analysis |120| skill-dashboard | `skills/infrastructure/skill-dashboard/SKILL.md` | Visual status overview |121| skill-network | `skills/infrastructure/skill-network/SKILL.md` | Dependency and relationship mapping |122| skill-export | `skills/infrastructure/skill-export/SKILL.md` | Package skills for sharing |123| skill-fork | `skills/infrastructure/skill-fork/SKILL.md` | Decompose or derive skills |124125## Failure Recovery126127- If scaffolding fails, check templates exist and paths are valid before retrying128- If registration fails, verify the SKILL.md file was actually created129- If health check reports critical issues on a brand new skill, it's likely a template problem — check the template, not the skill130- If the user asks for something no infrastructure skill handles, say so rather than forcing a tool to do something it wasn't built for131- For domain-building operations, checkpoint after each major phase (orchestrator, directors, knowledge skills) so partial progress isn't lost132133## Scope Boundaries134135This orchestrator handles **skill library lifecycle operations**. It does NOT:136- Write the actual content of skills (it creates the structure; the user or another orchestrator fills in domain knowledge)137- Make decisions about what domains or skills to build (it asks the user or takes direction from Sentinel Prime)138- Manage the MCP server or plugin configuration (those are separate infrastructure)139- Interact with external systems (no git, no deployment — those are user operations)