English
Execution Contract
Default to fast; bounded natural-language invocation is allowed.
Complete one primary task by default. Continue an authorized end-to-end workflow within each Skill's permissions; Router remains recommendation-only. Pause for new material decisions or scope, not authorization already given.
Validate according to actual risk; security, production, migrations, releases and other high-risk work use audit. Read references/execution-modes.en.md only when mode selection is unclear.
CI Failure Diagnosis
Diagnose a CI-specific failure using workflow definitions, logs, repository configuration, and environment evidence. Do not implement the fix.
Boundary
- Require a CI run, log excerpt, or identifiable failed workflow context. Route ordinary runtime bugs without CI context to
bug-root-cause-analysis.
- Keep all files unchanged. Provide repair direction only.
- Never print credential values, request credential disclosure, or recommend disabling permissions, checks, branch protection, or other security controls.
- Redact credential-like values and distinguish a missing permission or credential reference from its value.
- Do not treat downstream cancellations or cascaded failures as root cause.
Workflow
- Identify the provider, workflow, run, job, matrix entry, step, command, and failure time from available evidence.
- Locate the first trustworthy error before cascaded errors, retries, skipped steps, and cleanup failures.
- Classify the failure as code, test, dependency, cache, permission/credential, runner environment, configuration, infrastructure, or flaky/unknown.
- Compare CI and local runtime versions, operating system, architecture, environment variable presence, dependency lockfile, install mode, shell, working directory, services, caches, and commands.
- Trace the evidence chain from CI input/state to the failing command, failure point, and job result.
- Propose safe local reproduction steps only from repository and workflow evidence. Mark unverified commands as hypotheses.
- Separate confirmed root cause, primary hypothesis, alternatives, and unknowns. Try to falsify flaky and cache explanations.
- Give the minimum repair direction, validation path, confidence, and evidence needed next without editing files.
Output Contract
- Failure location: provider, workflow, run, job, matrix, step, and command
- First trustworthy error
- Evidence and causal sequence
- Failure classification
- Confirmed root cause or ranked hypotheses
- CI-versus-local differences
- Safe local reproduction
- Minimum repair direction
- Validation recommendations
- Confidence and unknowns
Redact sensitive values. Do not include a patch or claim a cascade error is the root cause.
简体中文
执行契约
默认使用 fast;允许边界明确的自然语言隐式调用。
默认完成一个主任务。用户已授权完整流程时,在各 Skill 权限内连续完成;Router 仍只推荐。新重大决策或超出授权时暂停,不重复索取已有授权。
按实际风险选择验证;安全、生产、迁移、发布等高风险工作使用 audit。模式不明确时才读取 references/execution-modes.zh-CN.md。
CI 失败诊断
使用 workflow 定义、日志、仓库配置和环境证据诊断 CI 特定失败。不要实施修复。
职责边界
- 需要 CI run、日志片段或可识别的失败 workflow 上下文;没有 CI 上下文的普通运行时 Bug 交给
bug-root-cause-analysis。
- 保持所有文件不变,只给修复方向。
- 不得输出密钥值、要求用户披露密钥,也不得建议关闭权限、检查、分支保护或其他安全控制。
- 对疑似凭证值脱敏,区分缺少权限或凭证引用与凭证值本身。
- 不把后续取消或级联错误当根因。
工作流程
- 从可用证据识别 provider、workflow、run、job、matrix 项、step、命令和失败时间。
- 在级联错误、重试、跳过步骤和清理失败之前定位第一个可信错误。
- 分类为代码、测试、依赖、缓存、权限/密钥、Runner 环境、配置、基础设施或 flaky/未知。
- 对比 CI 与本地的运行时版本、操作系统、架构、环境变量是否存在、依赖锁文件、安装模式、shell、工作目录、服务、缓存和命令。
- 建立从 CI 输入/状态到失败命令、失效点和 job 结果的证据链。
- 只依据仓库和 workflow 证据提出安全本地复现步骤;未验证命令标记为假设。
- 分离已确认根因、主要假设、替代假设和未知项,并尝试证伪 flaky 与缓存解释。
- 不修改文件,给出最小修复方向、验证路径、置信度和下一步所需证据。
输出契约
- 失败位置:provider、workflow、run、job、matrix、step 和命令
- 第一个可信错误
- 证据与因果顺序
- 失败分类
- 已确认根因或排序假设
- CI 与本地差异
- 安全本地复现
- 最小修复方向
- 验证建议
- 置信度与未知项
敏感值必须脱敏。不得包含补丁,也不得把级联错误声称为根因。
1---2name: ci-failure-diagnosis3description: Diagnose a CI-specific failure from workflow definitions and logs by locating the failed workflow, job, step, and first trustworthy error, then comparing CI and local environments. Use for CI pipeline context; do not use as a general local bug analysis or implement fixes, reveal credential values, or recommend weakening security controls. 根据 workflow 定义和日志定位失败的 workflow、job、step 与第一个可信错误,并对比 CI 和本地环境以诊断 CI 特定失败。用于 CI 流水线上下文;不作为普通本地 Bug 分析,不实施修复、不泄露密钥,也不建议降低安全控制。4---56# English78## Execution Contract910Default to `fast`; bounded natural-language invocation is allowed.11Complete one primary task by default. Continue an authorized end-to-end workflow within each Skill's permissions; Router remains recommendation-only. Pause for new material decisions or scope, not authorization already given.12Validate according to actual risk; security, production, migrations, releases and other high-risk work use `audit`. Read `references/execution-modes.en.md` only when mode selection is unclear.1314# CI Failure Diagnosis1516Diagnose a CI-specific failure using workflow definitions, logs, repository configuration, and environment evidence. Do not implement the fix.1718## Boundary1920- Require a CI run, log excerpt, or identifiable failed workflow context. Route ordinary runtime bugs without CI context to `bug-root-cause-analysis`.21- Keep all files unchanged. Provide repair direction only.22- Never print credential values, request credential disclosure, or recommend disabling permissions, checks, branch protection, or other security controls.23- Redact credential-like values and distinguish a missing permission or credential reference from its value.24- Do not treat downstream cancellations or cascaded failures as root cause.2526## Workflow27281. Identify the provider, workflow, run, job, matrix entry, step, command, and failure time from available evidence.292. Locate the first trustworthy error before cascaded errors, retries, skipped steps, and cleanup failures.303. Classify the failure as code, test, dependency, cache, permission/credential, runner environment, configuration, infrastructure, or flaky/unknown.314. Compare CI and local runtime versions, operating system, architecture, environment variable presence, dependency lockfile, install mode, shell, working directory, services, caches, and commands.325. Trace the evidence chain from CI input/state to the failing command, failure point, and job result.336. Propose safe local reproduction steps only from repository and workflow evidence. Mark unverified commands as hypotheses.347. Separate confirmed root cause, primary hypothesis, alternatives, and unknowns. Try to falsify flaky and cache explanations.358. Give the minimum repair direction, validation path, confidence, and evidence needed next without editing files.3637# Output Contract38391. Failure location: provider, workflow, run, job, matrix, step, and command402. First trustworthy error413. Evidence and causal sequence424. Failure classification435. Confirmed root cause or ranked hypotheses446. CI-versus-local differences457. Safe local reproduction468. Minimum repair direction479. Validation recommendations4810. Confidence and unknowns4950Redact sensitive values. Do not include a patch or claim a cascade error is the root cause.5152# 简体中文5354## 执行契约5556默认使用 `fast`;允许边界明确的自然语言隐式调用。57默认完成一个主任务。用户已授权完整流程时,在各 Skill 权限内连续完成;Router 仍只推荐。新重大决策或超出授权时暂停,不重复索取已有授权。58按实际风险选择验证;安全、生产、迁移、发布等高风险工作使用 `audit`。模式不明确时才读取 `references/execution-modes.zh-CN.md`。5960# CI 失败诊断6162使用 workflow 定义、日志、仓库配置和环境证据诊断 CI 特定失败。不要实施修复。6364## 职责边界6566- 需要 CI run、日志片段或可识别的失败 workflow 上下文;没有 CI 上下文的普通运行时 Bug 交给 `bug-root-cause-analysis`。67- 保持所有文件不变,只给修复方向。68- 不得输出密钥值、要求用户披露密钥,也不得建议关闭权限、检查、分支保护或其他安全控制。69- 对疑似凭证值脱敏,区分缺少权限或凭证引用与凭证值本身。70- 不把后续取消或级联错误当根因。7172## 工作流程73741. 从可用证据识别 provider、workflow、run、job、matrix 项、step、命令和失败时间。752. 在级联错误、重试、跳过步骤和清理失败之前定位第一个可信错误。763. 分类为代码、测试、依赖、缓存、权限/密钥、Runner 环境、配置、基础设施或 flaky/未知。774. 对比 CI 与本地的运行时版本、操作系统、架构、环境变量是否存在、依赖锁文件、安装模式、shell、工作目录、服务、缓存和命令。785. 建立从 CI 输入/状态到失败命令、失效点和 job 结果的证据链。796. 只依据仓库和 workflow 证据提出安全本地复现步骤;未验证命令标记为假设。807. 分离已确认根因、主要假设、替代假设和未知项,并尝试证伪 flaky 与缓存解释。818. 不修改文件,给出最小修复方向、验证路径、置信度和下一步所需证据。8283# 输出契约84851. 失败位置:provider、workflow、run、job、matrix、step 和命令862. 第一个可信错误873. 证据与因果顺序884. 失败分类895. 已确认根因或排序假设906. CI 与本地差异917. 安全本地复现928. 最小修复方向939. 验证建议9410. 置信度与未知项9596敏感值必须脱敏。不得包含补丁,也不得把级联错误声称为根因。