Skip to content
Skills Library
Programming · Testing

shell-prepush

/shell-prepush

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.

Repository
auto-mobile ↗
Licence
Apache-2.0
Last repository change
28.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

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.

Original author description

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.

How it works

  1. Workflow
  2. Repo Validation Mapping
Original SKILL.md headings · 32 lines, 195 words
SKILL.md preview
---
name: shell-prepush
description: "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."
---

# 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

1. Run `scripts/prepush-shell.sh`; it compares the branch to `origin/main`, or
   `main` when the remote-tracking ref is unavailable, and selects only the
   applicable fast checks plus targeted BATS files.
2. Run `bun run format` before pushing. Fast Validation runs
   `bun run format:check` as its first check and fails on drift.
3. If `runtime-pins`, `sharp-matrix`, or `pin-runtime-deps.bats` fails and
   `bun.lock` and/or `package.json` changed in the diff, run
   `bun scripts/release/pin-runtime-deps.ts --write` and commit `package.json`,
   `bun.lock`, and `scripts/release/runtime-graph.json`; otherwise rebase onto
   current main and do not hand-edit pins to mask a stale base.
4. Never run two `bats test/bats/` sweeps concurrently on one machine. The
   targeted BATS invocation from `prepush-shell.sh` is safe to run on its own.
5. When an Actions API job log is empty, download the `fast-validation-logs`
   artifact and inspect its per-check `.status` and `.log` files under
   `scratch/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`

Versions

The database has no other skills named shell-prepush.

Database snapshot: 13.11.2026 · package version 766fccb56610 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100bats-testing-patterns
    Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.
  • 95bats-testing-patterns
    Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.
  • 100bats-testing-patterns
    Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.
  • 100bats-testing-patterns
    Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.
  • 100bats-testing-patterns
    Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.
  • 100shell-script-review
    Review shell scripts for security, correctness, maintainability, and Bats suite pairing (TEST-00) with emphasis on operational safety. Use when reviewing shell script PRs requiring judgment beyond static checks, including whether paired Bats suites were added or updated per TEST-00.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.