Getting started with coding agents

AI coding agents like Claude Code and Cursor can help you build, debug, and maintain your Buildkite-based workflows more effectively, whether you're configuring Buildkite Pipelines, instrumenting test suites, or working with the Buildkite APIs.

This page covers three ways of giving your AI coding agent the context and tools it needs to work with Buildkite Pipelines and Buildkite Package Registries.

Connecting to the MCP server

The Buildkite MCP server uses the Model Context Protocol (MCP) to give your AI agent live access to the Buildkite REST API: build logs, pipeline configuration, cluster state, test suite results, and more.

With the MCP server connected, your agent can:

  • Fetch build logs and identify root causes of failures
  • Query pipeline configuration and suggest improvements
  • Monitor build progress and, with write access, trigger new builds
  • Access cluster and queue state to debug job routing issues
  • And more

If you only need to inspect Buildkite data, such as build logs or pipeline configuration, you can ask your coding agent to set up a read-only MCP connection using the Buildkite setup prompt. For example, ask: “Set up a read-only Buildkite MCP connection using https://buildkite.com/docs/agent-setup/prompt.md.”

If your workflow needs to trigger builds or make other changes, see Configuring AI tools with the remote Buildkite MCP server for write-capable setup.

Installing Buildkite skills

Buildkite skills capture how an experienced Buildkite user thinks and works, so your AI agent can follow the same approach. They contain documentation, patterns, best practices, and common solutions. Installing these skills into your AI coding agent gives it deep Buildkite expertise without you having to re-explain basic conventions in every session.

The skills available today focus on Buildkite Pipelines (including its test suites features), but the MCP server and llms.txt approaches described on this page apply equally to Buildkite Package Registries.

Skill Description
Skill Pipelines Description YAML configuration, step types, plugins, caching, parallelism, dynamic pipelines, matrix builds, artifacts, and hooks.
Skill Migration Description Migrate CI/CD workflows from GitHub Actions, Jenkins, CircleCI, Bitbucket Pipelines, or GitLab CI to Buildkite.
Skill Preflight Description Run CI builds against local uncommitted changes using bk preflight before pushing.
Skill Agent Runtime Description buildkite-agent subcommands for annotations, artifacts, metadata, pipeline uploads, OIDC, and locks.
Skill CLI Description bk CLI commands for builds, jobs, pipelines, secrets, artifacts, and authentication.
Skill API Description Buildkite REST API, GraphQL API, webhooks, and authentication patterns.

Skills are organized into two groups:

  • Journey skills: Pipelines and Migration cover end-to-end workflows.
  • Cross-cutting skills: Preflight, Agent Runtime, CLI, and API cover specific capabilities you reach for throughout development.

To install skills, follow the instructions in the Buildkite skills repository.

Using Buildkite documentation as context

Append .md to a documentation page URL to get its Markdown version, for example, /docs/pipelines/getting-started.md. Pass these URLs directly to your AI agent as focused context for a specific topic.

For broader context, use the documentation index or a topic guide that links to related pages in Markdown:

Area Topic guide
Area Buildkite Pipelines Topic guide Pipelines
Area Buildkite agent Topic guide Agent
Area Buildkite Package Registries Topic guide Package Registries
Area Buildkite APIs Topic guide APIs
Area Buildkite platform Topic guide User and team management
Area Test Engine Topic guide Test Engine

Start with a topic guide, then pass individual .md pages for more detail on specific tasks.

Next steps

Once you're set up, explore how to run AI agents directly inside your CI pipeline steps in AI agents in Pipelines.