ci-cd
Skill1 starsChanged 5 months agoMITView on GitHub
Builds a GitHub Actions merge gate for the app stack — parallel backend/frontend jobs that run manage.py check, makemigrations --check --dry-run (fail on model drift), pytest, ruff lint, tsc typecheck, and pnpm build, with cached deps and required status checks blocking red PRs. Use when adding or fixing a workflow under .github/workflows, wiring CI for Django/DRF plus Next.js, catching migration drift or unformatted code before merge, running a dependency-audit gate, or asking how the pipeline blocks a broken branch. Not for deploying the built app to Beanstalk/Amplify (see deploy-aws) or authoring the tests themselves (see write-tests).
- Reads credentials
- Installs packages
25 other projects use a version of this.
Adopted by
Most recently taken up by
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
- iuliandita/skillstheir own version, first seen Sep 24, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- KalarisLabs/Skill-Doctortheir own version, first seen Sep 13, 2026
- nafeeur/MaskShifttheir own version, first seen Sep 12, 2026
- celestialdust/achilles-skillstheir own version, first seen Sep 10, 2026
Used with
Projects with it also use caching, shell-scripting and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
zebbernSkillcaching
Caching strategies — invalidation, TTL guidelines, cache keys, cache layers, and when not to cache. Use when implementing or reviewing caching logic.
Also in 3 projects that use this
mylee04Skillshell-scripting
Shell scripting best practices for cross-platform CLI tools
Also in 3 projects that use this
MicrosoftSkillerror-handling
统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。
Also in 5 projects that use this
diego-tobalinaSkilllogging
Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.
Also in 3 projects that use this
pproencaSkillrefactoring
Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.
Also in 4 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 9 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- codewithmukesh/dotnet-claude-kit★ 750same name
- irahardianto/awesome-agv★ 157same name
- AsiaOstrich/universal-dev-standards★ 76same name
- nahid-sparktales/agent-dispatcher★ 59same name
- mgifford/accessibility-skills★ 50same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- KalarisLabs/Skill-Doctor★ 13same name
- iuliandita/skills★ 7same name
- kevinaimonster/skill-hub★ 4same name
- int2t05/engineering-skills★ 3same name
15 more not listed
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 repository49 other files it gives its agents.
- accessibilitySkill
- ai-evalsSkill
- ai-integrationSkill
- architecture-decisionsSkill
- audit-loggingSkill
- aws-servicesSkill
- browser-e2e-testingSkill
- celery-tasksSkill
- changelogSkill
- codebase-guideSkill
- code-reviewSkill
- commit-messageSkill
- cookie-auth-csrfSkill
- dashboard-data-designSkill
- db-concurrencySkill
- debugSkill
- dependency-auditSkill
- deploy-awsSkill
- design-systemSkill
- drf-apiSkill
- drf-zod-contractSkill
- frontend-perfSkill
- git-workflowSkill
- i18n-rtlSkill
- incident-responseSkill
- migrationsSkill
- money-decimalSkill
- multi-tenancySkill
- nextjs-moduleSkill
- observabilitySkill
- perf-reviewSkill
- production-readinessSkill
- product-ux-designSkill
- rbac-permissionsSkill
- react-querySkill
- security-reviewSkill
- skill-authoringSkill
- tailwind-shadcnSkill
- tenant-session-switchSkill
- threat-modelingSkill
- verifySkill
- version-checkSkill
- visual-ui-designSkill
- webhook-handlerSkill
- websockets-channelsSkill
- write-testsSkill
- zod-formsSkill
- zustand-stateSkill
- example-skillSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
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
- Distinctive: line 77
Add security checks as their own required jobs (GitHub Actions), each failing the build on high severity so a vuln can't merge:
- Very specific: line 79
SAST: Run bandit -r . -ll for Python, plus semgrep (or CodeQL) with the Django/DRF and React rulesets for injection, XSS, and …
- Very specific: line 81
Secret scan: Run gitleaks detect over both the diff and history — a secret in an old commit is still leaked.
- Very specific: line 83
Deploy sanity: Run python manage.py check --deploy to catch insecure settings (DEBUG, weak SECRET_KEY, missing HSTS/cookie flags) before …
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CI/CD (GitHub Actions merge gate)
When to use
Setting up or repairing the pipeline that must go green before any branch merges to
main. On this stack the gate has one job: refuse to merge a branch that fails a
static check, drifts from its migrations, breaks a test, or won't build.
Pattern
Fail closed at the PR boundary. Split backend and frontend into parallel jobs,
cache their dependency stores, and make each check a distinct step so a red run points
at the exact failure. The migration-drift check (makemigrations --check --dry-run)
is the one people forget — it catches models edited without a migration, which passes
locally but breaks deploy. Mark every job a required status check in branch
protection so a red pipeline blocks merge instead of merely warning.
Steps / idioms
One workflow, two jobs. Backend job (Postgres service,
manage.py check, drift, pytest, ruff) and frontend job (tsc,pnpm build) run in parallel:# .github/workflows/ci.yml name: CI on: pull_request: { branches: [main] } push: { branches: [main] } jobs: backend: runs-on: ubuntu-latest services: postgres: image: postgres:17 env: { POSTGRES_PASSWORD: postgres, POSTGRES_DB: app } ports: ["5432:5432"] options: >- --health-cmd pg_isready --health-interval 10s --health-retries 5 env: DATABASE_URL: postgres://postgres:postgres@localhost:5432/app steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: { python-version: "3.12", cache: pip } # cache the wheel dir - run: pip install -r requirements.txt - run: python manage.py check # settings/app sanity - run: python manage.py makemigrations --check --dry-run # fail on drift - run: ruff check . # lint (non-zero fails job) - run: pytest -q # Django/DRF tests - run: pip-audit # dependency-audit gate frontend: runs-on: ubuntu-latest defaults: { run: { working-directory: web } } steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: { version: 9 } - uses: actions/setup-node@v4 with: { node-version: "20", cache: pnpm, cache-dependency-path: web/pnpm-lock.yaml } - run: pnpm install --frozen-lockfile - run: pnpm tsc --noEmit # typecheck, no output - run: pnpm build # Next.js production build- Block merge on red. In repo Settings → Branches → protect
main: require thebackendandfrontendchecks to pass and require branches be up to date. A green-only merge button is what actually enforces the gate; the YAML alone does not. - Keep steps granular. Separate
ruff checkfrompytestso the summary names the failure. Addruff format --check .if you enforce formatting. - Audit dependencies in CI.
pip-audit(Python) andpnpm audit --prod(Node) flag known-vuln packages on every PR (seedependency-audit).
Security & hardening gates
Add security checks as their own required jobs (GitHub Actions), each failing the build on high severity so a vuln can't merge:
- SAST. Run
bandit -r . -llfor Python, plussemgrep(or CodeQL) with the Django/DRF and React rulesets for injection, XSS, and unsafe-deserialization patterns. - Secret scan. Run
gitleaks detectover both the diff and history — a secret in an old commit is still leaked. Fail on any finding, not just new ones. - Deploy sanity. Run
python manage.py check --deployto catch insecure settings (DEBUG, weakSECRET_KEY, missing HSTS/cookie flags) before they ship.
Then harden the workflow itself — the pipeline is attackable too:
- Pin actions to a commit SHA, not a moving tag:
uses: actions/checkout@<40-char-sha>. A tag like@v4can be re-pointed at malicious code; a SHA can't. - Least-privilege token. Set
permissions: { contents: read }at the workflow level and widen per-job only where needed (e.g.pull-requests: writefor a comment step). - Bound and dedupe runs. Give each job a
timeout-minutes:so a hung step can't run for hours, and add a top-levelconcurrency: { group: ci-${{ github.ref }}, cancel-in-progress: true }to cancel superseded runs on the same branch.
Mark each security job a required status check in branch protection so it blocks
merge — the same gate discipline as the test jobs (see security-review).
Adapt to your repo
Rename the frontend dir (web), the Postgres image tag (16/17/18 all run Django 5.2),
and the Python/Node versions to match your project. If you use Poetry or uv, swap the
install step and its cache key. Point cache-dependency-path at your real lockfile.
Match the required-check names in branch protection to your actual job names, or the
gate silently passes. If a job needs secrets (RDS, S3), inject them via repository
secrets — never commit them.
Gotchas
makemigrations --check --dry-runexits non-zero only when a migration is missing — it is the drift guard; running plainmakemigrationsin CI would instead write files and hide the problem (seemigrations).- A cache alone doesn't install — you still run
pip install/pnpm install; the cache only skips the download.--frozen-lockfilefails if the lockfile is stale. pnpm buildneeds any build-time env vars (NEXT_PUBLIC_*) present, or the build errors on missing config — set them as non-secret env in the job.- Branch protection is per-branch and per-check-name; a renamed job silently stops being required until you re-add it. Verify a red PR is actually unmergeable.
- Deploy is a separate workflow triggered after this one is green — keep it here or
see
deploy-aws; don't couple test steps to deploy credentials.
See also
deploy-awswrite-testsmigrationsdependency-auditsecurity-reviewversion-check
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.

