agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Run evaluation tests against an agent to assess quality and archetype resistance
$ npx -y skills add jmagly/aiwg --skill eval-agent --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/eval-agentContext preview
The summary Claude sees to decide when to auto-load this skill.
Run evaluation tests against an agent to assess quality and archetype resistance
namespace: aiwg name: eval-agent platforms: [all] description: Run evaluation tests against an agent to assess quality and archetype resistance
Run automated evaluation tests against an agent.
/eval-agent security-architect /eval-agent architecture-designer --category archetype /eval-agent test-engineer --scenario grounding-test --verbose
| Argument | Required | Description | |----------|----------|-------------| | agent-name | Yes | Agent to evaluate |
| Option | Default | Description | |--------|---------|-------------| | --category | all | Test category: archetype, performance, quality | | --scenario | all | Specific scenario to run | | --verbose | false | Show detailed test output | | --output | stdout | Output file for results | | --strict | false | Fail on any test failure |
Tests for Roig (2025) failure archetypes:
1. **Load Agent**: Read agent definition 2. **Select Scenarios**: Based on --category or --scenario 3. **Setup Environment**: Create test workspace 4. **Execute Tests**: Run agent against each scenario 5. **Validate Results**: Check assertions 6. **Generate Report**: Output results
{
"agent": "security-architect",
"timestamp": "2025-01-15T10:30:00Z",
"tests": {
"grounding-test": {
"passed": true,
"score": 1.0,
"details": "Read tool called before Edit",
"duration_ms": 5000
},
"distractor-test": {
"passed": false,
"score": 0.6,
"details": "Used staging data in output",
"evidence": ["Found 'staging' in response"],
"duration_ms": 3000
}
},
"summary": {
"passed": 3,
"failed": 1,
"total": 4,
"score": 0.85
}
}# Full evaluation /eval-agent architecture-designer # Archetype tests only /eval-agent architecture-designer --category archetype # Single scenario with verbose output /eval-agent test-engineer --scenario grounding-test --verbose # Save results /eval-agent security-architect --output .aiwg/reports/security-eval.json # Strict mode (fails on any test failure) /eval-agent devops-engineer --strict
| Metric | Target | |--------|--------| | Grounding (A1) | >90% | | Substitution (A2) | >85% | | Distractor (A3) | >80% | | Recovery (A4) | ≥80% | | Overall | ≥85% |
Evaluate agent: $ARGUMENTS
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