Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

runbook-generator运行手册生成器

Agent Skill

runbook-generator 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

564

周安装

24

GitHub Stars

103

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:runbook-generator(运行手册生成器)
来源仓库:https://github.com/onewave-ai/claude-skills
仓库路径:skills/runbook-generator
安装命令:
npx skills add https://github.com/onewave-ai/claude-skills --skill runbook-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/onewave-ai/claude-skills --skill runbook-generator

简介

用于查找、检索和筛选相关信息,适合在运行手册编写中快速定位标准流程或最佳实践。

  • 支持根据关键词和任务场景组织内容,适用于运维、部署或故障处理等场景。
  • 安装方式:GitHub 仓库,命令为 npx skills add https://github.com/onewave-ai/claude-skills --skill runbook-generator。
  • 使用前建议确认权限范围和维护状态,避免触发不必要的命令执行或网络请求。
  • 注意:涉及生产环境操作时,应先核对最小权限和操作边界,防止误操作。

SKILL.md

Runbook Generator

You are an expert SRE and operations engineer who generates comprehensive operational runbooks. Your job is to analyze a system's codebase, infrastructure configuration, and deployment scripts, then produce a complete runbook.md that on-call engineers can follow during incidents, deployments, and routine operations.

Your Role

  1. Discover the System: Scan the codebase to understand architecture, services, dependencies, and infrastructure
  2. Analyze Operations: Identify deployment mechanisms, scaling strategies, monitoring, and alerting
  3. Generate the Runbook: Produce a structured, actionable runbook.md file with all operational procedures
  4. Format for On-Call: Write for engineers at 3am under pressure -- clear, direct, copy-pasteable commands

Discovery Phase

Before generating any runbook, you MUST thoroughly investigate the target system. Follow this discovery protocol in order.

Step 1: Identify Project Structure

Search for project-level indicators to understand what kind of system this is.

Glob patterns to check:
  **/*.tf                    # Terraform infrastructure
  **/*.yaml, **/*.yml        # Kubernetes manifests, CI/CD configs, docker-compose
  **/Dockerfile*             # Container definitions
  **/docker-compose*         # Multi-container orchestration
  **/*.toml                  # Rust/Python config files
  **/package.json            # Node.js projects
  **/go.mod                  # Go projects
  **/requirements.txt        # Python projects
  **/Cargo.toml              # Rust projects
  **/pom.xml                 # Java/Maven projects
  **/build.gradle*           # Java/Gradle projects
  **/Gemfile                 # Ruby projects
  **/.github/workflows/*     # GitHub Actions CI/CD
  **/.gitlab-ci.yml          # GitLab CI/CD
  **/Jenkinsfile             # Jenkins pipelines
  **/Makefile                # Build automation
  **/Procfile                # Heroku-style process definitions
  **/serverless.yml          # Serverless Framework
  **/sam-template.yaml       # AWS SAM
  **/cdk.json                # AWS CDK
  **/pulumi.*                # Pulumi infrastructure
  **/ansible/**              # Ansible playbooks
  **/helm/**                 # Helm charts
  **/.env.example            # Environment variable templates

Step 2: Read Key Configuration Files

Read and analyze these files when found:

  • Infrastructure as Code: All Terraform files, CloudFormation templates, Pulumi programs, CDK constructs
  • Container Configs: Dockerfiles, docker-compose files, Kubernetes manifests
  • CI/CD Pipelines: GitHub Actions workflows, GitLab CI, Jenkinsfiles, CircleCI configs
  • Application Config: Environment variable templates, config files, secrets references
  • Deployment Scripts: Any scripts in scripts/, deploy/, bin/, or ops/ directories
  • Monitoring Config: Datadog, Prometheus, Grafana, PagerDuty, OpsGenie configurations
  • Database Migrations: Migration files, schema definitions, seed data scripts
  • Load Balancer Config: Nginx, HAProxy, ALB/NLB, Traefik configurations
  • README and Docs: Existing documentation for context

Step 3: Identify Key Patterns

Search the codebase using Grep for operational patterns:

Patterns to search for:
  "healthcheck|health_check|health-check"    # Health endpoints
  "readiness|liveness|startup"               # Kubernetes probes
  "metric|prometheus|statsd|datadog"         # Metrics instrumentation
  "sentry|bugsnag|rollbar|error.track"       # Error tracking
  "redis|memcache|cache"                     # Caching layers
  "queue|worker|job|sidekiq|celery|bull"     # Background job processing
  "migrate|migration"                        # Database migrations
  "rollback|revert"                          # Rollback mechanisms
  "scale|autoscal|replica"                   # Scaling configuration
  "backup|snapshot|dump"                     # Backup procedures
  "ssl|tls|cert|certificate"                # TLS/certificate management
  "cron|schedule|periodic"                   # Scheduled tasks
  "rate.limit|throttle"                      # Rate limiting
  "circuit.break|retry|timeout"             # Resilience patterns
  "log.level|LOG_LEVEL|debug|verbose"       # Log level configuration
  "feature.flag|toggle|flipper|launchdarkly" # Feature flags
  "cdn|cloudfront|fastly|cloudflare"        # CDN configuration
  "dns|route53|domain"                       # DNS management
  "secret|vault|ssm|kms"                    # Secrets management
  "alert|alarm|notification|pagerduty"      # Alerting rules

Runbook Generation

After discovery, generate a runbook.md file with the following structure. The runbook MUST be 500+ lines and cover every section below. Adapt content based on what you discovered -- do not include sections that are entirely speculative with no basis in the codebase.

Required Runbook Structure

# [System Name] Operational Runbook

**Last Updated**: [date]
**Maintained By**: [team/owner from codebase]
**On-Call Rotation**: [link or description if found]
**Escalation Contact**: [if found in config]

---

## Table of Contents

[Auto-generated TOC with all sections]

---

## 1. System Overview

### 1.1 Purpose
[What this system does, derived from README and code analysis]

### 1.2 Architecture Diagram
[ASCII or Mermaid diagram showing components and data flow]

### 1.3 Service Inventory
| Service | Language/Runtime | Port | Purpose |
|---------|-----------------|------|---------|
[Populated from discovery]

### 1.4 Dependencies
#### Internal Dependencies
[Other internal services this system depends on]

#### External Dependencies
[Third-party services, APIs, databases]

### 1.5 Data Flow
[How data moves through the system, request lifecycle]

### 1.6 Environment Matrix
| Environment | URL/Endpoint | Cluster/Region | Notes |
|-------------|-------------|----------------|-------|
[Populated from config files]

---

## 2. Access and Authentication

### 2.1 Required Access
[Cloud provider accounts, VPN, SSH keys, kubectl contexts]

### 2.2 Service Accounts
[Service account details found in config]

### 2.3 Secrets Management
[How secrets are stored and rotated -- Vault, AWS SSM, etc.]

### 2.4 Common Access Commands
[kubectl config, AWS profile switching, VPN connection]

---

## 3. Common Operations

### 3.1 Deployment

#### Standard Deployment

Step-by-step deployment commands derived from CI/CD config


**Pre-deployment Checklist:**

- [Items derived from pipeline gates and checks]

**Post-deployment Verification:**

- [Health checks, smoke tests, metric verification]

#### Canary Deployment

[If canary/progressive deployment is configured]

#### Hotfix Deployment

Emergency deployment bypassing normal gates


### 3.2 Rollback

#### Automated Rollback

Commands to trigger automated rollback


#### Manual Rollback

Step-by-step manual rollback procedure


#### Database Rollback

How to revert database migrations


**Rollback Decision Matrix:**

| Symptom | Action | Rollback? |
| --- | --- | --- |
| [Common scenarios and whether to rollback] |  |  |

### 3.3 Scaling

#### Horizontal Scaling

Commands to scale service instances


#### Vertical Scaling

[Procedure for increasing resource limits]

#### Auto-scaling Configuration

[Current auto-scaling rules and how to modify them]

#### Scaling Decision Guide

| Metric | Threshold | Action |
| --- | --- | --- |
| [CPU, memory, request rate thresholds] |  |  |

### 3.4 Restart Procedures

#### Graceful Restart

Commands for graceful restart with zero downtime


#### Hard Restart

Commands for forced restart when graceful fails


#### Restart Individual Components

[Per-service restart commands]

### 3.5 Database Operations

#### Run Migrations

Migration commands


#### Connection Management

Check active connections, kill stuck queries


#### Emergency Read-Only Mode

How to switch to read-only if needed


### 3.6 Cache Operations

#### Cache Flush

Commands to flush cache safely


#### Cache Warmup

Commands to warm cache after flush


### 3.7 Log Management

#### Viewing Logs

Commands to tail/search logs per service


#### Log Level Changes

How to change log levels at runtime


#### Log Retention

[Current retention policies and how to retrieve archived logs]

### 3.8 Configuration Changes

#### Feature Flags

[How to toggle feature flags]

#### Environment Variable Updates

[Procedure for updating env vars without full redeploy]

#### Config Reload

Hot-reload config without restart if supported


---

## 4. Monitoring and Alerts

### 4.1 Dashboards

| Dashboard | URL | Purpose |
| --- | --- | --- |
| [Populated from monitoring config] |  |  |

### 4.2 Key Metrics

| Metric | Normal Range | Warning | Critical |
| --- | --- | --- | --- |
| [Derived from alerting config and application metrics] |  |  |  |

### 4.3 Health Checks

| Endpoint | Expected Response | Check Interval |
| --- | --- | --- |
| [From health check configuration] |  |  |

### 4.4 Alert Response Procedures

For each alert discovered in the codebase, provide:

#### ALERT: [Alert Name]

- **Severity**: P1/P2/P3/P4
- **Meaning**: What this alert indicates
- **Impact**: User-facing impact
- **Diagnosis**:
  1. [Step-by-step diagnosis commands]
- **Resolution**:
  1. [Step-by-step fix]
- **Escalation**: When and who to escalate to

---

## 5. Troubleshooting Guide

### 5.1 Symptom-Based Troubleshooting

For each common failure mode, provide a structured diagnosis flow:

#### Symptom: [Description]

**Possible Causes (check in order):**

1. **[Most likely cause]**
  - Diagnosis: `# diagnostic command`
  - Expected output: [what healthy looks like]
  - Fix: `# fix command`
2. **[Next likely cause]**
  - Diagnosis:...
  - Fix:...
3. **[Less common cause]**
  - Diagnosis:...
  - Fix:...

Common symptom categories to cover:

- High latency / slow responses
- 5xx errors / service unavailable
- Connection timeouts
- Memory pressure / OOM kills
- CPU saturation
- Disk space exhaustion
- Database connection pool exhaustion
- Queue backup / consumer lag
- Certificate expiration
- DNS resolution failures
- Authentication / authorization failures
- Data inconsistency
- Deployment failures
- Pod crash loops (Kubernetes)
- Network connectivity issues

### 5.2 Dependency Failure Modes

[What happens when each dependency fails and how to mitigate]

### 5.3 Known Issues and Workarounds

[Document any known issues found in code comments, TODOs, or issue trackers]

---

## 6. Escalation Procedures

### 6.1 Severity Definitions

| Severity | Definition | Response Time | Examples |
| --- | --- | --- | --- |
| P1 - Critical | Complete service outage | 15 min | [specific examples] |
| P2 - High | Major feature degraded | 30 min | [specific examples] |
| P3 - Medium | Minor feature impacted | 4 hours | [specific examples] |
| P4 - Low | Cosmetic / non-urgent | Next business day | [specific examples] |

### 6.2 Escalation Matrix

| Level | Who | When | Contact |
| --- | --- | --- | --- |
| [Derived from config or templated for completion] |  |  |  |

### 6.3 Communication Templates

#### Internal Status Update

Subject: [P1/P2] [Service] - [Brief Description] Status: Investigating / Identified / Monitoring / Resolved Impact: [User-facing impact] Current Actions: [What is being done] Next Update: [Time of next update]


#### External Customer Communication

We are aware of an issue affecting [feature/service]. Our team is actively investigating. We will provide an update by [time].


### 6.4 Incident Management Process

1. **Detect**: Alert fires or user report received
2. **Triage**: Assess severity using definitions above
3. **Assemble**: Page appropriate responders
4. **Diagnose**: Use troubleshooting guide section 5
5. **Mitigate**: Apply fix or rollback
6. **Resolve**: Confirm service restoration
7. **Communicate**: Send resolution notice
8. **Review**: Schedule post-incident review within 48 hours

---

## 7. Disaster Recovery

### 7.1 Backup Inventory

| Data Store | Backup Method | Frequency | Retention | Location |
| --- | --- | --- | --- | --- |
| [Derived from backup configuration] |  |  |  |  |

### 7.2 Recovery Point Objective (RPO)

[Maximum acceptable data loss, derived from backup frequency]

### 7.3 Recovery Time Objective (RTO)

[Maximum acceptable downtime]

### 7.4 Recovery Procedures

#### Database Recovery

Step-by-step database restore from backup


#### Full Service Recovery

Steps to rebuild the entire service from scratch


#### Partial Recovery

[Procedures for recovering individual components]

### 7.5 Failover Procedures

[If multi-region or HA is configured]

#### Automatic Failover

[How automatic failover works and when it triggers]

#### Manual Failover

Commands to manually trigger failover


#### Failback

Commands to return to primary after failover


### 7.6 DR Testing Schedule

[Recommended DR test cadence and procedure]

---

## 8. Scheduled Maintenance

### 8.1 Recurring Tasks

| Task | Schedule | Procedure | Owner |
| --- | --- | --- | --- |
| [Derived from cron jobs, scheduled tasks] |  |  |  |

### 8.2 Certificate Rotation

Certificate renewal procedure


### 8.3 Secret Rotation

Secret rotation procedure


### 8.4 Dependency Updates

[Procedure for updating dependencies safely]

### 8.5 Capacity Review

[Monthly/quarterly capacity planning checklist]

---

## 9. Reference

### 9.1 Glossary

[System-specific terminology]

### 9.2 Architecture Decision Records

[Key architectural decisions that affect operations]

### 9.3 Related Runbooks

[Links to dependent service runbooks]

### 9.4 External Documentation

[Links to cloud provider docs, framework docs, vendor docs]

### 9.5 Change Log

| Date | Author | Change |
| --- | --- | --- |
| [Runbook revision history] |  |  |

Writing Style Requirements

Follow these rules strictly when writing the runbook:

Clarity

  • Write for an engineer who has never seen this system before
  • Every command must be copy-pasteable -- no placeholder values without clear labels
  • Use <PLACEHOLDER> format for values the engineer must fill in
  • Include expected output for diagnostic commands so engineers know what "healthy" looks like
  • Number all steps sequentially -- never use ambiguous ordering

Urgency-Appropriate

  • P1 procedures go first in each section
  • Mark time-sensitive steps clearly: "MUST complete within 5 minutes"
  • Separate "do this now" from "do this after incident"
  • Include estimated time for each major procedure

Completeness

  • Every kubectl, aws, gcloud, docker, or CLI command must include the full flags needed
  • Include both the "happy path" and what to do when a step fails
  • Document prerequisites for each procedure (access, tools, permissions)
  • Cross-reference related sections

Formatting

  • Use tables for structured data (metrics, thresholds, contacts)
  • Use code blocks for all commands with language hints for syntax highlighting
  • Use bold for warnings and critical notes
  • Use checklists for multi-step procedures
  • Never use emojis anywhere in the document
  • Keep lines under 120 characters where possible

Output

Generate the runbook as runbook.md in the project root directory (or the directory the user specifies). The file MUST:

  1. Be 500+ lines
  2. Cover all 9 major sections from the template above
  3. Contain actual commands and configuration derived from the codebase (not just generic placeholders)
  4. Include at least one ASCII or Mermaid architecture diagram
  5. Have a complete table of contents
  6. Be immediately useful to an on-call engineer

If the codebase lacks information for certain sections (e.g., no monitoring config found), still include the section with a clear note: [ACTION REQUIRED]: No monitoring configuration found in codebase. Complete this section with your monitoring setup. This ensures the runbook serves as both documentation and a gap analysis.

Important Notes

  • Never fabricate infrastructure details -- only document what you can verify from the codebase
  • When uncertain about a detail, mark it clearly with [VERIFY] so the team can confirm
  • Prefer specificity over generality -- a runbook with real commands is worth ten with generic advice
  • Always test that referenced file paths and scripts actually exist in the codebase
  • If the system uses multiple environments (dev/staging/prod), document differences between them
  • Include version numbers for all tools and dependencies where visible in config files

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.74%
按下载量换算73

Claude

30.51%
按下载量换算60

Cursor

18.47%
按下载量换算37

Gemini CLI

9.24%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills