agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Orchestrate multi-agent teams across AIWG providers natively on Claude Code or emulated via Mission Control elsewhere
$ npx -y skills add jmagly/aiwg --skill team --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/teamContext preview
The summary Claude sees to decide when to auto-load this skill.
Orchestrate multi-agent teams across AIWG providers natively on Claude Code or emulated via Mission Control elsewhere
namespace: aiwg name: team platforms: [all] description: Orchestrate multi-agent teams across AIWG providers natively on Claude Code or emulated via Mission Control elsewhere
You orchestrate multi-agent teams across all AIWG providers. On Claude Code, teams run natively via the Task tool. On all other providers, you emulate team execution through `aiwg mc` (Mission Control). Team definitions live in `agentic/code/frameworks/sdlc-complete/teams/`.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Run a named team | "run the sdlc-review team on the SAD" | `aiwg team run sdlc-review "<task>"` | | List available teams | "what teams are available" | `aiwg team list` | | Inspect team composition | "who is on the security review team" | `aiwg team info security-review` | | Task-inferred team | "review this architecture for security" | `aiwg team run security-review "<task>"` |
When triggered:
1. **Parse the subcommand**:
2. **Detect provider**:
3. **Run the appropriate command**:
# Run a team on a task aiwg team run sdlc-review "Review the SAD at .aiwg/architecture/sad.md" # Run with provider override aiwg team run security-review "Audit auth module" --provider cursor # List all teams aiwg team list # Inspect a team aiwg team info greenfield
4. **Report execution progress**:
Teams are defined as JSON files in `agentic/code/frameworks/sdlc-complete/teams/`. Built-in teams:
| Team | Use Cases | |------|-----------| | `sdlc-review` | Architecture, requirements, and test review | | `security-review` | Threat modeling, security audit, privacy review | | `api-development` | API design, documentation, test generation | | `full-stack` | Feature implementation across layers | | `greenfield` | New project inception and architecture | | `maintenance` | Refactoring, debt reduction, upgrades | | `migration` | Database or platform migration planning |
# .aiwg/teams/my-team.yaml (project-local override)
name: Custom Review Team
slug: custom-review
description: Tailored review for domain-specific concerns
agents:
- agent: security-architect
role: lead
responsibilities:
- Security threat model
- Auth design review
- agent: test-architect
role: contributor
responsibilities:
- Test coverage gaps
- Integration risks
- agent: technical-writer
role: reviewer
responsibilities:
- Clarity and consistency
dispatch: parallelAgents launch as parallel Task tool calls in a single message. Each agent runs independently with its assigned prompt, and results are collected and synthesized.
# Steward emulates by dispatching via Mission Control SESSION=$(aiwg mc start --name "team-run-$(date +%s)") aiwg mc dispatch $SESSION "security-architect: <task>" --completion "Review complete" aiwg mc dispatch $SESSION "test-architect: <task>" --completion "Review complete" aiwg mc watch $SESSION
**User**: "Run the security review team on the auth module"
**Extraction**: `team run security-review` on the auth module
**Action**:
aiwg team run security-review "Review src/auth/ for security vulnerabilities, focusing on token handling and session management"
**Response** (Claude Code, native):
Launching security-review team (3 agents, parallel)... security-architect: reviewing... security-auditor: reviewing... privacy-officer: reviewing... Results collected. 2 critical findings, 4 recommendations. Full report: .aiwg/working/team-runs/security-review-20260401-143022.md
**User**: "What teams do I have available?"
**Action**:
aiwg team list
**Response**:
Available teams (7): api-development API design, documentation, test generation full-stack Feature implementation across layers greenfield New project inception and architecture maintenance Refactoring, debt reduction, upgrades migration Database or platform migration planning sdlc-review Architecture, requirements, and test review security-review Threat modeling, security audit, privacy review
**User**: "Who is on the sdlc-review team?"
**Action**:
aiwg team info sdlc-review
**Response**:
Team: sdlc-review Description: Architecture, requirements, and test review Dispatch: parallel Agents: architecture-designer [lead] Architecture quality and pattern review requirements-analyst [contributor] Requirements traceability and completeness test-architect [contributor] Testability and coverage gaps technical-writer [reviewer] Clarity and documentation quality Use cases: - SAD review before Architecture Baseline Milestone - Elaboration phase gate check - ADR peer review
If the user names a task without a team:
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