agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Run a workflow multiple times and compare outputs to produce a similarity score and pass/fail verdict
$ npx -y skills add jmagly/aiwg --skill reproducibility-validate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/reproducibility-validateContext preview
The summary Claude sees to decide when to auto-load this skill.
Run a workflow multiple times and compare outputs to produce a similarity score and pass/fail verdict
namespace: aiwg name: reproducibility-validate platforms: [all] description: Run a workflow multiple times and compare outputs to produce a similarity score and pass/fail verdict
You run a workflow multiple times and compare outputs to produce a similarity score and pass/fail verdict, confirming that the workflow produces consistent results across executions.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Default validation | "validate reproducibility of onboarding-flow" | Run `aiwg reproducibility-validate onboarding-flow` | | Custom run count | "validate with 5 runs" | Run `aiwg reproducibility-validate <id> --runs 5` | | Custom threshold | "validate with 99% threshold" | Run `aiwg reproducibility-validate <id> --threshold 0.99` | | Full options | "3 runs, 90% threshold" | Run `aiwg reproducibility-validate <id> --runs 3 --threshold 0.90` |
When triggered:
1. **Extract intent**:
2. **Run the command**:
# Default: 3 runs, 0.95 threshold aiwg reproducibility-validate <workflow-id> # Custom run count aiwg reproducibility-validate <workflow-id> --runs 5 # Custom threshold aiwg reproducibility-validate <workflow-id> --threshold 0.99 # Both aiwg reproducibility-validate <workflow-id> --runs 5 --threshold 0.99
3. **Scoring method**:
4. **Pass/fail verdict**: If all per-artifact scores meet or exceed the threshold, the validation passes. Any artifact below the threshold is flagged.
5. **Report the result** — provide the overall verdict, overall similarity score, and a per-artifact breakdown showing which artifacts passed or failed.
**User**: "Validate reproducibility of the risk-management-cycle workflow"
**Extraction**: Workflow ID `risk-management-cycle`, default 3 runs, default 0.95 threshold
**Action**:
aiwg reproducibility-validate risk-management-cycle
**Response**:
Reproducibility Validation: risk-management-cycle Runs: 3 | Threshold: 0.95 | Result: PASS Artifact Score Status .aiwg/risks/risk-register.md 0.97 PASS .aiwg/risks/mitigation-plan.md 0.96 PASS .aiwg/working/risk-analysis-draft.md 1.00 PASS (exact match) Overall score: 0.977 — all 3 artifacts passed.
**User**: "Validate the SAD generation workflow with 99% threshold and 5 runs"
**Extraction**: Workflow ID `sad-generation`, 5 runs, 0.99 threshold
**Action**:
aiwg reproducibility-validate sad-generation --runs 5 --threshold 0.99
**Response**:
Reproducibility Validation: sad-generation Runs: 5 | Threshold: 0.99 | Result: FAIL Artifact Score Status .aiwg/architecture/software-architecture.md 0.98 FAIL .aiwg/architecture/component-diagram.mmd 1.00 PASS (exact match) .aiwg/architecture/adr-001.md 0.99 PASS Overall score: 0.990 — 1 of 3 artifacts failed the 0.99 threshold. Recommendation: Review non-deterministic sections in software-architecture.md, or lower the threshold to 0.95 if semantic variation is acceptable.
**User**: "Run 5 iterations of the deployment-planning workflow and check for consistency"
**Extraction**: Workflow ID `deployment-planning`, 5 runs, default 0.95 threshold
**Action**:
aiwg reproducibility-validate deployment-planning --runs 5
**Response**:
Reproducibility Validation: deployment-planning Runs: 5 | Threshold: 0.95 | Result: PASS Artifact Score Status .aiwg/deployment/deployment-plan.md 0.96 PASS .aiwg/deployment/runbook.md 0.97 PASS .aiwg/deployment/rollback-plan.md 0.95 PASS Overall score: 0.960 — all 3 artifacts passed across 5 runs.
**User**: "Test whether the test-strategy workflow is deterministic"
**Extraction**: Workflow ID `test-strategy-execution`, default 3 runs, default 0.95 threshold
**Action**:
aiwg reproducibility-validate test-strategy-execution
**Response**:
Reproducibility Validation: test-strategy-execution Runs: 3 | Threshold: 0.95 | Result: FAIL Artifact Score Status .aiwg/testing/test-plan.md 0.94 FAIL .aiwg/testing/test-strategy.md 0.97 PASS .aiwg/testing/coverage-targets.json 1.00 PASS (exact match) Overall score: 0.970 — 1 of 3 artifacts failed the 0.95 threshold. Recommendation: Enable `strict` execution mode (`aiwg execution-mode strict`) to reduce variance in test-plan.md, then re-validate.
If the user's intent is ambiguous:
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