agentleFS
www-donghanhcungban-orgwww-donghanhcungban-org/X-Templates/.agents/skills/incident/SKILL.md

incident

Skill16 starsChanged 7 days agoMITView on GitHub

Xử lý sự cố và phân tích nguyên nhân gốc — giảm thiệt hại trước (rollback, tắt feature flag), ghi dòng thời gian và mọi lệnh đã chạy, tìm nguyên nhân gốc bằng bằng chứng (log, metric, diff deploy), viết post-mortem không đổ lỗi với hành động khắc phục có chủ và hạn. Dùng khi production lỗi/chậm/sập, cảnh báo SLO, dữ liệu sai, người dùng báo sự cố, cần viết post-mortem/RCA, hoặc gõ /incident.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use runbook, perf 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.
  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 4 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    Also in 4 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 6 projects that use this

  • LangChainSkill

    migrate

    Bring a person's local coding-agent setup into Robin — past Claude Code and Codex conversations become Robin threads, their standing preferences become personal Robin instructions, and their skills become personal Robin skills. Read this whenever someone asks to import, migrate or move over their sessions, conversations, history, memories, CLAUDE.md, AGENTS.md or skills.

    Also in 5 projects that use this

  • MicrosoftSkill

    hotfix

    Proposes a scoped version bump for a roosterjs hotfix. Given one or more commits provided by the user, determines which packages had files changed by those commits, bumps the version only for the affected version groups, and creates a draft PR. Use when asked to do a hotfix, a scoped/targeted version bump, or to release only specific commits.

    Also in 3 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 3 projects that use this

The file

Files
SKILL.md

/incident — cầm máu trước, hiểu sau, không đổ lỗi

<FW> = .xtemplates/framework ở dự án đích, framework ở repo khung. Luật: <FW>/15-operations/incident-response.md (OPS-IR-001…008); mẫu <FW>/templates/POST-MORTEM.md, RUNBOOK.md. Chạm dữ liệu thật, tiền thật, khoá/dịch vụ trả phí là điểm dừng (§Điểm dừng bắt buộc về hành động, LOOP-STOP-021): đề xuất lệnh, xt.py loop defer, không tự chạy.

1. Phân loại và mở bản ghi (≤ 5 phút)

  1. Mức độ theo định nghĩa SEV của dự án (OPS-IR-001); phạm vi: ai bị ảnh hưởng, từ lúc nào, còn tiếp diễn không.
  2. Mở bản ghi sự cố (OPS-IR-002): giờ phát hiện, triệu chứng, người điều phối. Mọi lệnh/thay đổi từ đây ghi kèm giờ (OPS-IR-005).

2. Giảm thiệt hại trước khi tìm nguyên nhân (OPS-IR-004)

  1. Có deploy/đổi cấu hình gần thời điểm bắt đầu → rollback hoặc tắt feature flag theo RUNBOOK.md là phương án đầu.
  2. Không rollback được: giảm tải, chặn đường lỗi, chuyển chế độ chỉ đọc. Thao tác lên dữ liệu thật cần snapshot ngay trước (OPS-IR-006).
  3. Xác nhận đã cầm máu bằng chính tín hiệu đã báo động (metric/SLO/log), không bằng cảm giác.

3. Nguyên nhân gốc (sau khi ổn định)

  1. Dòng thời gian từ dữ liệu: deploy, đổi cấu hình, đột biến metric, log lỗi đầu tiên, tác động bên ngoài.
  2. Tái hiện ở môi trường không phải production rồi khoanh vùng theo /debug (lệnh đỏ → giả thuyết bác bỏ được → nguyên nhân).
  3. Hỏi "vì sao lọt" cho từng lớp bảo vệ: test, review, cảnh báo, rollout. Nguyên nhân là điều kiện hệ thống, không phải một người.

4. Post-mortem và khắc phục

  1. Viết theo POST-MORTEM.md, không đổ lỗi (OPS-IR-007): tác động, dòng thời gian, nguyên nhân, điều đã tốt, điều may mắn.
  2. Hành động khắc phục có chủ + hạn (OPS-IR-008), ưu tiên cổng máy: test hồi quy, cảnh báo mới, guard, kiểm trong CI. Mỗi hành động thành task trong PLAN hoặc issue. Trước khi đóng, chạy python3 .xtemplates/scripts/xt.py incident check docs/ops/POST-MORTEM-<ngày>-<slug>.md (repo khung dùng scripts/xt.py). Hành động phòng ngừa ghi đường/dẫn::tên ca có thật hoặc “không kiểm thử được — lý do cụ thể”. Chạy ca hồi quy trong Gate của bản sửa. Khi cùng lỗi của gói đã có bằng chứng ở hai dự án, thêm fixture vào mutants.json của gói và kiểm CI phát hiện đúng ca.
  3. Bài học về công cụ/môi trường → TRAPS.md; runbook thiếu bước → sửa RUNBOOK.md trong cùng PR.

Báo cáo

Mức độ · thời gian phát hiện → cầm máu → khôi phục · hành động giảm thiệt hại · nguyên nhân gốc + bằng chứng · danh sách khắc phục (chủ, hạn) · việc chờ người.

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.