ralph-session-ops-reference
Ralph Session Operations Reference
Use this skill when a Ralph-v2 agent needs deterministic session-level reference material instead of improvising it from memory.
Use Cases
- Validate
metadata.yamloriterations/<N>/progress.md - Repair malformed Ralph session state
- Apply the standard subagent timeout recovery ladder
- Generate Ralph session IDs or ISO8601 timestamps
Schema Validation Rules
iterations/<N>/progress.md must include
# Progress## Legendwith[ ],[/],[P],[x],[F],[C]## Planning Progress (Iteration N)## Implementation Progress (Iteration N)
metadata.yaml must include
version,session_id,created_at,updated_at,iterationorchestrator.statetasks.total,tasks.completed,tasks.failed,tasks.pendingsession_review.cyclesession_review.issue_severity_thresholdsession_review.max_critique_cycles
Timeout Recovery Policy
Apply this to any Ralph-v2 subagent call that times out or fails unexpectedly.
- Retry the same single-mode invocation immediately.
- Retry after 30 seconds.
- Retry after 60 seconds.
- Retry after another 60 seconds.
- If still failing:
- If
TASK_IDexists, invoke Planner withMODE: SPLIT_TASKand continue with the replacement tasks. - If no
TASK_IDexists, stop and ask for a narrower scope.
- If
Sleep Commands
- Windows PowerShell:
Start-Sleep -Seconds 30orStart-Sleep -Seconds 60 - Linux/WSL:
sleep 30orsleep 60
Local Timestamp Commands
Session ID format <YYMMDD>-<hhmmss>
- Windows PowerShell:
Get-Date -Format "yyMMdd-HHmmss" - Linux/WSL:
TZ=Asia/Ho_Chi_Minh date +"%y%m%d-%H%M%S"
ISO8601 local timestamp
- Windows PowerShell:
Get-Date -Format "yyyy-MM-ddTHH:mm:ssK" - Linux/WSL:
TZ=Asia/Ho_Chi_Minh date +"%Y-%m-%dT%H:%M:%S%z"
More from arisng/github-copilot-fc
openspec-propose
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
1openspec-explore
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
1aspire-cli
Guidance for using the .NET Aspire CLI to create, initialize, run, update, publish, deploy, and manage Aspire AppHost projects. Use when selecting or explaining Aspire CLI commands, flags, or workflows (new/init/run/add/update/publish/deploy/do/exec/config/cache/mcp), or when upgrading to Aspire 13.1 CLI behaviors. Also covers AI-native resource management via the Aspire MCP server (resource discovery, port discovery, console log reading, structured logs, traces, and execute resource commands). Includes combined Aspire + playwright-cli workflows for ad-hoc E2E testing and browser automation—given an Aspire AppHost project, the AI coding assistant can fully orchestrate Aspire resources and drive browser tests like a human.
1context7-cli
CLI tool for managing AI coding skills across different AI assistants like Claude, Cursor, and others. Use when you need to search, install, generate, or manage AI coding skills using the Context7 registry. Supports authentication, skill discovery, installation, and generation workflows.
1playwright-cli
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
1pdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
1