Ice-Hazymoon

Buildlock — Testing skill for Claude Code

Testing community

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 install adds 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