ci-test-rebuild
Skill0 starsChanged 10 days agoMITView on GitHub
Rebuild JS/TS tests and checks as a fast local Bun gate, proven by before/after metrics. Use for slow or bloated tests/CI. Not for one failing test (debugging).
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- trac3r00/agent-skillsword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- trac3r00/agent-skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository84 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- 3d-designSkill
- anti-bsSkill
- api-testerSkill
- apple-homeSkill
- apple-suiteSkill
- apple-tvSkill
- apps-handoffSkill
- appshotSkill
- astra-initSkill
- browser-asideSkill
- changelog-genSkill
- claim-auditSkill
- claude-designSkill
- cleanup-worktreesSkill
- code-reviewSkill
- comment-checkerSkill
- context-budgetSkill
- create-skillsSkill
- cron-auditSkill
- cyber-bypassSkill
- dftSkill
- diff-reviewSkill
- discord-messengerSkill
- doc-readerSkill
- env-gateSkill
- ext-scaffoldSkill
- fddSkill
- finderSkill
- finish-prSkill
- game-filmSkill
- gate-graphSkill
- graph-toolsSkill
- herdrSkill
- image-genSkill
- init-readmeSkill
- init-rulesSkill
- iphone-mirroringSkill
- json-diffSkill
- kakao-messengerSkill
- karpathy-promptSkill
- loeSkill
- log-analyzerSkill
- macos-settingsSkill
- max-buildSkill
- mofficeSkill
- net-probeSkill
- notionSkill
- obsidian-vaultSkill
- omo-runnerSkill
- open-loopsSkill
- optimize-omo-configSkill
- phone-facetimeSkill
- portfolio-auditSkill
- preflightSkill
- project-sessionsSkill
- prompt-builderSkill
- pro-reviewSkill
- proxmox-veSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Very specific: line 35
Ask before deleting a workflow that does more than test/lint/typecheck (release, publish, deploy), before reformatting the whole codebase, …
- Very specific: line 38
Never add a dependency, a tooling config file, a wrapper script around one command, a docs file, or comment banners.
- Distinctive: line 41
Never copy this skill's helper into the repository.
- Very specific: line 52
Default is 1 warmup plus 3 timed runs per command.
- Very specific: line 59
Run bun fmt --doctor (confirm with bun fmt --help first.
- Very specific: line 68
Remove with bun remove <pkg>.
- Very specific: line 92
Always pass --no-script: when package.json has a check script, plain bun check runs that script instead of the typechecker.
- Very specific: line 97
Scripts: keep one test (fastest full run) and one check (bun fmt --check .
- Distinctive: line 103
Run each on a scratch branch or git stash-protected tree.
- Very specific: line 110
Every removed package: bun check and full bun test still pass.
- Distinctive: line 131
When the user wants full runs off their laptop but not on hosted CI, set up one container on their own Proxmox VE server where git push ci …
≈ “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.
Files
CI Test Rebuild (local, Bun)
Make the check loop local, targeted and fast, then prove it with numbers. Everything runs on the developer's machine with Bun builtins; no cloud runner, no GitHub Actions, no new dependency. Delete more than you add. A faster green that runs fewer tests, or a speedup that adds packages and config, is a failure.
Idea source: Owen Gretzinger, "How I made our CI 20x faster" (X Article, 2026), translated to a local Bun pipeline. Read references/levers.md when choosing a lever and references/sources.md for provenance and limits.
Inputs and limits
Require Bun >= 1.4 (bun --version) and a git repository. Read
package.json, lockfile, tsconfig, test files and helpers, existing hooks,
.github/workflows/, AGENTS.md/Rules.md.
- A request to speed up or rebuild tests/CI authorizes editing tests, test
setup,
package.jsonscripts, the git hook, and removing dependencies or config that the change makes unused. Leave changes uncommitted unless the user asked for commits. - Ask before deleting a workflow that does more than test/lint/typecheck (release, publish, deploy), before reformatting the whole codebase, and before deleting or skipping any test.
- Never add a dependency, a tooling config file, a wrapper script around one
command, a docs file, or comment banners. The only files this skill may add
are
.githooks/pre-pushand, when isolation is turned off, one test preload. Never copy this skill's helper into the repository.
1. Baseline (before)
Pick commands that represent the current loop, then snapshot them:
bun <skill-dir>/scripts/bench.ts snap --out /tmp/ctr-before.json --cmd 'full=<current full test command>' \
--cmd 'gate=<current pre-push or check command>' --cmd 'typecheck=<current typecheck>'Default is 1 warmup plus 3 timed runs per command. The snapshot also records
dependency and devDependency counts, package.json scripts, tracked files,
tooling/CI config files, and node_modules size. Keep snapshots outside the
repo. If a command fails at baseline, record it and fix nothing yet.
2. Remove bloat
- Run
bun fmt --doctor(confirm withbun fmt --helpfirst; skip if absent) and list each devDependency with where it is used (imports, scripts, config). Bun builtins replace, when verified on this repo: jest/vitest/mocha ->bun test; ts-node/tsx/nodemon ->bun/bun --watch; concurrently/npm-run-all ->bun run --parallelor shell&+wait; dotenv -> Bun's automatic.envloading; rimraf ->rm -rf; prettier ->bun fmt(only ifbun fmt --check .is clean, otherwise ask). - Migrate a test runner only if the suite passes under
bun testwith import changes alone; otherwise keep it and report why. - Remove with
bun remove <pkg>; delete the tool's config files and its now dead scripts. Delete CI workflows whose only job is test/lint/typecheck, because the local gate replaces them.
3. Rebuild the loop
- Full run: time
bun test,bun test --parallel, andbun test --parallel --no-isolate; keep the fastest that passes twice with--randomize. If--no-isolateleaks state between files, add one preload ([test] preloadin an existingbunfig.toml, or--preloadin the script) that resets shared state after each file, and add one line to an existingAGENTS.md/README saying what a test must clean up. Targeted gate: copy assets/pre-push to
.githooks/pre-push(executable) and enable it withgit config core.hooksPath .githooks. If the repo already setscore.hooksPath, put the hook there instead. If it uses husky or lefthook, replace it with this hook and remove that dependency.Adjust
main, the extension list, and dropbun fmtif the repo does not use it. The hook runs format, typecheck andbun test --changedin parallel. Its inlinebun -ewalks imports from every tracked test file and fails on any changed source file no test reaches (bun test --changedalone exits 0 when nothing is affected). Unresolvable imports, such as uninstalled packages, are skipped, so they only make the check stricter. Always pass--no-script: whenpackage.jsonhas acheckscript, plainbun checkruns that script instead of the typechecker.bun checkstays whole-project: checking only changed files misses breakage in the files that import them. Config/lockfile changes run everything because the import graph cannot see them.- Scripts: keep one
test(fastest full run) and onecheck(bun fmt --check . && bun check --no-script && bun test); delete scripts that only wrapped removed tools.
4. Prove it still fails
Run each on a scratch branch or git stash-protected tree; never commit them.
- A failing assertion in a test reached by a changed source file: gate exits 1.
- A changed source file no test imports: gate exits 1 and names it.
- A type error in a file the changed file's dependents use: gate exits 1.
- A lockfile or
package.jsonchange: gate runs the full suite. - Full run twice with
--randomizeand different--seed: same results. - Every removed package:
bun checkand fullbun teststill pass.
5. After snapshot and comparison
bun <skill-dir>/scripts/bench.ts snap --out /tmp/ctr-after.json --cmd 'full=bun test ...' \
--cmd 'gate=sh .githooks/pre-push' --cmd 'typecheck=bun check --no-script'
bun <skill-dir>/scripts/bench.ts compare /tmp/ctr-before.json /tmp/ctr-after.json --allow-fewer-tests gatecompare prints a markdown table and exits 1 when any command became slower
than 10% (--tolerance), a passing command now fails, a new label fails, a
label ran fewer tests or lost its test summary (except labels passed to
--allow-fewer-tests, used for the targeted gate), the total dependency
count grew, or a tooling/CI config file was added.
More tracked files are flagged for review. Fix the cause; never loosen a gate
to pass. Run gate from a branch with a representative change so it measures
the targeted path, and say which change it was.
6. Private CI box (optional)
When the user wants full runs off their laptop but not on hosted CI, set up
one container on their own Proxmox VE server where git push ci runs the full
suite and rejects the push on failure. Read
references/pve-runner.md. It adds a git remote, not
repository files. Container changes need the user's approval in the session
and go through their own Proxmox access. Add its remote-full row to the
comparison.
7. Report
Paste the comparison table verbatim, then list: packages, configs, workflows and scripts removed; files added (at most the hook and preload); each proof check with its exit code; levers tried and reverted; anything skipped and why. Label every number measured or estimated; there are no estimated numbers in the table.
Helper
scripts/bench.ts (Bun, no dependencies, no network). snap --out FILE
[--cwd DIR] [--runs 1..50] [--warmup 0..10] [--timeout SEC] --cmd label=command
...; compare BEFORE AFTER [--allow-fewer-tests LABEL]... [--tolerance PCT].
Exit 0 ok, 1 gate failed, 2 usage, 3 runtime error. Tests:
node --test <skill-dir>/test/*.test.mjs (Node 24+ and Bun on PATH).
Invoke: /skill:ci-test-rebuild <repo or goal> or $ci-test-rebuild.
Revisit when Bun changes bun test --changed, bun check, or bun fmt
behavior. Effectiveness is unbenchmarked beyond one synthetic demo
(references/sources.md).
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
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.

