shepherdjerred/monorepo/packages/dotfiles/dot_agents/skills/buildkite-helper/SKILL.md
buildkite-helper
BuildKite CI/CD pipeline configuration, YAML syntax, dynamic pipelines, and agent management When user works with BuildKite, mentions CI pipelines, .buildkite/ directory, buildkite-agent commands, pipeline YAML, build steps, BuildKite API, or asks about CI configuration, pipeline generation, step dependencies, retry configuration, agent queues, or Kubernetes CI agents
- Source repository stars
- 125
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-08-25
- Source checked
- 2026-08-25
Decision brief
What it does: where it fits
Current monorepo shape. The repo runs a static Buildkite pipeline (.buildkite/pipeline.yml, replatformed 2026-07) on the homelab agent-stack in the buildkite namespace. CI runs on the dedicated liskov node. BUILDKITEMAXINFLIGHT=24 is the count cap, and Kueue provides the resourc…
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/shepherdjerred/monorepo --skill "packages/dotfiles/dot_agents/skills/buildkite-helper"Inspect the Agent Skill "buildkite-helper" from https://github.com/shepherdjerred/monorepo/blob/d1ae0a6d2f19838bb4df49402cb8ac4dc7113df8/packages/dotfiles/dot_agents/skills/buildkite-helper/SKILL.md at commit d1ae0a6d2f19838bb4df49402cb8ac4dc7113df8. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Command Step
Review the “Command Step” section in the pinned source before continuing.
Review and apply the “Command Step” source section. - 02
Wait Step
Review the “Wait Step” section in the pinned source before continuing.
Review and apply the “Wait Step” source section. - 03
Block Step (creates implicit dependencies)
Review the “Block Step (creates implicit dependencies)” section in the pinned source before continuing.
Review and apply the “Block Step (creates implicit dependencies)” source section. - 04
Input Step (no implicit dependencies)
Review the “Input Step (no implicit dependencies)” section in the pinned source before continuing.
Review and apply the “Input Step (no implicit dependencies)” source section. - 05
Trigger Step
Review the “Trigger Step” section in the pinned source before continuing.
Review and apply the “Trigger Step” source section.
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 125 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- shepherdjerred/monorepo
- Skill path
- packages/dotfiles/dot_agents/skills/buildkite-helper/SKILL.md
- Commit
- d1ae0a6d2f19838bb4df49402cb8ac4dc7113df8
- License
- GPL-3.0
- Collected
- 2026-08-25
- Default branch
- main
View the original SKILL.md
BuildKite Helper
Current monorepo shape. The repo runs a static Buildkite pipeline (
.buildkite/pipeline.yml, replatformed 2026-07) on the homelab agent-stack in thebuildkitenamespace. CI runs on the dedicatedliskovnode.BUILDKITE_MAX_IN_FLIGHT=24is the count cap, and Kueue provides the resource-aware80Gi / 24 CPU / 24 pods / 100Giadmission layer. The explicitly marked Dagger/dynamic-pipeline section below is historical; the general Buildkite reference material remains valid.
Use toolkit bk for monorepo operator commands. It delegates unchanged to the
native Buildkite CLI and supplies organization sjerred unless the environment
already selects another organization.
Overview
BuildKite is a CI/CD platform where builds run on your own infrastructure via agents. Pipelines are defined in YAML (static or dynamically generated). This monorepo uses Buildkite as its sole CI platform; the former dynamic TypeScript/Dagger pipeline was replaced by the current static pipeline in 2026-07.
Monorepo Fixed-Corpus CI I/O Builds
CI_IO_FIXED_CORPUS=true is an operator-only mode for producing a comparable
CI I/O acceptance candidate on the current main commit. It forces the
playwright, resume, Docker E2E, images, and OpenTofu selectors. The image lane
builds and pushes every known image target, and the OpenTofu lanes perform real
applies; unrelated selectors keep their normal change-based decisions.
After confirming the SHA is still current main, create the build with:
toolkit bk build create \
--pipeline sjerred/monorepo \
--branch main \
--commit <current-main-sha> \
--env CI_IO_FIXED_CORPUS=true \
--yes
The value must be exactly true, and BUILDKITE_BRANCH must be main.
Invalid values, an unset branch, and non-main branches fail before the pipeline
runs. Treat this as a production-mutating build, not a read-only benchmark.
Pipeline YAML Quick Reference
Command Step
steps:
- label: ":test_tube: Tests"
command: "npm test"
key: "tests"
agents: { queue: "default" }
artifact_paths: "coverage/**/*"
timeout_in_minutes: 10
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 255
limit: 2
soft_fail:
- exit_status: 1
env:
NODE_ENV: test
Wait Step
- wait: ~ # Waits for all previous steps
- wait: ~
continue_on_failure: true # Proceed even if prior steps failed
Block Step (creates implicit dependencies)
- block: ":rocket: Deploy?"
prompt: "Ready to deploy?"
blocked_state: passed # passed | failed | running
fields:
- select: "Region"
key: "region"
options:
- { label: "US", value: "us" }
- { label: "EU", value: "eu" }
Input Step (no implicit dependencies)
- input: "Release info"
fields:
- text: "Version"
key: "version"
format: "[0-9]+\\.[0-9]+\\.[0-9]+"
Trigger Step
- trigger: "deploy-pipeline"
label: ":rocket: Deploy"
async: true # Don't wait for triggered build
build:
branch: "${BUILDKITE_BRANCH}"
commit: "${BUILDKITE_COMMIT}"
env:
DEPLOY_ENV: production
Group Step
- group: ":lock: Security"
key: "security"
steps:
- command: "audit.sh"
- command: "scan.sh"
# Consecutive groups run in parallel. No nested groups allowed.
Dynamic Pipeline Generation
# Generate and upload pipeline (steps inserted after upload step)
./generate.sh | buildkite-agent pipeline upload
# Upload from file
buildkite-agent pipeline upload .buildkite/deploy.yml
# Upload JSON
echo '{"steps": [{"command": "test.sh"}]}' | buildkite-agent pipeline upload
This monorepo (historical): TypeScript generator at scripts/ci/src/main.ts (since removed) → change detection → JSON → buildkite-agent pipeline upload.
Step Configuration
Dependencies
- command: "build.sh"
key: "build"
- command: "test.sh"
depends_on: "build" # Single dependency
- command: "deploy.sh"
depends_on: ["build", "test"] # Multiple dependencies
allow_dependency_failure: true # Run even if deps fail
Conditionals (if)
C-like expressions evaluated at upload time (not runtime):
- command: "deploy.sh"
if: build.branch == pipeline.default_branch
- command: "pr-check.sh"
if: build.pull_request.id != null
- command: "tagged.sh"
if: build.tag =~ /^v[0-9]/
- command: "skip-wip.sh"
if: build.message !~ /\[skip ci\]/i
Operators: ==, !=, =~, !~, ||, &&, includes, !. Variables: build.* (branch, commit, message, source, tag, pull_request, env()), pipeline.*, organization.*.
Retry
retry:
automatic:
- exit_status: -1 # Agent lost/timeout
limit: 2
- exit_status: "*" # Any non-zero (1-255)
limit: 1
manual:
permit_on_passed: true
Auto retry: exit_status (int/array/"*"), signal, signal_reason, limit (max 10).
Concurrency
- command: "deploy.sh"
concurrency: 1
concurrency_group: "app/deploy" # Org-wide scope
concurrency_method: ordered # ordered (FIFO) | eager
Other
skip: "Temporarily disabled" # Skip with reason (max 70 chars)
soft_fail: true # All non-zero exits are soft failures
priority: 1 # Higher = dispatched first
timeout_in_minutes: 30
parallelism: 5 # Run N parallel copies
matrix: ["linux", "darwin"] # Expand step per value
buildkite-agent CLI
# Pipeline
buildkite-agent pipeline upload [file] # Upload steps (stdin or file)
# Meta-data (build-level key-value, max 100KB/value)
buildkite-agent meta-data set "key" "value"
buildkite-agent meta-data get "key"
buildkite-agent meta-data get "key" --default "fallback"
# Annotations (markdown on build page, max 1MiB)
buildkite-agent annotate "message" --style info --context "ctx"
buildkite-agent annotate --style error --context "ctx" < report.md
buildkite-agent annotate --scope job "Per-job note" # v3.112+
buildkite-agent annotate --context "ctx" --remove
# Styles: default, info, warning, error, success
# Artifacts
buildkite-agent artifact upload "dist/**/*"
buildkite-agent artifact upload "report.html" --job "other-job-id"
buildkite-agent artifact download "dist/*" ./local/
buildkite-agent artifact shasum "file.tar.gz"
# Step
buildkite-agent step update "label" "New Label"
Environment Variables (Key Subset)
| Variable | Description |
|---|---|
BUILDKITE_BRANCH | Branch being built |
BUILDKITE_COMMIT | Git commit SHA |
BUILDKITE_MESSAGE | Build message (commit msg) |
BUILDKITE_BUILD_NUMBER | Build number (monotonic) |
BUILDKITE_BUILD_URL | URL to build on Buildkite |
BUILDKITE_BUILD_ID | Build UUID |
BUILDKITE_JOB_ID | Job UUID |
BUILDKITE_PIPELINE_SLUG | Pipeline slug |
BUILDKITE_ORGANIZATION_SLUG | Organization slug |
BUILDKITE_PULL_REQUEST | PR number or false |
BUILDKITE_PULL_REQUEST_BASE_BRANCH | PR target branch or "" |
BUILDKITE_TAG | Tag name (if tag build) |
BUILDKITE_SOURCE | webhook, api, ui, trigger_job, schedule |
BUILDKITE_PARALLEL_JOB | Parallel job index (0-based) |
BUILDKITE_PARALLEL_JOB_COUNT | Total parallel jobs |
BUILDKITE_RETRY_COUNT | Times job has been retried |
BUILDKITE_STEP_KEY | User-defined step key |
BUILDKITE_AGENT_ACCESS_TOKEN | Agent session token |
BUILDKITE_TRIGGERED_FROM_BUILD_ID | Parent build UUID |
BUILDKITE_REPO | Repository URL |
Variable precedence (lowest→highest): pipeline env → build env → step env → standard vars → agent env → hook exports. Use $$VAR to escape upload-time interpolation.
Kubernetes Plugin (agent-stack-k8s)
plugins:
- kubernetes:
checkout:
cloneFlags: "--depth=100"
fetchFlags: "--depth=100"
podSpecPatch:
serviceAccountName: buildkite-controller
containers:
- name: container-0
image: "ghcr.io/org/ci-base:latest"
resources:
requests: { cpu: "250m", memory: "512Mi" }
envFrom:
- secretRef: { name: ci-secrets }
volumeMounts:
- name: git-mirrors
mountPath: /buildkite/git-mirrors
readOnly: true
Debugging killed containers (memcg OOM red herrings)
- Agent output
exit status -7with "connected to the agent, but then stopped communicating without exiting normally" = a client container was SIGKILLed. The post-mortem k8s JobDeadlineExceededevents (deadline 60) that follow are cleanup, not cause: the agent-stack completions watcher patchesactiveDeadlineSecondsafter the agent container terminates. - A container-level (memcg) OOM kill emits no Kubernetes events —
kubectl get eventsstaying clean does not rule out OOM. Check the node kernel log:kubectl debug node/<node> -n kube-system --profile=sysadmin --image=busybox -- sh -c 'dmesg | grep -i oom'and look forCONSTRAINT_MEMCGplus a largeshmemcount. - The workspace volume is a memory-backed emptyDir (tmpfs): every byte a step
writes under
/workspaceis charged to the writing container's memory limit as shmem — a "disk-sized" write (e.g. a full git pack download) can OOM a container whose processes use almost no RAM. Containers without explicit resources get the namespace LimitRange default (768Mi). Incident: the original investigation.
This Monorepo's CI Patterns (historical — pipeline removed 2026-07)
Everything in this section describes the pipeline as it existed before removal. The files below no longer exist in the repo; kept as history for anyone reading old builds/PRs.
Key files (since removed):
.buildkite/pipeline.yml— Bootstrap: single step runs TypeScript generatorscripts/ci/src/main.ts— Pipeline generator entry (change detection → build → JSON)scripts/ci/src/change-detection.ts— Queries BuildKite API for last green build, git diffscripts/ci/src/lib/buildkite.ts— Step types, retry config, Dagger envscripts/ci/src/lib/k8s-plugin.ts— K8s plugin builder with resource tiersscripts/ci/src/catalog.ts— Registry of 13 images, 4 npm pkgs, 7 sites, 29 Helm charts
Patterns:
- All CI work via
dagger call(lint, typecheck, test, push-image, helm-package, etc.) - Resource tiers: heavy (1000m/2Gi), medium (500m/1Gi), default (250m/512Mi)
- Dagger engine: remote
tcp://dagger-engine.dagger.svc.cluster.local:8080 - Agent: agent-stack-k8s Helm, max-in-flight=20, git mirrors, batch-low priority
- Soft-fail gates —
trivy-scan,knip-check, andsemgrep-scanare soft failures that do not block the quality gate. When the goal is "get CI green," focus on real build/test/lint/typecheck/deploy failures; don't burn time adding CVEs to.trivyignoreor chasing knip findings. - Pushes to
maincancel the running build — Buildkite supersedes/cancels the in-flightmainbuild on every new push, so a fix being validated at step 92/175 never gets a result. Batch small fixes into one commit and wait for the current build to reach the relevant steps before pushing again; don't push for formatting/trivial churn. - Don't eagerly merge
maininto open PRs — only mergeorigin/maininto a branch when GitHub reports itCONFLICTING(mergeStateStatusDIRTY). Proactive merges add PR noise and, because a merge touching.dagger/triggers a full "build everything" CI run, they're slow and expensive. For a branch missing one specific main fix, prefer a surgicalgit cherry-pick <sha>over a full merge. releasestep gates only release-consuming work — thereleasestep runs release-please and is long-lived. Only steps that actually consume release metadata (npm publish, helm push, cooklang push, version commit-back) shoulddepends_on: release. Everything else should depend onquality-gateso unrelated work isn't bottlenecked behind release-please.- Cold Dagger cache → slow
bun installthat looks hung but isn't — After a Dagger engine restart or unclean shutdown, the engine logsdagql persistence store marked unclean; wiping and cold-startingand deletes its entire build cache (100 GB+) before it will serve — that wipe alone is ~15-20 min of recursive delete I/O on the ZFS nvme build-cache pool (zfspv-pool-nvmeontorvalds). On the resulting cold cache, everybun install --frozen-lockfilestep (a small-file write storm) runs 3-8+ min instead of seconds: ZFS serializes writes through txg syncs and small-file bursts hit txg backpressure, so the install parks in uninterruptibleDstate (cv_wait_common), the Buildkite log goes static, and the build looks wedged. It is slow, not stuck. Distinguish withkubectl exec -n dagger dagger-dagger-helm-engine-0 -- sh -c "ps -eo pid,stat,etime,args | awk '\$2 ~ /^D/'": if the D-state PID rotates (a freshbun installeach check) or the pool's free space keeps moving, it's progressing. Only suspect a real wedge if ONE PID sits inD>10 min with zero log output anddf /var/lib/daggeris flat. The pool is healthy and ~19% full — this is write-throughput contention, not corruption or capacity. Do NOT force-restart the engine to "fix" a merely-slow build: it triggers another full cold-cache wipe (unclean shutdown → cold start), which is strictly worse and kills all in-flight sessions. Concurrent install-heavy steps amplify it; the agentmax-in-flightcap (reduced to 10) targets exactly this.
Reference Files
references/pipeline-yaml-full.md— Complete step type fields, matrix builds, notifications, retry, conditionals, concurrencyreferences/plugins-and-hooks.md— Plugin syntax, all 13 hooks with execution order, artifact patternsreferences/api-reference.md— REST API, GraphQL API, bk CLI, agent CLIreferences/kubernetes-agent-stack.md— Pod spec patching, git mirrors, secrets, container build strategiesreferences/advanced-features.md— Test Engine, Packages, Clusters, Security, 2025-2026 features
Frequently asked questions
What to verify before installation and use
What does the buildkite-helper source document cover?
Current monorepo shape. The repo runs a static Buildkite pipeline (.buildkite/pipeline.yml, replatformed 2026-07) on the homelab agent-stack in the buildkite namespace. CI runs on the dedicated liskov node. BUILDKITEMAXINFLIGHT=24 is the count cap, and Kueue provides the resourc…
How do I install buildkite-helper?
The source record exposes this install command: npx skills add https://github.com/shepherdjerred/monorepo --skill "packages/dotfiles/dot_agents/skills/buildkite-helper". Inspect the command and pinned source before running it.
Alternatives
Compare before choosing
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
garrytan/gbrain
bulk-ingestion
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
migrate-vstest-to-mtp
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing