.claude/skills/autonomous-loop/SKILL.md
Main orchestration loop for autonomous coding. Use when running autonomous sessions, orchestrating feature completion, managing continuous loops, or coordinating agent lifecycle.
npx skillsauth add adaptationio/skrillz autonomous-loopInstall 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.
Main orchestration loop that runs continuously until all features are complete.
from scripts.autonomous_loop import AutonomousLoop
loop = AutonomousLoop(project_dir)
result = await loop.run()
print(f"Completed: {result.features_completed}")
print(f"Sessions: {result.sessions_used}")
from scripts.loop_config import LoopConfig
config = LoopConfig(
max_sessions=10,
token_budget=500000,
auto_checkpoint=True
)
result = await loop.run(config)
┌─────────────────────────────────────────────────────────────┐
│ AUTONOMOUS LOOP │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────────────────────────────────────────────┐ │
│ │ INITIALIZE │ │
│ │ ├─ Detect session type (INIT vs CONTINUE) │ │
│ │ ├─ Load or create feature list │ │
│ │ └─ Initialize state tracker │ │
│ └────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────┐ │
│ │ FEATURE LOOP │ │
│ │ while (incomplete_features > 0): │ │
│ │ ├─ Select next feature │ │
│ │ ├─ Create checkpoint │ │
│ │ ├─ Implement with TDD │ │
│ │ ├─ Run E2E tests │ │
│ │ ├─ If pass: mark complete │ │
│ │ ├─ If fail: recover or rollback │ │
│ │ └─ Check context limits │ │
│ └────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────┐ │
│ │ CONTEXT CHECK │ │
│ │ if (approaching_limit): │ │
│ │ ├─ Compact context │ │
│ │ ├─ Prepare handoff │ │
│ │ └─ Request continuation │ │
│ └────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────────┐ │
│ │ COMPLETION │ │
│ │ ├─ Generate final report │ │
│ │ ├─ Store session memory │ │
│ │ └─ Signal completion │ │
│ └────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
@dataclass
class LoopResult:
success: bool
features_completed: int
features_total: int
sessions_used: int
total_tokens: int
errors_recovered: int
duration_minutes: float
handoff_reason: Optional[str]
| Mode | Description | Trigger | |------|-------------|---------| | Auto | Loop continues automatically | Context limit | | Manual | User confirms continuation | Session end | | Scheduled | Runs at scheduled times | Cron trigger | | Event | Triggered by events | Git push, CI |
references/LOOP-LIFECYCLE.md - Loop detailsreferences/CONTINUATION-PROTOCOL.md - Continuationscripts/autonomous_loop.py - Main loopscripts/loop_config.py - Configurationscripts/feature_orchestrator.py - Feature flowscripts/continuation_handler.py - Continuationsdevelopment
Setup secure web-based terminal access to WSL2 from mobile/tablet via ttyd + ngrok/Cloudflare/Tailscale. One-command install, start, stop, status. Use when you need remote terminal access, web terminal, browser-based shell, or mobile access to WSL2 environment.
development
Complete development workflows where Claude writes the code while Gemini and Codex provide research, planning, reviews, and different perspectives. Claude remains the main developer. Use for complex projects requiring expert planning and multi-perspective reviews.
development
Systematic progress tracking for skill development. Manages task states (pending/in_progress/completed), updates in real-time, reports progress, identifies blockers, and maintains momentum. Use when tracking skill development, coordinating work, or reporting progress.
testing
Comprehensive testing workflow orchestrating functional testing, example validation, integration testing, and usability assessment. Sequential workflow for complete skill testing from examples through scenarios to integration validation. Use when conducting thorough testing, pre-deployment validation, ensuring skill functionality, or comprehensive quality checks.