一键导入
fetch-ci-build
Fetch CI build results and diagnose failures. Auto-detects provider from project files or URLs. Supports GitHub Actions, Buildkite, and CircleCI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fetch CI build results and diagnose failures. Auto-detects provider from project files or URLs. Supports GitHub Actions, Buildkite, and CircleCI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a safe Grok Build code review of a branch or explicitly requested local changes. Use when an external Grok review is requested for correctness, architecture, maintainability, regressions, or missing tests; the workflow invokes Grok's native /review skill, preserves durable artifacts, and never edits or publishes changes.
Run Fable, Grok, and Thermo-Nuclear code reviews concurrently against one validated, immutable Git scope, while preserving separate outputs and reporting partial failures. Use when the user explicitly asks for a parallel, three-reviewer, multi-model, or strongest available code review of a PR, branch, commit range, or comparison with main.
Use zmx for durable, long-running processes that must persist beyond the current agent session, such as an app server the user will test later.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when you have a written implementation plan to execute
Use when you have a spec or requirements for a multi-step task, before touching code
| name | fetch-ci-build |
| description | Fetch CI build results and diagnose failures. Auto-detects provider from project files or URLs. Supports GitHub Actions, Buildkite, and CircleCI. |
Fetch CI build results, diagnose failures, extract actionable error information, and suggest fixes. Supports multiple CI providers with automatic detection.
| Provider | Detection | Tool |
|---|---|---|
| GitHub Actions | .github/workflows/ or github.com URL | gh CLI |
| Buildkite | .buildkite/ or buildkite.com URL | bk CLI |
| CircleCI | .circleci/ or circleci.com URL | Python script |
If the user provides a CI URL, detect provider:
github.com/.../actions/runs/... → GitHub Actionsbuildkite.com/... → Buildkiteapp.circleci.com/... or circleci.com/... → CircleCICheck for CI configuration directories:
# GitHub Actions
test -d .github/workflows && echo "github"
# Buildkite
test -d .buildkite && echo "buildkite"
# CircleCI
test -d .circleci && echo "circleci"
digraph workflow {
rankdir=TB;
node [shape=box];
detect [label="1. Detect CI provider"];
load [label="2. Load provider reference"];
fetch [label="3. Fetch build results"];
check [label="4. Check for failures" shape=diamond];
passed [label="Report: Build passed!"];
read [label="5. Read failing source files"];
present [label="6. Present failures + proposed fixes"];
ask [label="7. Ask: Apply fix?" shape=diamond];
apply [label="Apply the fix"];
next [label="Next failure?" shape=diamond];
done [label="Done"];
detect -> load;
load -> fetch;
fetch -> check;
check -> passed [label="passed"];
check -> read [label="failed"];
read -> present;
present -> ask;
ask -> apply [label="yes"];
ask -> next [label="no"];
apply -> next;
next -> read [label="yes"];
next -> done [label="no"];
}
First, check if the user provided a URL. If not, detect from project files.
Read the appropriate reference file for provider-specific commands:
Use the provider-specific commands to fetch build information and failures.
For Buildkite, prefer bk CLI as the primary path (not the legacy Python helper script).
Read the relevant source file to understand context:
Show the user:
Ask how to proceed:
| Type | Detection | Common Fixes |
|---|---|---|
| Test failure | Minitest/RSpec/Jest/pytest output | Fix assertion, update expected value, fix test setup |
| Lint error | Rubocop/ESLint/Biome violations | Auto-fix with linter's fix command |
| TypeScript | TSC compilation errors | Add types, fix type mismatches |
| Build error | Compilation failures | Fix syntax, missing dependencies |
| Mistake | Solution |
|---|---|
| Can't detect provider | Specify provider explicitly or provide CI URL |
| Missing credentials | Check provider reference for required env vars/auth |
| Build still running | Wait for completion or check partial results |
| Buildkite path still using old script | Use references/buildkite.md bk workflow first; only fall back to API/script if bk is unavailable |
| Rate limiting | Wait and retry |