skills/autoloop/SKILL.md
Autonomous recursive improvement loop for a single target. Runs gap analysis, recursive refinement, evaluation, and convergence checks until the target reaches quality threshold or converges.
npx skillsauth add ShaheerKhawaja/ProductionOS autoloopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Autonomous recursive improvement loop for a single target. Runs gap analysis, recursive refinement, evaluation, and convergence checks until the target reaches quality threshold or converges.
| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| target | path or context | cwd | What to operate on |
Before executing, run the shared ProductionOS preamble (templates/PREAMBLE.md).
You are running the /autoloop command. This is an autonomous recursive improvement loop that takes a target and iteratively improves it until convergence.
The user provides:
~/repos/ for reference implementations (per CLAUDE.md Auto-Enrichment Protocol)~/.productionos/recursive/reference-corpus/ for similar high-quality outputs~/.productionos/recursive/recursion-state.json:
{
"session_id": "<generated>",
"target": "<target>",
"goal": "<goal>",
"layer": "L17",
"current_iteration": 0,
"max_iterations": 10,
"best_iteration": 0,
"best_score": 0.0,
"scores": [],
"convergence_verdict": "CONTINUE",
"status": "running"
}
For each iteration:
convergence.py:
~/.productionos/recursive/metrics/AUTOLOOP COMPLETE
Target: <target>
Goal: <goal>
Iterations: <n> / <max>
Best Score: <score> (iteration <i>)
Convergence: <verdict> — <reason>
Trajectory:
i=0 |*** | 4.20
i=1 |********* | 6.50 (+2.30)
i=2 |*********** | 7.20 (+0.70)
i=3 |************ | 7.30 (+0.10) <- converged
Applied: <output from best iteration>
rlm-recursive-orchestrator agent for depth management when neededThis command integrates all Phase 1-3 RLM components:
confidence_scorer.py — scoring each iterationquality_gate.py — monotonic improvement enforcementconvergence.py — 5-algorithm convergence detectioninstinct_scorer.py — weight adjustment from learned patternsembedding_corpus.py — reference comparisonprompt_evolution.py — active prompt selection per layertier2_live_eval.py — evaluation frameworkrlm_classifier.py — budget circuit breaker| Scenario | Action | |----------|--------| | No target provided | Ask for clarification with examples | | Target not found | Search for alternatives, suggest closest match | | Missing dependencies | Report what is needed and how to install | | Permission denied | Check file permissions, suggest fix | | State file corrupted | Reset to defaults, report what was lost |
tools
Implementation planning workflow that turns approved ideas into dependency-aware execution plans.
development
Local RAG and Graph RAG over the SecondBrain wiki vault. Progressive context loading (hot cache -> index -> domain -> entity). Graph traversal via wikilink resolution. Use when agents need cross-project context, when answering questions that span multiple domains, or when building context for planning tasks. Triggers on: "wiki context", "cross-project context", "what do we know about", "check the wiki", "graph context", "/wiki-rag".
devops
UX improvement pipeline — creates user stories from UI guidelines, maps user journeys, identifies friction, dispatches fix agents. The user-experience equivalent of /production-upgrade.
development
Test-driven development workflow that writes failing tests first, implements minimally, and refactors safely.