mcpField
B
buildkite

buildkite

github.com/hjewkesCloud & DevOps440 installsUpdated 35w ago
Repository

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

  1. 01List and inspect builds and pipelines
  2. 02Trigger builds on a chosen branch
  3. 03View job logs and build details
  4. 04Download build artifacts
  5. 05Call REST endpoints through the API

Use cases

  1. 01Check recent pipeline build status
  2. 02Start a build on a branch
  3. 03Debug failed jobs using their logs
  4. 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 buildkite

After installing, type/buildkitein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
bk-commands.md
build-debugging.md
troubleshooting.md
scripts/
buildkite
setup

Details

From the project README

Buildkite — 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:

  1. Find the failed build: buildkite build list --pipeline SLUG --state failed

  2. View build details to see which jobs failed: buildkite build view BUILD_NUMBER --pipeline SLUG

  3. Get the failed job's log: buildkite job log JOB_ID

  4. 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

  • buildkite outputs JSON by default — pipe through jq for display or extraction.
  • Use buildkite api for REST API endpoints not covered by direct commands.
  • Example: buildkite api /v2/organizations/ORG/pipelines | jq '.[].slug'

Reference Files

ReferenceWhen to Load
references/bk-commands.mdFull bk CLI command reference needed
references/build-debugging.mdDebugging build failures in depth
references/troubleshooting.mdAuth failures, CLI errors, rate limits

Comments

Markdown supported