name: runegard description: > Autonomous runbook executor for Kubernetes operations. Reads markdown runbooks, parses them into executable decision trees, and follows them step-by-step against a live K8s cluster. Requests human approval before any mutating action. Includes an CL-powered improvement loop that learns from execution failures.
RuneGärd -- Kubernetes Runbook Executor
When to Use This Skill
Use this skill when:
- You have a runbook document describing an operational procedure
- You need to diagnose or remediate a Kubernetes issue
- You want to follow a step-by-step troubleshooting guide against a live cluster
Workflow
Phase 1: Parse the Runbook
- Accept a runbook file path from the user
- Run:
uv run python -m runegard parse <runbook_path> - Present the parsed structure to the user for confirmation:
- Number of steps detected
- Decision points identified
- Commands that will be executed
- If the user wants changes, adjust and re-parse
Phase 2: Execute the Runbook
- Ask the user for execution mode:
- Interactive (default): pause before remediation steps for approval
- Dry-run: walk the tree without executing any commands
- Run:
uv run python -m runegard run <runbook_path> [--dry-run] - For each step:
- DIAGNOSTIC steps: execute automatically, report output
- REMEDIATION steps: present the command, risk, and rollback to the user. Wait for 'approve', 'skip', or 'abort'
- VERIFICATION steps: execute automatically, report whether check passed
- ESCALATION steps: present escalation info, ask if user wants to continue
- If any step fails: offer retry, skip, rollback, or abort
- Consult
references/learned_patterns.mdfor known patterns that might affect execution
Phase 3: Report Results
- Present a summary: steps completed, issues found, actions taken
- The trace is saved to
trace_log.json
Phase 4: Improve (Continual Learning)
- If the execution had failures or suboptimal paths, ask: "Would you like me to analyze this run and improve the skill for next time?"
- If yes, run:
uv run python -m runegard improve trace_log.json --runbook <path> - Present proposed learnings and suggestions for review
- Apply approved learnings to
references/learned_patterns.md
Important Rules
- NEVER execute a REMEDIATION command without explicit user approval
- ALWAYS log every command and its output to the trace log
- ALWAYS check for a rollback path before executing any REMEDIATION step
- If a command's output doesn't match any expected pattern, flag it and ask the user
- Consult
references/learned_patterns.mdbefore executing -- it contains patterns from previous runs
Skills similaires
Architecte Docker Compose
DevOps
Concoit des configurations Docker Compose optimisees.
Claude CodeCopilotadvanced
430
156
1,650
Rapport de Post-Mortem
DevOps
Rédige des rapports post-mortem d'incidents structurés et blameless.
claudeCursorWindsurfintermediate
141
43
568
Créateur de Runbooks
DevOps
Crée des runbooks opérationnels clairs pour les procédures DevOps courantes.
claudeCursorWindsurfintermediate
108
32
500