shell-prepush
Skill56 starsChanged 34 days agoApache-2.0View on GitHub
Use this workflow skill before pushing shell or scripts changes to run scoped fast validation and targeted BATS tests, interpret stale dependency-pin failures, and retrieve empty Fast Validation logs from artifacts.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- android/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- ios/CLAUDE.mdCLAUDE.md
- auto-mobile-code-reviewSkill
- ci-failure-triageSkill
- github-pr-feedbackSkill
- ios-swift-ciSkill
- node-prepushSkill
- prepush-androidSkill
- shell-prepushSkill
- android-gradlewSkill
- auto-mobile-code-reviewSkill
- bun-tasksSkill
- check-ciSkill
- ci-failure-triageSkill
- dead-codeSkill
- device-session-lifecycleSkill
- fan-out-fan-inSkill
- github-cliSkill
- github-pr-feedbackSkill
- ios-swift-ciSkill
- manual-testSkill
- node-prepushSkill
- observeSkill
- pr-analysisSkill
- prepush-androidSkill
- push-my-prsSkill
- push-prSkill
- researchSkill
- ship-issueSkill
- testSkill
- validateSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 8
Use this before pushing changes under scripts/, shell hooks, agent skills, or related documentation.
- Very specific: line 14
Run scripts/prepush-shell.sh.
- Very specific: line 17
Run bun run format before pushing.
- Very specific: line 19
If runtime-pins, sharp-matrix, or pin-runtime-deps.bats fails and bun.lock and/or package.json changed in the diff, run bun …
- Very specific: line 24
Never run two bats test/bats/ sweeps concurrently on one machine.
- Very specific: line 26
When an Actions API job log is empty, download the fast-validation-logs artifact and inspect its per-check .status and .log files under …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Shell Prepush
Use this before pushing changes under scripts/, shell hooks, agent skills, or
related documentation. It is a local pre-push check, not a replacement for the
required CI jobs.
Workflow
- Run
scripts/prepush-shell.sh; it compares the branch toorigin/main, ormainwhen the remote-tracking ref is unavailable, and selects only the applicable fast checks plus targeted BATS files. - Run
bun run formatbefore pushing. Fast Validation runsbun run format:checkas its first check and fails on drift. - If
runtime-pins,sharp-matrix, orpin-runtime-deps.batsfails andbun.lockand/orpackage.jsonchanged in the diff, runbun scripts/release/pin-runtime-deps.ts --writeand commitpackage.json,bun.lock, andscripts/release/runtime-graph.json; otherwise rebase onto current main and do not hand-edit pins to mask a stale base. - Never run two
bats test/bats/sweeps concurrently on one machine. The targeted BATS invocation fromprepush-shell.shis safe to run on its own. - When an Actions API job log is empty, download the
fast-validation-logsartifact and inspect its per-check.statusand.logfiles underscratch/fast-validate-*/.
Repo Validation Mapping
- Shell/scripts pre-push:
scripts/prepush-shell.sh - Scoped fast checks:
./scripts/all_fast_validate_checks.sh --only <names> - Targeted shell tests:
bats test/bats/<matching-file>.bats - Formatting:
bun run format
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.

