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

sre-runbooksSRE 运行手册

Agent Skill

sre-runbooks 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

392

周安装

16

GitHub Stars

4

下载量

127
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill sre-runbooks

简介

sre-runbooks 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

  • 它支持对代码提交、合并请求及协作流程进行管理,适用于开发团队协作场景。
  • 可通过 npx skills add 命令从 GitHub 安装,具体用法需结合原始 README 进一步确认。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

sre-runbooks

Purpose

This skill delivers standardized SRE runbooks for managing incidents and performing system maintenance in DevOps environments. It accesses pre-defined procedures to ensure consistent responses to issues like outages or upgrades.

When to Use

Use this skill during active incidents for quick reference, routine maintenance tasks, or when onboarding new SRE team members. Apply it in production environments facing downtime, scaling issues, or compliance checks to follow best practices.

Key Capabilities

  • Retrieve runbooks by ID, type, or keyword (e.g., "outage" or "database").
  • Execute automated steps from runbooks, such as running scripts or API calls.
  • Generate custom checklists based on runbook templates for specific environments.
  • Integrate with monitoring tools to trigger runbooks on alerts.
  • Support versioning of runbooks for tracking changes over time.

Usage Patterns

Invoke this skill via the sre-cli tool or API calls from your AI agent code. Always set the environment variable $SRE_API_KEY for authentication before use. For CLI, prefix commands with authentication checks. In code, import the skill as a module and call functions with required parameters. Example pattern: Check if the runbook exists first, then execute it in a try-catch block.

Common Commands/API

Use the sre-cli for direct access or the REST API for programmatic integration. All commands require $SRE_API_KEY set in the environment.

  • CLI Command: List runbooks sre-cli runbook list --filter sre --output json This fetches a JSON list of SRE-tagged runbooks; use --filter for tags like "devops".
  • CLI Command: Get a specific runbook sre-cli runbook get --id 456 --format markdown Retrieves runbook ID 456 in Markdown; add --format yaml for YAML output.
  • API Endpoint: Retrieve runbook GET https://api.openclaw.com/sre-runbooks/v1/runbooks/{id} Headers: Authorization: Bearer $SRE_API_KEY Response: JSON object with runbook details, e.g., {"id": 456, "steps": ["Step 1: Check logs"]}.
  • API Endpoint: Execute runbook step POST https://api.openclaw.com/sre-runbooks/v1/runbooks/{id}/execute Body: {"step": 1, "params": {"environment": "prod"}} This runs the first step of the runbook with production parameters.

Config formats use JSON or YAML for inputs. Example config file (runbook-config.json): {"id": "789", "environment": "dev", "overrides": {"timeout": 300}}

Integration Notes

Integrate this skill with your AI agent's workflow by adding it as a dependency in your codebase. Use $SRE_API_KEY for auth; set it via environment variables in deployment scripts. For example, in a Node.js app, install via npm install sre-runbooks-sdk, then import and initialize: const sreSDK = require('sre-runbooks-sdk'); sreSDK.init({apiKey: process.env.SRE_API_KEY, baseUrl: 'https://api.openclaw.com'}); Ensure your agent handles rate limits (e.g., 100 requests/min) by implementing retry logic with exponential backoff. For CI/CD, embed runbooks in pipelines using webhooks to trigger on Git events.

Error Handling

Always wrap skill invocations in error handlers. For CLI commands, check exit codes and parse stderr. For API calls, catch HTTP errors (e.g., 401 for auth failures, 404 for missing runbooks). Example in Python: import sre_runbooks try: response = sre_runbooks.get_runbook(id=123, api_key=os.environ['SRE_API_KEY']) except sre_runbooks.AuthError: log_error("Authentication failed; check $SRE_API_KEY") except sre_runbooks.NotFoundError: fallback_to_default_runbook() Common issues: Invalid API keys return 401; handle by prompting for re-auth. Rate limit errors (429) require a 5-second delay before retrying.

Concrete Usage Examples

Example 1: Handle a database outage First, query for the relevant runbook: sre-cli runbook get --id 123. Then, execute the steps: steps = sre_runbooks.execute(id=123, params={"db_type": "postgres"}) This retrieves and runs the outage procedure, outputting logs for review.

Example 2: Perform routine system maintenance Use the API to schedule a maintenance runbook: POST https://api.openclaw.com/sre-runbooks/v1/runbooks/456/schedule Body: {"time": "2023-10-01T02:00:00Z", "params": {"systems": ["web", "cache"]}} This automates updates, ensuring systems are patched without downtime.

Graph Relationships

  • Related to: devops-tools (for shared DevOps utilities)
  • Depends on: monitoring-skills (for alert integration)
  • Clusters with: devops-sre (primary cluster for this skill)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.93%
按下载量换算43

Claude

31.74%
按下载量换算40

Cursor

17.13%
按下载量换算22

Gemini CLI

10.36%
按下载量换算13

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills