Buildlock — Testing skill for Claude Code
A machine-wide queue for heavy commands (builds, type-checks, test suites), so many terminals and AI coding agents can share one machine.
How to install Buildlock
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Ice-Hazymoon/buildlock and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Buildlock does
A machine-wide queue for heavy commands (builds, type-checks, test suites), so many terminals and AI coding agents can share one machine. One bash script; teaches Claude Code, Codex, Gemini, Cursor and others to use it.
Alternatives in Testing
- Test TDD — Run when user calls /test-tdd 957 ★
- Test Repl — Run a REPL test scenario against the claude-in-mobile REPL plugin (python/node/bash/...) 356 ★
- Run Test Suite — Execute Test Suites 185 ★
README
buildlock
A machine-wide queue for heavy commands. Put `buildlock` in front of a full build, type-check or test run, and it waits until the machine has room for it, then runs it unchanged: same output, same exit code.
[中文说明](README.zh-CN.md)
It is for one machine shared by many terminals, worktrees and coding agents. Five Claude Code or Codex sessions that each start `tsc`, `vitest run` and a build in the same minute can push a 32-core box into swap until SSH stops answering. Queued with buildlock, they take turns, and they still run side by side whenever the machine has room for more.
buildlock npm test
buildlock npx tsc --noEmit
buildlock cargo build --release
- One line in front of the command. No daemon, no service, no config needed. It is a single bash script.
- Admits by real headroom. A free slot, load, CPU, IO and memory pressure, free memory, and how much memory the jobs that just started may still need.
- Learns each command. Peak memory and run time are recorded per repository and command. From the third run on, the memory reserved for a command is the measured figure instead of a guess, and small, fast commands move to a separate light lane.
- Fair. Jobs start in arrival order. A heavy job never starves behind a stream of small ones.
- Teaches your coding agents.
buildlock agents installadds a short section to the instructions of Claude Code, Codex, Gemini CLI, Cursor, opencode, Copilot and others, so every session learns to use it. - Quiet hours. Run fewer jobs at night, or whenever your own condition says so.
Install
curl -fsSL https://raw.githubusercontent.com/Ice-Hazymoon/buildlock/main/install.sh | bash
The installer checks the requirements, downloads the latest release, verifies its checksum and puts `buildlock` in `~/.local/bin`. It then offers the guided setup. Options go after `bash -s --`:
curl -fsSL https://raw.githubusercontent.com/Ice-Hazymoon/buildlock/main/install.sh | bash
Related Skills
Cheap Vibecoding
Run many AI coding-agent sessions (Claude Code, Codex, Antigravity, DeepSeek) without burning money: read-limi
Add Machine
Add a new machine type end-to-end (registry + compiler emitter + invariant test + docs)
Spectastic.Principles
Author or amend the project principles — the non-negotiable, project-wide rules every downstream spec must hon
Cfn Share
Publish a plan, spec, or any project markdown doc as a private shareable web page so a non-terminal colleague
Assess Spec
Analyze an unbuilt spec for implementability risks - oversized stories, deep dependency chains, file-overlap c
Plan Dossier
A four-layer .plan-dossier/ artifact spec for cross-phase AI agent tasks — planning, execution, and review sha
Related Agents
Plugins
Agent Plugin System - manages the pluggable AI agent architecture (Claude, Cursor, Gemini). Use proactively wh
Code Audit Maintainer Shell
Maintainer-only audit of framework bash and the bats suites guarding it: quoting/portability correctness, a sh
Lean Sweep
Pure sweep lane: grep/list/count/classify over many files, pattern application, format conversion. Haiku, 10 t