agentleFS
ryoppippiryoppippi/ccusage/.agents/skills/blacksmith-testbox/SKILL.md

blacksmith-testbox

Skill20k starsChanged 5 days agoMITView on GitHub

Runs local changes on a Blacksmith testbox. Use for Linux builds and static binary size, Linux-only tests, or Linux or macOS fixture benchmarks too long for a local machine.

  • Pipes a download into a shell
  • Reads credentials

2 other projects use a version of this; 1 new project in the last 4 weeks, against 0 the 4 before.

Adopted by

Surging: 1 new project took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 1 new project
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 1 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about ryoppippi/ccusage

The biggest 5 of 73 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 73

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (73 times).

On GitHub · 31

26 more on GitHub

On YouTube · 21

16 more on YouTube

On Bluesky · 14

9 more on Bluesky

On the web · 3

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the dev-shell blacksmith (nix develop or direnv).

    line 10
  2. Very specific:

    Never install it with curl | sh, a release channel, or a global install.

    line 13
  3. Very specific:

    Every fixture benchmark, build and size check runs on Blacksmith (testboxes, binary-size.yaml, profile-instructions.yaml), one box per …

    line 27
  4. Very specific:

    Run every blacksmith command from the repository root.

    line 37
  5. Very specific:

    Start with blacksmith testbox warmup testbox-<dev|bench|bench-macos>.yaml.

    line 38
  6. Very specific:

    Run commands as blacksmith testbox run --id <id> 'nix develop --command <cmd>', single-quoted so $CCUSAGE_FIXTURES and other variables …

    line 41
  7. Very specific:

    Keep --idle-timeout at or below 60 minutes.

    line 44
  8. Very specific:

    Always blacksmith testbox stop --id <id> when done, including after failures.

    line 47
  9. Distinctive:

    Never sync, upload, or generate real agent logs on a testbox.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Blacksmith Testbox

CLI

  • Use the dev-shell blacksmith (nix develop or direnv); outside the shell, nix run .#blacksmith -- <args>. It is the pinned package in nix/tools/blacksmith.
  • Never install it with curl | sh, a release channel, or a global install.
  • Auth is the owner's browser login, blacksmith auth login, run by the owner. Agents never handle tokens or read ~/.blacksmith/credentials.

Choosing where to run

  • testbox-dev.yaml: Linux builds, nix build .#ccusage-static size checks, Linux-only tests.
  • testbox-bench.yaml: CI-like timing and instruction counts. Generated fixtures are under $CCUSAGE_FIXTURES on the box; start the remote command string with source ~/ccusage-fixtures.env &&, never source it locally.
  • testbox-bench-macos.yaml: the same fixtures on a macOS runner, for macOS timing. Absolute times differ from any laptop; compare only ratios of two binaries on the same box, against a byte-copy control.
  • Every fixture benchmark, build and size check runs on Blacksmith (testboxes, binary-size.yaml, profile-instructions.yaml), one box per lever or PR, so measurements run in parallel instead of queuing on a local machine.
  • The owner's MacBook: only the final real-log confirmation, because real logs must never leave that machine.
  • Local just fmt, just typecheck, and just test stay fine; a testbox is not required for them.

Session

  • Run every blacksmith command from the repository root.
  • Start with blacksmith testbox warmup testbox-<dev|bench|bench-macos>.yaml; one workflow per box, because every job in a dispatched workflow starts a runner. Wait with blacksmith testbox status --id <id> --wait, never a sleep loop.
  • Run commands as blacksmith testbox run --id <id> 'nix develop --command <cmd>', single-quoted so $CCUSAGE_FIXTURES and other variables expand on the box, not locally; fetch results with blacksmith testbox download.
  • Keep --idle-timeout at or below 60 minutes. Both workflows stop at their 240-minute cap, warmup included, so for longer work stop the box and warm up a new one.
  • Always blacksmith testbox stop --id <id> when done, including after failures.
  • Warmup works only once the workflow is on the default branch; --ref selects the checkout the setup steps run on.

Data

  • run syncs tracked and untracked non-ignored files. Before a run, make sure no real agent logs or other private data sit in the worktree.
  • Never sync, upload, or generate real agent logs on a testbox; use the generated fixtures only.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.