agentleFS
richyuhrichyuh/claude-skills/runbook/SKILL.md

runbook

Skill0 starsChanged 2 months agoMITView on GitHub

Generate or update a comprehensive operational runbook (docs/runbook/) tailored to the project's size and complexity

  • Reads credentials

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, discover and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 4 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 4 projects that use this

  • asterkinSkill

    adr

    Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.

    Also in 5 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 4 projects that use this

  • SentrySkill

    e2e

    Run E2E tests for Sentry JavaScript SDK test applications

    Also in 3 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before launching any agents, check if a docs/runbook/ directory already exists.

    line 14
  2. Distinctive:

    Wait for all 3 agents to complete before proceeding.

    line 29
  3. Distinctive:

    Use actual values from the codebase: real file paths, real env var names, real port numbers, real commands

    line 64

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generate Operational Runbook

Analyze the codebase in depth and produce a docs/runbook/ directory with operational reference documentation. Scales from a single consolidated doc for small projects up to 10 separate pages for large monorepos. Upserts — creates new or updates existing runbook content.

Instructions

0. Check for existing runbook

Before launching any agents, check if a docs/runbook/ directory already exists.

  • If it exists: Read docs/runbook/README.md and skim the other files. Use the existing structure, formatting, and still-valid content as a starting point. The explore agents should focus on finding new or changed information. When writing, preserve valid existing content, update stale sections, and add new discoveries — don't start from scratch.
  • If it doesn't exist: Proceed normally from step 1.

1. Launch 3 parallel explore agents for codebase understanding

Launch these 3 agents simultaneously using the Agent tool with subagent_type: "Explore" and run_in_background: true. Each should do a thorough exploration of its assigned area:

  1. Architecture & Stack — Read README, CLAUDE.md, package.json/go.mod/pyproject.toml/Cargo.toml, monorepo config (turbo.json, pnpm-workspace.yaml, nx.json, Cargo workspace), and source directory structure. Identify all services/apps/packages, their runtimes, how they communicate, database setup, auth system, key frameworks and libraries with versions.
  2. Operations & Infrastructure — Explore Dockerfiles, docker-compose files, CI/CD workflows (.github/workflows/, .gitlab-ci.yml, Jenkinsfile), deployment configs (render.yaml, fly.toml, vercel.json, k8s manifests, Pulumi/Terraform), scripts/ directory, environment variable templates (.env.example), and observability setup (logging, metrics, tracing, error tracking).
  3. Development & Testing — Explore dev scripts, test configurations (vitest/jest/pytest/go test), E2E test setup (Playwright/Cypress), test fixtures, seed scripts, linting config, hot-reload setup, and any existing docs/ or guides/. Also check for security patterns (auth guards, middleware, compliance requirements).

Wait for all 3 agents to complete before proceeding.

2. Assess project scope and choose document structure

Based on exploration results, assess the project's complexity:

Small project (single app, simple deployment, 1 database, no CI/CD or minimal):

  • Produce 1-2 files: a single README.md runbook covering all topics in consolidated sections, plus optionally a troubleshooting.md if there's enough to say.

Medium project (multiple packages or a backend+frontend split, CI/CD, some infrastructure, testing):

  • Produce 3-6 files: separate pages for the topics that have substantial content. Combine thin topics into a single page (e.g., merge "database" into "architecture" if there are only a few tables, merge "security" into "deployment" if there's no compliance framework).

Large project (monorepo with multiple services, complex infrastructure, multiple deployment targets, compliance/security requirements, extensive testing):

  • Produce up to 10 files: one per topic where each has enough depth to warrant its own page.

The candidate topics (include only those relevant to the project):

TopicInclude When
ArchitectureAlways — service map, data flow, key abstractions
Stack & DependenciesMultiple languages/runtimes, or 20+ key dependencies
Local DevelopmentNon-trivial setup (Docker, multiple services, env vars)
Database OperationsMigrations, multiple DBs, schema management
DeploymentCI/CD pipelines, multiple environments, container builds
ObservabilityLogging, metrics, tracing, error tracking configured
TestingMultiple test types (unit, integration, E2E)
TroubleshootingAlways — common issues and fixes
Security & ComplianceAuth system, HIPAA/SOC2/GDPR, data scoping, guards
Email / NotificationsTransactional email, push notifications, webhooks

3. Write the runbook

For each file, write content that goes deeper than the README. The audience is an engineer who needs to develop, deploy, debug, or maintain the system.

Content guidelines:

  • Use actual values from the codebase: real file paths, real env var names, real port numbers, real commands
  • Include tables for structured data (ports, env vars, services, commands)
  • Include code blocks for commands and config examples
  • Include diagrams (ASCII art) for service maps and request flows where helpful
  • Reference specific source files that an engineer would need to read
  • For troubleshooting: structure as Symptom → Cause → Fix
  • Never include secret values — only variable names

README.md must always include:

  • Table of contents linking to all other runbook pages
  • Quick-reference table: ports, key commands, health check endpoints

4. Report completion

Tell the user:

  • How many files were created/updated
  • The document structure chosen and why (small/medium/large)
  • A brief summary of the key operational details captured

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.