agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Create a complete framework package structure inside agentic/code/frameworks/. Use when authoring an expansion (framework) for AIWG.
$ npx -y skills add jmagly/aiwg --skill scaffold-framework --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/scaffold-frameworkContext preview
The summary Claude sees to decide when to auto-load this skill.
Create a complete framework package structure inside agentic/code/frameworks/. Use when authoring an expansion (framework) for AIWG.
namespace: aiwg name: scaffold-framework platforms: [all] description: Create a complete framework package structure inside agentic/code/frameworks/. Use when authoring an expansion (framework) for AIWG. triggers: - author a framework - create a framework - build a framework package - framework authoring - scaffold framework - new expansion
Create a complete framework package structure inside `agentic/code/frameworks/`.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Named scaffold | "scaffold framework legal-ops" | Scaffold directly | | Interactive | "scaffold framework --interactive" | Full guided design mode | | Described | "create a framework for content production pipelines" | Derive name=`content-production`, confirm | | Phased | "scaffold framework data-science --phases discovery,analysis,modeling,deployment" | Scaffold with custom phases |
Frameworks are major capability bundles that model complete operational lifecycles. They contain everything a team needs to manage a specific type of work end-to-end. Examples:
| Framework | Purpose | Scale | |-----------|---------|-------| | `sdlc-complete` | Software development lifecycle | ~58 agents, 100+ templates | | `media-marketing-kit` | Marketing operations | ~37 agents, campaign lifecycle | | `forensics-complete` | Digital forensics and IR | Investigation lifecycle | | `research-complete` | Research workflow automation | Research phases |
Frameworks differ from addons:
Framework creation is a significant undertaking. Study existing frameworks before building new ones. Start with core agents per phase, then expand.
Extract from `$ARGUMENTS`:
If `<name>` is missing, ask before proceeding.
ls agentic/code/frameworks/
This is the recommended path for first-time framework creation. Ask:
1. **Lifecycle**: What lifecycle does this framework manage? (software dev, marketing, legal, research) 2. **Target audience**: Who uses this framework? (engineering teams, marketing departments, legal firms) 3. **Phase structure**: What phases does this lifecycle include?
4. **Phase gates**: What criteria must be met to transition between phases? 5. **Agent categories**: What specialist roles are needed per phase?
6. **Template categories**: What artifact types will this framework produce? 7. **Core commands**: What phase-execution and transition commands are needed?
aiwg scaffold-framework <name> \ --description "<description>" \ --phases "<phase1,phase2,...>"
**manifest.json** — Framework registry entry:
{
"name": "<name>",
"version": "1.0.0",
"description": "<description>",
"author": "<author>",
"phases": ["<phase1>", "<phase2>"],
"agents": [],
"commands": [],
"skills": [],
"rules": [],
"templates": {}
}**README.md** — Framework overview: purpose, phases, agent catalog, quick start.
**actors-and-templates.md** — Maps roles to artifacts per phase. Critical for orchestration.
**plan-act-`<name>`.md** — Master plan-and-act document defining framework behavior.
Each phase gets a flow definition in `flows/`:
# <Phase> Phase Flow ## Objectives [What this phase accomplishes] ## Entry Criteria [What must be true to begin this phase] ## Activities [What happens in this phase] ## Artifacts Produced [Documents and deliverables] ## Exit Criteria / Gate [What must be true to leave this phase] ## Agents [Which agents are active in this phase]
After scaffold, build agents in this order:
1. **Phase 1**: 2-3 core agents per phase (primary authors) 2. **Phase 2**: Reviewer agents for each phase 3. **Phase 3**: Orchestration agents for phase transitions
aiwg add-agent <role> --to <name> --template complex
1. **Phase execution**: `flow-<phase>` commands 2. **Phase transitions**: `flow-<phase>-to-<next>` commands 3. **Utilities**: `project-status`, `gate-check`, `health-check`
aiwg add-command flow-<phase> --to <name> --template orchestration
# Deploy framework to active provider aiwg use <name> # Validate structure and metadata aiwg validate-metadata # Health check aiwg doctor
agentic/code/frameworks/<name>/ ├── README.m
Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.
Repo: jmagly/aiwg
Crash-resilient external agent loop with state persistence and CI/CD integration
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Enable agent loops to learn from similar past tasks and share patterns across loops
Query and manage the executable feedback debug memory
Execute tests on generated code and iterate until passing