mcncl avatar

buildkite

Use this skill when working with Buildkite CI/CD pipelines, agents, builds, test analytics, or packa

作者 mcncl|オープンソース

Buildkite Claude Skill

A comprehensive Claude skill for working with Buildkite CI/CD, covering agents, pipelines, builds, and more.

Overview

This skill provides Claude with deep knowledge of Buildkite, enabling assistance with pipeline configuration, agent setup, build management, and troubleshooting. It's generated from official Buildkite documentation and includes over 1.4MB of reference material.

The skill uses Claude's progressive disclosure model to minimize token usage—only loading detailed documentation when needed while keeping activation lightweight.

What This Skill Covers

  • Agents: Installation, configuration, security, hooks, and troubleshooting
  • Pipelines: YAML configuration, step types, dynamic pipelines, conditionals
  • Builds: Artifact management, metadata, environment variables, build lifecycle
  • Getting Started: Architecture, basic workflows, and setup guides

Installation

For Claude Code

First, clone or download this repository:

git clone https://github.com/mcncl/buildkite-claude-skill.git
cd buildkite-claude-skill

Then choose one of the following installation methods:

Personal Skills (available across all your projects):

mkdir -p ~/.claude/skills/buildkite
cp -r SKILL.md references ~/.claude/skills/buildkite/

Project Skills (shared with your team via git):

mkdir -p .claude/skills/buildkite
cp -r SKILL.md references .claude/skills/buildkite/
git add .claude/skills/buildkite

The skill will automatically activate when Claude detects you're working with Buildkite-related topics.

For Claude.ai

  1. Create a zip file containing SKILL.md and the references/ directory
  2. Upload the zip file to Claude.ai through the Skills interface
  3. The skill will be available in your conversations

Note: Custom skills do not sync across surfaces. Skills uploaded to Claude.ai won't automatically appear in Claude Code or the API.

How This Skill Works

This skill is model-invoked, meaning Claude automatically decides when to use it based on your request and the skill's description. You don't need to explicitly activate it—just mention Buildkite-related topics in your conversation.

Automatic activation occurs when discussing:

  • Buildkite pipeline YAML files (.buildkite/pipeline.yml)
  • Agent configuration and setup
  • Build artifact upload/download operations
  • Dynamic pipeline generation
  • Agent hooks and plugins
  • Build troubleshooting and debugging
  • CI/CD workflow design

Progressive disclosure: The skill loads in stages to minimize token usage:

  1. Metadata (always loaded): Name and description (~100 tokens)
  2. Instructions (on-demand): Main SKILL.md content when activated
  3. Resources (as-needed): Reference files only when Claude needs specific details

To see all available skills, ask Claude: "What Skills are available?"

Quick Examples

Creating a Basic Pipeline

Ask Claude to help you create a pipeline with tests and deployment:

Create a Buildkite pipeline that runs tests, waits for approval, then deploys

Setting Up Agents

Get help configuring agents for specific workloads:

How do I set up a Buildkite agent with Docker support and tag it for deployment jobs?

Working with Artifacts

Learn about artifact management between steps:

Show me how to upload build artifacts in one step and download them in another

Reference Documentation

The skill includes comprehensive reference files in the references/ directory:

FileSizeContent
agents.md362KBComplete agent documentation (installation, configuration, security, hooks)
pipelines.md816KBPipeline configuration, step types, dynamic pipelines, conditionals
builds.md225KBBuild artifacts, metadata, timeouts, log output management
getting_started.md95KBArchitecture overview, first pipeline setup, basic workflows

Key Capabilities

Pipeline Development

  • Create and modify pipeline YAML configurations
  • Implement conditional steps and dependencies
  • Generate dynamic pipelines at runtime
  • Configure parallel execution strategies

Agent Management

  • Install agents on various platforms (Linux, macOS, Windows, Docker, Kubernetes)
  • Configure agent tags and queues
  • Set up agent hooks for custom behavior
  • Troubleshoot connectivity and performance issues

Artifact Handling

  • Upload and download build artifacts
  • Configure custom storage (S3, GCS, Azure, Artifactory)
  • Share data between pipeline steps
  • Manage artifact retention policies

Advanced Workflows

  • Implement manual approval gates with block steps
  • Collect user input with input steps
  • Trigger dependent pipelines
  • Create deployment workflows with environment promotion

Usage Tips

  1. Be Specific: Mention "Buildkite" explicitly to ensure the skill activates
  2. Show Context: Share your pipeline YAML or agent config for targeted help
  3. Ask About Patterns: Request examples of common patterns (e.g., "How do I run parallel tests?")
  4. Troubleshooting: Describe your issue with error messages for better debugging help

Example Conversations

Pipeline creation:

You: I need a Buildkite pipeline that runs unit tests, integration tests in parallel, then builds a Docker image
Claude: [Uses skill to create a properly structured pipeline with wait steps and dependencies]

Agent troubleshooting:

You: My Buildkite agent keeps disconnecting. How do I debug this?
Claude: [Provides agent diagnostic steps and common connectivity solutions]

Artifact management:

You: How do I upload test coverage reports and make them available in later steps?
Claude: [Shows artifact_paths configuration and download commands]

Skill Structure

buildkite-claude-skill/
├── SKILL.md              # Skill definition with quick reference
├── README.md             # This file
└── references/
    ├── agents.md         # Agent documentation
    ├── pipelines.md      # Pipeline configuration
    ├── builds.md         # Build and artifact management
    ├── getting_started.md# Getting started guides
    └── index.md          # Reference index

Notes

  • Automatically generated from official Buildkite documentation
  • All examples are validated from real-world usage
  • Reference files preserve the structure of source documentation
  • Read-only skill—doesn't modify your Buildkite configuration
  • Works with Claude Code, Claude.ai, and Claude API (with custom skill support)

Resources

Buildkite

Claude Skills

License

This skill packages official Buildkite documentation for use with Claude. Please refer to Buildkite's documentation license for terms of use.