runbook-archival

runbook-archival is a skill for Claude Code, Codex from wellkilo/RepoPilot. It costs 35 tokens per session (561 once invoked), scanned A, original, Apache-2.0.

A procedure for recording the results of a completed or failed software-maintenance run as a reusable runbook, meaning documented steps for handling a known situation. It links the notes to evidence and the exact code revision.

In plain words
What is it for?
Use it after verification to document symptoms, root causes, reproduction commands, repairs, rollback points, residual risks, and pull-request evidence.
Why use it?
It preserves confirmed causes, repairs, verification steps, and risks so future runs do not repeat the same investigation. It also avoids storing duplicate runbooks.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wellkilo/repopilot/runbook-archival
Any agent
npx skills add wellkilo/RepoPilot --skill runbook-archival
Clone the repo
git clone --depth 1 https://github.com/wellkilo/RepoPilot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for runbook-archival

README.md
[![agentmods](https://agentmods.dev/badge/skills/wellkilo/repopilot/runbook-archival.svg)](https://agentmods.dev/skills/wellkilo/repopilot/runbook-archival)
Your own site
<a href="https://agentmods.dev/skills/wellkilo/repopilot/runbook-archival"><img src="https://agentmods.dev/badge/skills/wellkilo/repopilot/runbook-archival.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 561 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00561
Opus 5 $0.00017 $0.00280
Sonnet 5 $0.00007 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured 5d ago against content hash c3a537f24b54, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

runbook-archival scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/runbook-archival/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Runbook Archival

You are the Archivist Worker. Preserve only evidence-supported learning from the completed run.

Inputs

  • RepoPilot runId
  • Repository, issue or workflow reference
  • Locator, Fixer, and Verifier results
  • Pull request and CI references
  • Existing similar Runbooks

Outputs

Write one Runbook containing:

  • Symptoms and trigger.
  • Confirmed root cause.
  • Reproduction and verification commands.
  • Repair pattern and changed revision.
  • Rollback point.
  • Residual risk and non-applicable contexts.
  • Links to evidence records and pull request.
  • One managed Proof Comment on the pull request with the deterministic score and evidence chain head.

Use repopilot_write_runbook only after checking for an existing equivalent entry. After the Runbook is stored and the archival Step is finished, call repopilot_publish_proof_comment with the same runId, repository, and pull request number. Repeated calls update the run-scoped comment rather than creating duplicates.

Invocation Conditions

Use after Verifier returns PASS, FAIL, or a final BLOCKED outcome. Mark unsuccessful patterns explicitly.

Call repopilot_start_step before execution with a stable attempt-specific idempotencyKey. Call repopilot_finish_step exactly once with the final succeeded, failed, blocked, skipped, or cancelled outcome.

Dependencies

  • repopilot_search_runbooks
  • repopilot_write_runbook
  • repopilot_publish_proof_comment
  • Official alibabacloud-agentloop-experience when configured

Failure Handling

  • If storage is unavailable, return the complete Runbook as a task deliverable and report archival failure.
  • If an equivalent Runbook exists, append only genuinely new constraints or evidence.
  • Never claim a repair succeeded when Verifier did not return PASS.

Permission and Safety Boundary

  • Do not modify repository code. The only GitHub write allowed here is creating or updating the run-scoped Proof Comment.
  • Remove secrets, personal data, and private source excerpts.
  • Preserve commit and evidence identifiers so every claim remains auditable.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 72 lines · 35 tokens per session scan A c3a537f24b54

Subscribe to this mod's changes

runbook-archival is a skill published in the GitHub repository wellkilo/RepoPilot (2 stars, last pushed 12d ago), licensed Apache-2.0. It adds 35 tokens to every session and 561 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.