Release build gates
Makes your build fail on missing files, stale bundles and drift, so you ship exactly what you tested.
Claude's review
7/10 Good concrete rules for making builds a real gate, marred by a closing note tied to one ffmpeg repo.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Make the build step a real gate on what you actually distribute — build scripts that warn and exit 0 on a missing input, size checks with only an upper bound, hand-maintained file lists that drift from the entrypoints they must cover, committed bundles that go stale when only the source changes, GNU-only shell in release scripts that aborts on the other OS, and verification that runs against the source tree instead of the artifact. Use when writing or reviewing a build/package script, a `dist/` copy step, a release workflow that uploads a zip or installer, or a committed compiled asset.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: shipping-build-artifacts
description: Make the build step a real gate on what you actually distribute — build scripts that warn and exit 0 on a missing input, size checks with only an upper bound, hand-maintained file lists that drift from the entrypoints they must cover, committed bundles that go stale when only the source changes, GNU-only shell in release scripts that aborts on the other OS, and verification that runs against the source tree instead of the artifact. Use when writing or reviewing a build/package script, a `dist/` copy step, a release workflow that uploads a zip or installer, or a committed compiled asset.
---
# Shipping Build Artifacts
Lint, type-check, and tests run against the source tree. What users install is a
*different* set of bytes — assembled by a script that most gates never look at,
then uploaded by a workflow that trusts whatever the script left behind. Every
failure below ships a broken or stale artifact under fully green CI.
## A script that warns and exits 0 is not a gate
The shape is universal: a declared list of inputs, a copy loop, a friendly
warning when one is missing.
```js
for (const f of DIST_FILES) {
if (!fs.existsSync(f)) {
console.warn(`Warning: ${f} not found, skipping`); // build "succeeds"
continue;
}
fs.copyFileSync(f, path.join("dist", f));
}
```
Move one required file aside and the script prints a line nobody reads, exits 0,
and produces a `dist/` without it. Nothing downstream notices: the test job ran
against the source tree, and the release job zips `dist/` and attaches it to a
public release. The artifact is wholly non-functional — the entrypoint imports a
file that isn't there — and the failure is discovered by users.
```js
const missing = DIST_FILES.filter((f) => !fs.existsSync(f));
if (missing.length) {
console.error(`Missing build inputs: ${missing.join(", ")}`);
process.exit(1);
}
```
...From kajisho5's repository, MIT licence.
Related skills
-
Checked
Incident postmortem writer
Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.
8/101 credit -
Checked
Akka.NET cluster management
Sets up Akka.NET cluster bootstrapping, service discovery and health checks, with no static seed nodes needed.
7/101 credit -
Checked
Terraform and OpenTofu
Sets up Terraform or OpenTofu modules, state and secrets with safe plan and apply for predictable changes.
8/101 credit -
Checked
AWS Lambda web apps
Builds and deploys Express, Fastify or Hono apps on AWS Lambda web functions, so your site runs serverless.
7/101 credit -
Checked
Cloud IAM audit
Audits and designs access across AWS, GCP, Azure and identity providers for least privilege and clean SSO.
7/101 credit -
Checked
Grafana APM and RUM
Sets up Grafana Cloud app monitoring, Faro frontend RUM and LLM tracing to show latency and errors.
7/101 credit