.claude/skills/autonomous-session-manager/SKILL.md
Session lifecycle management for autonomous coding. Use when starting new coding sessions, resuming work, detecting session type (init vs continue), or managing auto-continuation between sessions.
npx skillsauth add adaptationio/skrillz autonomous-session-managerInstall 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.
Manages session lifecycle for autonomous coding operations - creation, resumption, detection, and auto-continuation.
from scripts.session_detector import detect_session_type, SessionType
session_type = detect_session_type(project_dir)
if session_type == SessionType.INIT:
# First run - need to initialize
pass
else:
# Continuation - resume previous work
pass
from scripts.session_manager import SessionManager
async with SessionManager(project_dir, model="claude-sonnet-4-5-20250929") as session:
result = await session.run(prompt)
from scripts.auto_continue import auto_continue
# Automatically start next session after 3 second delay
await auto_continue(delay_seconds=3)
┌─────────────────────────────────────────────────────────────┐
│ SESSION LIFECYCLE │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. DETECT SESSION TYPE │
│ ├─ Check for feature_list.json │
│ ├─ If missing → INIT session │
│ └─ If exists → CONTINUE session │
│ │
│ 2. CREATE SESSION │
│ ├─ Initialize SDK client │
│ ├─ Configure tools and permissions │
│ └─ Set working directory │
│ │
│ 3. RUN SESSION │
│ ├─ Execute prompt (initializer or coding) │
│ ├─ Handle tool calls │
│ └─ Capture results │
│ │
│ 4. END SESSION │
│ ├─ Save state │
│ ├─ Check completion status │
│ └─ Trigger auto-continue or shutdown │
│ │
└─────────────────────────────────────────────────────────────┘
| Feature | Description | |---------|-------------| | Session Detection | Automatically determines if INIT or CONTINUE | | State Restoration | Reads progress files at session start | | Auto-Continue | Configurable delay between sessions | | Graceful Shutdown | Saves state before termination | | Iteration Tracking | Counts sessions for limits |
# Session configuration
SESSION_CONFIG = {
"model": "claude-sonnet-4-5-20250929",
"max_turns": 1000,
"continue_delay": 3, # seconds
"max_iterations": None, # None = unlimited
}
references/SESSION-LIFECYCLE.md - Detailed lifecycle documentationreferences/CONFIGURATION.md - Configuration optionsscripts/session_manager.py - Core SessionManager classscripts/session_detector.py - Session type detectionscripts/auto_continue.py - Auto-continuation logicdevelopment
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.