buildkite-plugin-dev

A development guide for custom Buildkite plugins, which are small Git repositories that run scripts during different stages of a Buildkite build.

In plain words
What is it for?
Use it to create plugin.yml files, write Bash or Docker-based plugins, implement agent hooks, map YAML settings, or build compiled Go plugins.
Why use it?
It provides the required structure and conventions for creating plugins that Buildkite agents can load and run correctly.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hasithaishere/buildkite-developer-toolkit/buildkite-plugin-dev
Any agent
npx skills add hasithaishere/buildkite-developer-toolkit --skill buildkite-plugin-dev
Clone the repo
git clone --depth 1 https://github.com/hasithaishere/buildkite-developer-toolkit

Made for: Claude Code, Codex.

Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00120 $0.02140
Opus 5 $0.00060 $0.01070
Sonnet 5 $0.00024 $0.00428
Haiku 4.5 $0.00012 $0.00214

Measured yesterday against content hash c70718646f2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

buildkite-plugin-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/bash-plugin/lib/plugin.bash), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/buildkite-plugin-dev/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Buildkite Plugin Development

You are an expert engineer building production-grade custom Buildkite plugins. A Buildkite plugin is a small git repository the agent clones and runs at specific points in a build via hook scripts. Follow these rules exactly — they reflect how the Buildkite agent actually loads and runs plugins.

Official docs (verify specifics here; some details evolve):

Non-negotiable rules

  1. Repo naming. Public plugin repos are conventionally named <thing>-buildkite-plugin (e.g. docker-buildkite-plugin). The agent resolves my-org/docker#v1.0.0 to github.com/my-org/docker-buildkite-plugin.
  2. Every plugin has a plugin.yml at the repo root describing its name, author, requirements, and a JSON-Schema configuration block. See reference/plugin-yml-schema.md.
  3. Hooks live in hooks/ as executable scripts. Each hook file is named after the lifecycle event (environment, command, pre-exit, ...) with no extension, must be chmod +x, and must start with a shebang. See reference/hooks.md for the full list and execution order.
  4. Every hook script starts with:
    #!/bin/bash
    set -euo pipefail
    
    (or #!/usr/bin/env bash). This catches unset vars and pipe failures early.
  5. Read config from environment variables, never by parsing YAML. The agent converts the user's plugins: YAML into env vars. See reference/env-var-mapping.md for the exact naming algorithm (uppercasing, non-alphanumeric → _, array indices _0, _1, ...).
  6. Always read with a safe default: "${BUILDKITE_PLUGIN_MYPLUGIN_TIMEOUT:-10}". Never assume a var is set.
  7. Always quote variable expansions ("$VAR") and use [[ ... ]] for tests. Run shellcheck on every hook.
  8. Ship tests. Every plugin needs Bats tests and a CI pipeline. Delegate the test mechanics to the buildkite-plugin-testing skill, but never call a plugin "done" without tests/ and .buildkite/pipeline.yml.

Read the full file on GitHub · 152 lines

Files

What ships with it

36 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 152 lines · 120 tokens per session scan A c70718646f2c

Subscribe to this mod's changes

buildkite-plugin-dev is a skill published in the GitHub repository hasithaishere/buildkite-developer-toolkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 120 tokens to every session and 2,140 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nemoclaw-contributor-implement-issue

Implement an accepted NemoClaw GitHub issue in the current checkout. Use when a user asks to pick up an issue for implementation, implement or fix a named issue, or add the issue's tests. Confirm accepted scope, deliver the smallest independently valuable capability slice, and record validation and remaining gates…

NVIDIA/NemoClaw · 134 tokens

amazon-bestseller-listing

Amazon Best Sellers listing scraper: extract product cards from any Amazon Best Sellers (zgbs) or /gp/bestsellers/ category page — returns rank (position on chart), asin, title, url, image, imageAlt, price, stars, reviewCount, ratingRaw per item, plus category metadata (categoryName, categoryFullName, categoryUrl) and…

browser-act/skills · 300 tokens

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

cabloy-worktree-environment

This skill must be used only when the user explicitly invokes /cabloy-worktree-environment or explicitly asks to perform the named Cabloy worktree-environment setup. It prepares a confirmation-gated, worktree-local Vona and Zova runtime environment for a linked Cabloy Basic or Cabloy Start Git worktree using Git…

cabloy/cabloy · 126 tokens

shopify-hydrogen

Hydrogen storefront implementation cookbooks. Some of the available recipes are: B2B Commerce, Bundles, Combined Listings, Custom Cart Method, Dynamic Content with Metaobjects, Express Server, Google Tag Manager Integration, Infinite Scroll, Legacy Customer Account Flow, Markets, Partytown + Google Tag Manager…

Shopify/Shopify-AI-Toolkit · 106 tokens