Skills

Nw Cicd And Deployment

CI/CD pipeline design methodology, deployment strategies, GitHub Actions patterns, and...

Install

npx skills add nWave-ai/nWave --skill nw-cicd-and-deployment -g -a claude-code -y
Repository
nWave-ai/nWave628
Category
Design
Updated
2mo ago
License
MIT
Context cost
Mediumabout 2,766 tokens
Runs scripts
No, instructions only

What it does

CI/CD pipeline design methodology, deployment strategies, GitHub Actions patterns, and branch/release strategies. Load when designing pipelines or deployment workflows.

CI/CD Pipeline Design and Deployment Strategies

Local Quality Gates

Catch issues at the developer's machine before they reach CI. Local gates mirror the remote commit stage for fast feedback (seconds vs minutes).

Gate Taxonomy

GateTriggerChecksTools
Pre-commitgit commitFormatting, linting, unit tests, secrets scanpre-commit, husky, lefthook
Pre-pushgit pushIntegration tests, acceptance tests, coverage thresholdpre-commit (push stage), git hooks
Local CIManualFull pipeline locallyact (GitHub Actions), gitlab-runner exec

Design Principles

  • Mirror, not duplicate: local gates run the same checks as the remote commit stage, not additional ones. Keeps developer experience consistent with CI.
  • Fast by default: pre-commit gates target < 30 seconds. Move slow checks (integration, acceptance) to pre-push.
  • Escapable with audit trail: allow --no-verify for emergencies but log skips. CI remains the authoritative gate.
  • Framework selection: prefer pre-commit (Python ecosystem) or lefthook (polyglot, fast parallel execution) over raw git hooks. Husky for JS/TS-heavy projects.

Hook Stage Assignment

pre-commit (< 30s):     formatting | linting | unit tests (fast subset) | secrets scan
pre-push   (< 5 min):   full unit suite | integration tests | coverage check | type checking

Pipeline Stages

Commit Stage (target: < 10 minutes)

Compile/build | Run unit tests (fast, isolated) | Static code analysis (linting, formatting) | Security scanning (SAST, secrets detection) | Generate build artifacts. Quality gates: build success | 100% unit test pass rate | coverage threshold (e.g., > 80%) | no critical vulnerabilities | no secrets in code.

Read the whole SKILL.md on GitHub

More in Design