buildkite

Buildkite CI/CD integration. Use when the user needs to check build status, trigger builds, read build logs, debug failures, manage pipelines, or any Buildkite workflow. Triggers include "buildkite", "build", "pipeline", "CI", "deploy", "build log", "build failed".

hjewkes/agent-skills38 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: buildkite
description: Buildkite CI/CD integration. Use when the user needs to check build status, trigger builds, read build logs, debug failures, manage pipelines, or any Buildkite workflow. Triggers include "buildkite", "build", "pipeline", "CI", "deploy", "build log", "build failed".
license: MIT
---

# Buildkite — CI/CD

## Setup

The `buildkite` wrapper auto-detects first run and launches `scripts/setup`.

## Build Operations

```bash
# 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

```bash
# 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

```bash
# 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

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

More Debugging skills

← All Debugging skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY