dart-fix-ci
GitHub自动调试并修复 DART 项目 CI 检查失败。支持识别失败原因、本地复现、最小化修复或基础设施重试,并根据分支类型(main/release)执行相应流程,确保 CI 恢复绿色。
Trigger Scenarios
Install
npx skills add dartsim/dart --skill dart-fix-ci -g -y
SKILL.md
Frontmatter
{
"name": "dart-fix-ci",
"description": "DART Fix CI: debug and fix failing CI checks on any base branch"
}
dart-fix-ci
Use this skill in Codex to run the DART dart-fix-ci workflow. The editable
workflow source currently lives in .claude/commands/, and this generated
Codex skill is a first-class Codex entrypoint.
Invocation
- Claude Code/OpenCode:
/dart-fix-ci <arguments> - Codex:
$dart-fix-ci <arguments>
Treat the text after the skill name as $ARGUMENTS. When the workflow
references $1, $2, etc., map those to the positional values supplied by the
user.
Command Body
Fix CI failure: $ARGUMENTS
Required Reading
@AGENTS.md @docs/onboarding/ci-cd.md @docs/onboarding/release-management.md
Workflow
- Identify the base branch. Default to
main; usebase=<branch>from$ARGUMENTSor the PR's own base when it is arelease-*branch. For arelease-*base, also readdocs/onboarding/release-management.mdand apply the release caveats called out below. - Identify failing checks:
gh pr checks <PR_NUMBER>orgh run view <RUN_ID>. - Inspect the first real failure:
gh run view <RUN_ID> --log-failed gh run view <RUN_ID> --job <JOB_ID> --log - If a job is still in progress, wait for logs instead of guessing.
- Choose where to fix. Check whether an equivalent fix already exists on
main. If continuing an existing PR, fetch and check out that PR branch instead of creating a new one. For arelease-*base, branch from the release branch and prefer cherry-picking the provenmainfix; keep any new fix release-scoped and minimal:git fetch origin <RELEASE_BRANCH> git checkout -B fix/<issue>-<release-branch> origin/<RELEASE_BRANCH> - Reproduce locally with the smallest relevant command:
- formatting:
pixi run lint - tests:
pixi run test,pixi run test-unit, or another existing focusedpixi run ...test task - coverage: add targeted tests for uncovered changed lines
- formatting:
- Fix the root cause with minimal scope. Explain why the failure was not caught earlier and whether workflow coverage should change.
- If the failure is infrastructure-only, ask for explicit maintainer/user
approval before rerunning the failed job or running:
gh run rerun <RUN_ID> --failed - Ask for explicit maintainer/user approval before pushing, CI re-triggers, or
other GitHub mutations; after approval, push and watch CI until green. For a
release-*base, use the current release milestone and the PR template when creating or updating the release-branch PR.
Output
- Root cause
- Fix or rerun action
- Commands run
- PR URL, when a PR was created or updated
- Current CI status
- Prevention recommendation, if any
Version History
- e0d13fd Current 2026-07-05 10:37


