360 Secure SkillHub
360 安全技能中心

COE Root Cause

面向反复故障、假成功、遗漏工作、数据丢失和脆弱自动化的纠错(COE)根因分析流程:先分类故障模式,收集最小证据包,建立时间线并做至少 5 个为什么,区分近因与根因,给出带验证证据的纠正措施,最后按模板输出含影响、时间线、根因、验证与残余风险的报告。

ghitafilali
ghitafilali
热度 23.95
最近更新 2026-06-05 16:00:33
分类:数据依赖:纯提示词应用场景:报告撰写 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add coe-root-cause
Metadata
name
coe-root-cause
description
Run a Correction of Error root-cause analysis for recurring failures, false success, missed work, data loss, and brittle automation.
version
1.0.0

COE Root Cause

Use when the user asks for a COE, Correction of Error, postmortem, root-cause analysis, "why did this recur", "what was missed", or "do not let this happen again".

The job is to explain the mechanism that allowed the failure, fix the mechanism where possible, and prove the same class of failure is harder to repeat.

Library Fit

Use this skill for a formal post-failure Correction of Error: a recurring failure, false success, missed work, data loss, brittle automation, or user-visible miss that needs a written record with impact, timeline, root cause, corrective actions, and verification.

Adjacent skills keep their narrower jobs:

  • Debugging or investigation skills handle active bugs before the failure mechanism is understood.
  • Review skills handle pre-landing diff or PR risk.
  • Retrospective skills summarize engineering trends over a time window.
  • Skill-creation skills turn a proven workflow or corrective action into a durable skill, script, test, or guardrail.

Rules

  • Classify the failure before rerunning or changing anything.
  • Do not stop at symptoms like "timeout", "model failed", "tool failed", or "human error".
  • Preserve concrete evidence: logs, command output, diffs, tests, screenshots, report paths, source references, or exact user-visible behavior.
  • Redact secrets, tokens, personally identifying information, customer data, and private workspace details. Prefer source references or short excerpts over raw dumps, especially in public artifacts.
  • Ask before public, destructive, expensive, or externally visible actions.
  • Keep private workspace, customer, or user details out of public artifacts unless the user explicitly approves disclosure.
  • If the user asked only for a report or analysis, propose corrective actions instead of applying code or workflow changes.
  • Every corrective action needs verification evidence. If it cannot be verified, rewrite it.

Failure Classification

Classify the failure before changing anything. Name the primary failure mode:

  • Required work failed visibly: command, job, test, or pipeline failed and the required work did not complete.
  • Required work silently skipped or falsely succeeded: the system reported done while required work was missing.
  • Required work completed incompletely or incorrectly: an artifact exists but is partial, stale, under-extracted, or wrong enough to matter.
  • User-visible response missed the expectation: the answer omitted a request, misrouted the work, or gave inaccurate status.
  • Optional diagnostic failed only: a non-required search, probe, or log lookup failed while required work is independently verified.

Then identify evidence-backed contributing conditions:

  • timeout, rate limit, or transient provider failure
  • missing file, schema drift, or dependency drift
  • model configuration, policy, or routing mismatch
  • source availability or extractor failure
  • brittle command, parser, query, or ad hoc script
  • unclear ownership, interface, or skill instruction
  • absent verification, closeout, or blocked-state gate
  • other or unknown, with the evidence still missing

If an optional diagnostic failure hides whether required work happened, reclassify it as false success, incomplete work, or visible failure. Do not let "optional" obscure the primary task.

Evidence Packet

Collect the smallest packet that explains the failure:

  • user request or expectation
  • promised behavior
  • actual behavior
  • first bad observable result
  • affected scope
  • relevant logs, reports, code paths, and tests
  • existing guardrail that should have caught it

State uncertainty plainly. Do not bury the answer in unrelated logs.

Analysis Loop

  1. Build a short timeline with timestamps or ordered events.
  2. Run at least 5 Whys.
  3. Continue past 5 if the answer is still a symptom, vague human explanation, or unverifiable guess.
  4. Separate proximate cause from root cause.
  5. Name the missing guardrail, unclear interface, unsafe default, or unchecked assumption that let the issue recur or become user-visible.

Bad root causes:

  • "the agent forgot"
  • "the model made a mistake"
  • "we should be more careful"
  • "the command failed"
  • "the user did not specify enough"

Good root causes identify a durable fix: a test, validator, workflow gate, ownership boundary, safer default, clearer skill instruction, or explicit blocked-state receipt.

Corrective Actions

For each action, include:

  • owner or owning surface
  • exact change
  • status: done, planned, blocked, or rejected
  • verification evidence
  • expected future detection signal

Prefer class-level safeguards over one-off cleanup.

Verification Gate

Before saying the COE is complete, run the smallest credible verification:

  • targeted regression test
  • static validation for generated docs or frontmatter
  • dry run against the failed case
  • closeout checklist mapping each user request to evidence
  • local AI/code review for nontrivial diffs

If a gate cannot run, say why and what evidence substitutes for it.

Report Template

# COE: <failure name>

Date: <date>
Status: done | planned | blocked
Severity: low | medium | high

## Summary

One short paragraph: what failed, why it mattered, and what changed.

## Impact

- Who or what was affected
- What was wrong or missing
- What was not affected

## Timeline

- <time/order>: <event>

## Failure Classification

Failure mode: <primary failure mode from Failure Classification and why>
Contributing conditions: <supported conditions, or unknown with missing evidence>

## Evidence

- <source or command>: <what it proves>

## Root Cause

### 5+ Whys

1. Why? ...

### Root Cause Statement

<mechanism, not blame>

## Corrective Actions

| Action | Status               | Verification |
| ------ | -------------------- | ------------ |
| ...    | done/planned/blocked | ...          |

## Verification

- <gate>: <result>

## Residual Risk

<what could still fail and how it will be noticed>

Closeout

Lead with the root cause and verified fix. Keep the user-facing summary short. If anything remains open, say exactly what evidence is still missing.