About buildkite
buildkite is a command-line skill for operating Buildkite CI/CD. It helps inspect pipelines, builds, jobs, and artifacts, debug failures, and call REST API endpoints.
Key features
- 01List and inspect builds and pipelines
- 02Trigger builds on a chosen branch
- 03View job logs and build details
- 04Download build artifacts
- 05Call REST endpoints through the API
Use cases
- 01Check recent pipeline build status
- 02Start a build on a branch
- 03Debug failed jobs using their logs
- 04Download build artifacts such as test reports
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ hjewkes/ agent-skills --skill buildkiteAfter installing, type/buildkitein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/bk-commands.mdbuild-debugging.mdtroubleshooting.mdscripts/buildkitesetupDetails
From the project READMEBuildkite — CI/CD
Setup
The buildkite wrapper auto-detects first run and launches scripts/setup.
Build Operations
# List recent builds for a pipeline
buildkite build list --pipeline SLUG
# View build details
buildkite build view BUILD_NUMBER --pipeline SLUG
# Trigger a new build
buildkite build create --pipeline SLUG --branch main --message "Deploy"
# Rebuild a failed build
buildkite build rebuild BUILD_NUMBER --pipeline SLUG
# Cancel a running build
buildkite build cancel BUILD_NUMBER --pipeline SLUG
Job & Log Operations
# List jobs for a build
buildkite job list --build BUILD_NUMBER --pipeline SLUG
# View job log output
buildkite job log JOB_ID
# Download build artifacts
buildkite artifacts download --build BUILD_NUMBER --pipeline SLUG
Pipeline Operations
# List all pipelines
buildkite pipeline list
# View pipeline configuration
buildkite pipeline view SLUG
Failure Debugging Workflow
When a build fails, follow this sequence:
-
Find the failed build:
buildkite build list --pipeline SLUG --state failed -
View build details to see which jobs failed:
buildkite build view BUILD_NUMBER --pipeline SLUG -
Get the failed job's log:
buildkite job log JOB_ID -
Download artifacts (test reports, etc.) if available:
buildkite artifacts download --build BUILD_NUMBER --pipeline SLUG
For detailed debugging patterns, load references/build-debugging.md.
Output Conventions
buildkiteoutputs JSON by default — pipe throughjqfor display or extraction.- Use
buildkite apifor REST API endpoints not covered by direct commands. - Example:
buildkite api /v2/organizations/ORG/pipelines | jq '.[].slug'
Reference Files
| Reference | When to Load |
|---|---|
| references/bk-commands.md | Full bk CLI command reference needed |
| references/build-debugging.md | Debugging build failures in depth |
| references/troubleshooting.md | Auth failures, CLI errors, rate limits |