agentleFS
jianjian12138jianjian12138/test-skills/skills/qa-chaos/SKILL.md

qa-chaos

Skill0 starsChanged 3 months agoMITView on GitHub

混沌工程治理门禁技能:校验混沌实验规格是否「受治理」——业务关键实验必须定义稳态假设、终止条件、回退方案与爆炸半径;未受治理的关键实验产出阻断信号,避免在生产盲目注入故障。触发词:"混沌工程", "chaos", "故障注入", "韧性", "resilience", "混沌实验", "稳态假设", or after qa-perf-analysis. 英文触发词(English triggers):chaos engineering, fault injection, resilience.

The file

Files
SKILL.md

qa-chaos 混沌工程治理门禁

在系统上线前,用受控的故障注入验证系统韧性(混沌工程)。本技能是一个治理门禁:它不实际对目标系统注入故障,而是校验你设计的混沌实验规格是否「受治理」——业务关键实验必须补齐四要素,否则视为高危、阻断发布。

⚠️ 治理门禁 · 不执行外部工具:本技能仅校验混沌实验规格是否受治理,不实际对目标系统注入任何故障;所有判定基于你提供的 YAML/JSON 规格,不做运行时探测。

何时使用

  • 你准备做故障演练 / 混沌实验(Pod 杀除、网络延迟、磁盘满、依赖超时等)。
  • 你写好了混沌实验 YAML/JSON,想先卡一道「是否安全可控」的门禁。
  • 在 qa-perf-analysis 之后,或作为发布前韧性保障的一环。

规则(治理四要素)

规则含义严重度
C-STEADY实验须声明稳态假设(steady_state)缺则 high;业务关键缺则 critical
C-ABORT实验须有终止条件(abort_conditions 非空)缺则 high;业务关键缺则 critical/blocking
C-FALLBACK实验须有回退方案(fallback)缺则 high;业务关键缺则 critical/blocking
C-BLAST实验须界定爆炸半径(blast_radius)缺则 high

业务关键(business_critical: true)实验缺上述任一要素 → 产出 blocking=true 信号,门禁失败。

使用方式

python qa-chaos/scripts/chaos_gate.py --spec chaos.json --out signals

诚实边界(重要)

  • 本技能只校验实验规格的治理完整性,不实际对目标系统注入任何故障(无基础设施 / 网络依赖)。
  • 实际故障注入需配合 Chaos Mesh / Litmus / 云厂商故障演练平台在受控环境执行;本技能确保「先治理、再注入」。
  • 它不评估系统真实的韧性表现,只保证实验本身是安全可终止的。

参考资料

  • 检查项、阈值、CLI 用法与常见坑:见 references/guide.md。

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.