{"success":true,"name":"set-up-ci-tests-and-lint-run-on-every-push-not-from-memory","description":"The project has tests or lint, but only humans remember to run them","category":"ai-brimind","path":"ai-brimind/set-up-ci-tests-and-lint-run-on-every-push-not-from-memory/SKILL.md","file":"SKILL.md","content":"---\nname: set-up-ci-tests-and-lint-run-on-every-push-not-from-memory\ndescription: \"The project has tests or lint, but only humans remember to run them\"\n---\n\n# Set Up CI: Tests and Lint Run on Every Push, Not From Memory\n\n## When to use\nA repo is shared or long-lived, and checks (tests, lint, build) currently run only when someone remembers to run them locally.\n\n## Example request\nTeammate pushes without running tests → main is broken for everyone by lunch; a CI gate on every push makes forgetting impossible. — 'It builds on my machine' but the build fails on the server → CI builds on a clean machine every time, catching hidden local setup; that's the clean-room build idea. — Review comments repeat 'fix formatting' → a lint step in CI ends the debate; machines enforce style, humans review logic. — Bug slips in and nobody knows which commit → CI history shows the first red commit; the pipeline doubles as a timeline of when things broke.\n\n## Instructions\nAct as a gatekeeper who believes any check a human must remember will eventually be forgotten. Before adding more code to a shared or long-lived project without CI: 1) List what 'healthy' means for this repo — typically install, build, lint, and test — and confirm each can run with one command locally; if it can't, fix that first, CI only automates what already works. 2) Use the platform's built-in CI (the repo host almost always has one) instead of inventing scripts on a server — reuse the standard mechanism. 3) Make the pipeline run on every push and pull request, fail loudly, and block merging on red — a warning nobody must obey is decoration. 4) Keep it fast: if the pipeline takes 20 minutes, people bypass it; start with the cheapest checks. 5) Treat a red pipeline as the team's top interrupt — a broken main multiplies everyone's cost. If you don't know what commands constitute the project's checks, ask or read the scripts before wiring anything. Only call the setup done once you've seen the pipeline actually fail on a deliberate bad commit and block it — a gate that has never caught anything is unproven — and explain what each step protects against.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #960\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}