← 返回
未分类 中文

log-to-incident-report

Use when (1) user provides error logs and needs structured incident report with root cause. (2) impact. (3) and fix steps.
用于:①用户提供错误日志并需要结构化事故报告,包含根因分析;②影响范围;③修复步骤。
wangjipeng977 wangjipeng977 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 160
下载
💾 0
安装
1
版本
#latest

概述

Log To Incident Report

Use when (1) user provides error logs and needs structured incident report with root cause. (2) impact. (3) and fix steps.

Core Position

This skill solves the specific engineering problem of: user provides error logs and needs structured incident report with root cause, impact, and fix steps

This skill is NOT:

  • A general-purpose capability that activates on anything
  • A replacement for manual human judgment
  • A tool that stores state or remembers across sessions

This skill IS activated ONLY when the trigger conditions are explicitly met.

Modes

/log-to-incident-report

Default mode. Performs the core task end-to-end.

When to use: User provides input matching the trigger conditions above.

Execution Steps

  1. Receive logs — User pastes error logs, stack traces, or system output
    • Identify the log format (JSON, plain text, structured key=value)
    • Note the time range covered by the logs
    • If the input is not error logs, state: "This skill converts error logs into structured incident reports. Please provide error log content."
  1. Parse and categorize errors — Extract structured information:
    • Identify unique error types and their frequency
    • Extract error messages, codes, and stack traces
    • Note timestamps to establish an incident timeline
    • Determine affected services, endpoints, or components
  1. Analyze root cause — Determine what triggered the incident:
    • Cross-reference error patterns with timestamps
    • Identify the first error in the chain (root cause)
    • Note any preceding events that may have contributed
    • Distinguish between symptoms and root causes
  1. Assess impact — Quantify the scope of the incident:
    • How many users/requests were affected (if derivable from logs)
    • Which services or systems were impacted
    • Duration of the incident (first error to recovery)
  1. Generate incident report — Produce the structured document:
    • Incident Summary: one-paragraph overview
    • Timeline: chronological sequence of events
    • Root Cause: what caused the incident
    • Impact: scope and severity of the incident
    • Mitigation Steps: what was done to resolve it
    • Action Items: follow-up tasks to prevent recurrence
  1. Deliver with confidence level — State any assumptions or uncertainties:
    • If root cause is unclear, state "Root cause analysis based on available logs; further investigation may be needed"
    • If impact cannot be determined from logs, state what is unknown

Mandatory Rules

Do not

  • Do not make up facts or claim actions were taken that were not
  • Do not hardcode API keys — use os.getenv("API_KEY") instead
  • Do not store sensitive user data beyond the current session
  • Do not exceed token budget without warning the user first
  • Do not activate for off-topic requests — return a brief decline message

Do

  • Validate all inputs before acting
  • Handle errors gracefully with actionable error messages
  • Log actions taken for auditability
  • State explicitly when you are uncertain or data is insufficient

Quality Bar

A good output:

  • Solves exactly the problem described in the trigger conditions
  • Provides actionable result in the expected format within 3 turns
  • Handles error cases with specific guidance, not generic "try again"
  • States assumptions explicitly when input is ambiguous

A bad output:

  • Solves a different problem than the one triggered
  • Provides a generic "I can't help with that" without explaining why
  • Crashes, hangs, or returns malformed output on valid input
  • Activates for off-topic requests (false positive)

Good vs. Bad Examples

ScenarioBad OutputGood Output
---------
Trigger matched"I can help with that." + no actionCorrect transformation delivered in structured format
Invalid inputCrash or wrong result"Missing required field: [X]. Please provide [Y]."
Ambiguous inputGuesses and might be wrongStates assumption and asks for confirmation
Off-topic requestAttempts to help anyway"This skill activates when [trigger]. Please restate your request."

References

  • references/ — Detailed templates, schemas, and edge-case rules for this skill

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-29 21:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Ai Image To Code

wangjipeng977
用于:①用户提供 UI 截图或图片并要求转换为 HTML、CSS 或组件代码;②用户说“把这段转为代码”“重新构建 …”等情形。
★ 1 📥 1,423
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,883
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,603