/spec-autopilot:autopilot-test-auditfrom spec-autopilot
Use when the user wants a read-only static audit of test rot — for example asks to '检测测试腐烂' or 'audit tests', suspects deleted runtime scripts are still referenced in tests, hook files were renamed, weak assertions or duplicate case names may have crept in, or a candidate list at .cache/spec-autopilot/test-rot-candidates.json needs to be regenerated for manual review before any test edits.
Ships in spec-autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
autopilot-test-fix skillpre-commit hook(建议在 dist rebuild 之后调用 engineering-sync-gate.sh)bash ${CLAUDE_PLUGIN_ROOT}/runtime/scripts/detect-test-rot.sh --changed-files "<files>" --deleted-files "<files>"| Rule | Severity | 触发条件 |
|---|---|---|
| R1 | warn | 删除/重命名 runtime/scripts/<X>.sh 但 tests/ 下仍有 grep 命中 |
| R2 | warn | 源码中 symbol 删除但测试仍引用(启发式:基于函数名相似度) |
| R3 | info | hooks/ 下文件修改 → 提示相关 test 需回归 |
| R4 | warn | 弱断言模式:assert_exit "x" 0 0 / [ "a" = "a" ] / grep -q . . |
| R5 | warn | 重复 case 名称(同一文件内 / 跨 tests/ 全量) |
<project_root>/.cache/spec-autopilot/test-rot-candidates.json —— {timestamp, checks:[{rule_id, severity, source_file, target_file, reason, evidence}]}0(warn-only)engineering-sync-gate.sh 根据 config 决定详见 references/audit-rules.md。
What SKILL.md sets; muted values are Claude Code's defaults
22 skills in this plugin
/autopilotUse when the user requests an end-to-end spec-driven delivery pipeline (requirements → OpenSpec → implementation → testing → archive); orchestrates Phase 0-7./autopilot-agentsUse when the user wants to discover, install, list, hot-swap, or get recommendations for phase-specific autopilot sub-agents sourced from community catalogs (OMC, Anthropic official, VoltAgent, etc.), or when the autopilot setup flow needs to resolve a missing agent for a given phase./autopilot-dispatchUse when the autopilot orchestrator main thread is about to dispatch a phase-specific sub-agent via the Task tool and needs the JSON envelope contract, explicit path injection, and parameterized prompt templates. Not for direct user invocation; skip when the current context is not the autopilot orchestrator.Other plugins' skills for the same job
npx claudepluginhub stoicatom/claude-autopilot --plugin spec-autopilot