ワンクリックで
step-analysis
Explains why Buildkite pipeline steps were skipped, didn't run, or behaved unexpectedly.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Explains why Buildkite pipeline steps were skipped, didn't run, or behaved unexpectedly.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Diagnoses Buildkite agent issues like stuck jobs and queue mismatches.
Analyzes failed Buildkite builds to identify root causes and provide fixes.
Shows recent Buildkite build status for a pipeline with pass/fail visibility.
Triggers new Buildkite builds with branch/commit control and safety confirmations.
Unblocks Buildkite builds waiting for manual approval.
Retrieves and displays Buildkite job logs. For debugging failures, use build-debugging instead.
| name | step-analysis |
| description | Explains why Buildkite pipeline steps were skipped, didn't run, or behaved unexpectedly. |
Analyze why pipeline steps were skipped, didn't run, or behaved unexpectedly.
| Tool | Purpose |
|---|---|
get_build | Get build with all job states |
get_pipeline | Get pipeline YAML configuration |
read_logs | Check logs for clues about conditions |
User typically asks about a specific step:
| Input Format | Example |
|---|---|
| Step name | "the deploy step" |
| Build + step | "build 123, the test job" |
| Description | "why didn't prod deploy run?" |
Get build information
buildkite_get_buildAnalyze the state
Investigate the cause
if conditionsExplain clearly
| State | Meaning | Common Cause |
|---|---|---|
scheduled | Waiting for agent | No matching agent available |
assigned | Agent accepted | Starting soon |
running | Executing | In progress |
passed | Completed successfully | - |
failed | Non-zero exit | Command error |
blocked | Manual approval needed | Block step |
canceled | User cancelled | - |
skipped | Condition false | if evaluated to false |
not_run | Dependency failed | depends_on step failed |
waiting | Waiting for dependency | Upstream not complete |
waiting_failed | Will not run | Upstream failed |
timed_out | Exceeded timeout | timeout_in_minutes hit |
if Conditionsbuild.branch # "main", "feature/x"
build.tag # "v1.0.0" or null
build.message # Commit message
build.source # "webhook", "ui", "api", "schedule"
build.state # Current build state
build.pull_request.id # PR number or null
build.pull_request.base_branch
build.pull_request.repository.fork # true/false
build.env.VARNAME # Environment variable
build.meta_data.key # Build metadata
# Only on main
if: build.branch == "main"
# Only for tags
if: build.tag != null
# Skip for fork PRs
if: build.pull_request.repository.fork != true
# Only from webhook (not manual)
if: build.source == "webhook"
# Based on env var
if: build.env.RUN_DEPLOY == "true"
steps:
- command: "test"
key: "test"
- command: "deploy"
depends_on: "test" # Won't run if test fails
- command: "deploy"
depends_on:
- step: "test"
allow_failure: true # Runs even if test fails
wait depend on all previous steps## Why "Deploy to Production" was skipped
**State**: skipped
**Reason**: The step has an `if` condition that evaluated to false.
**Condition**: `build.branch == "main"`
**Actual value**: `build.branch` = "feature/new-login"
**Resolution**: This step only runs on the `main` branch. To deploy this
branch, either:
1. Merge to main and let CI run
2. Modify the condition to include this branch
3. Manually trigger a build with the condition overridden
if condition in pipeline YAMLdepends_on configurationtimeout_in_minutes settingUser: Why didn't the deploy step run in build 456?
1. Fetch build 456
2. Find "deploy" step - state is "not_run"
3. Check depends_on - depends on "test"
4. Find "test" step - state is "failed"
5. Explain: "Deploy didn't run because the test step it depends on failed.
Fix the test failure and the deploy will run on the next build."