api-integration
Use this skill when the user says 'API integration', 'connect APIs', 'sync data', 'data mapping', 'rate limiting', or needs…
Use this skill when the user says 'CI/CD', 'GitHub Actions', 'pipeline', 'continuous integration', 'continuous deployment', 'ci-cd-pipeline', 'automate deploys', or needs to set up automated build, test, and deployment pipelines. Do NOT use for one-time manual deployments.
$ npx -y skills add cwinvestments/memstack --skill ci-cd-pipeline --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ci-cd-pipelineContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when the user says 'CI/CD', 'GitHub Actions', 'pipeline', 'continuous integration', 'continuous deployment', 'ci-cd-pipeline', 'automate deploys', or needs to set up automated build, test, and deployment pipelines. Do NOT use for one-time manual deployments.
name: memstack-deployment-ci-cd-pipeline description: "Use this skill when the user says 'CI/CD', 'GitHub Actions', 'pipeline', 'continuous integration', 'continuous deployment', 'ci-cd-pipeline', 'automate deploys', or needs to set up automated build, test, and deployment pipelines. Do NOT use for one-time manual deployments." version: 1.0.0 license: "Proprietary, MemStack™ Pro by CW Affiliate Investments LLC. See LICENSE.txt"
*Detect project type and generate a complete CI/CD pipeline with lint, test, build, deploy stages, rollback strategy, and environment management.*
When this skill activates, output:
`🔄 CI/CD Pipeline: Designing your pipeline...`
| Context | Status | |---------|--------| | **User says "CI/CD", "pipeline", "GitHub Actions"** | ACTIVE | | **User wants automated testing and deployment** | ACTIVE | | **User mentions branch strategy, deploy gates, or rollbacks** | ACTIVE | | **User wants Docker setup (CI/CD is secondary)** | DORMANT: see docker-setup | | **User wants server provisioning (not pipeline)** | DORMANT: see hetzner-setup | | **User wants to deploy to a specific platform only** | DORMANT, see railway-deploy or netlify-deploy |
Ask the user for:
Auto-detect from project files and recommend CI/CD platform:
| Project Signal | Platform Recommendation | Reason | |---------------|------------------------|--------| | `.github/` exists | GitHub Actions | Already on GitHub, native integration | | `vercel.json` or Next.js | Vercel (auto-deploy) + GitHub Actions (CI) | Vercel handles deploy, GHA handles testing | | `railway.json` | Railway (auto-deploy) + GitHub Actions (CI) | Railway handles deploy, GHA handles testing | | `netlify.toml` | Netlify (auto-deploy) + GitHub Actions (CI) | Netlify handles deploy, GHA handles testing | | Dockerfile present | GitHub Actions → Docker registry → deploy | Full control pipeline | | Monorepo (`packages/`) | GitHub Actions with matrix/path filters | Need per-package CI | | Self-hosted server | GitHub Actions → SSH deploy | Push-based deployment |
**Default recommendation: GitHub Actions**: free for public repos, 2,000 min/month for private.
Define the stage sequence:
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│ LINT │──→│ TEST │──→│ BUILD │──→│ DEPLOY │──→│ VERIFY │
│ │ │ │ │ │ │ │ │ │
│ ESLint │ │ Unit │ │ Compile │ │ Push to │ │ Health │
│ Prettier│ │ Integ. │ │ Bundle │ │ target │ │ Smoke │
│ Types │ │ E2E │ │ Docker │ │ env │ │ Rollback│
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
│ │ │ │ │
Fail fast Gate: block Artifacts Env-specific Auto-rollback
< 1 min if < 80% cached secrets on failure**Stage details:**
| Stage | Trigger | Failure Action | Duration Target | |-------|---------|---------------|-----------------| | **Lint** | Every push, every PR | Block merge | < 1 min | | **Test** | Every push, every PR | Block merge | < 5 min | | **Build** | PR merge to main/develop | Block deploy | < 3 min | | **Deploy** | Build passes on target branch | Alert + rollback | < 2 min | | **Verify** | After deploy completes | Auto-rollback | < 1 min |
**Recommended: Simplified GitFlow**
main (production) ├── develop (staging) │ ├── feature/add-auth │ ├── feature/dashboard │ └── fix/login-bug └── hotfix/critical-fix (→ main + develop)
| Branch | Deploys To | CI Runs | Auto-Deploy? | |--------|-----------|---------|-------------| | `feature/*` | none | Lint + Test | No | | `develop` | Staging | Lint + Test + Build + Deploy | Yes | | `main` | Production | Lint + Test + Build + Deploy | Yes (or manual gate) | | `hotfix/*` | none | Lint + Test | No (merge to main to deploy) |
**Branch protection rules:**
main: - Require PR review (1+ approvals) - Require status checks (lint, test, build) - No force push - No direct push develop: - Require status checks (lint, test) - Allow direct push (for solo devs) - No force push
── ENVIRONMENT VARIABLES ────────────────── Three environments with escalating secrets: LOCAL (.env.local, never committed): DATABASE_URL=postgresql://localhost:5432/app_dev API_KEY=dev_test_key NODE_ENV=development STAGING (GitHub Secrets / platform env): DATABASE_URL=[staging DB connection string] API_KEY=[staging API key] NODE_ENV=staging PRODUCTION (GitHub Secrets / platform env): DATABASE_URL=[production DB connection string] API_KEY=[production API key] NODE_ENV=production
**Secret management rules:**
**GitHub Environments setup:**
Repository → Settings → Environments:
staging:
Secrets: DATABASE_URL, API_KEY
Deployment branches: develop
production:
Secrets: DATABASE_URL, API_KEY
Deployment branches: main
Required reviewers: [team member] (optional gate)**GitHub Actions: Node.js project:**
name: CI/CD Pipelin
The structured skill framework for Claude Code: 131 professional skills for deployment, security, databases, content, marketing, and more. Skills activate automatically when you need them. Say "deploy this to Railway" and the right skill loads on demand.
Use this skill when the user says 'API integration', 'connect APIs', 'sync data', 'data mapping', 'rate limiting', or needs…
Use this skill when the user says 'content pipeline', 'content automation', 'auto-publish', 'repurpose content', 'multi-platform…
Use this skill when the user says 'cron job', 'scheduled task', 'run every', 'cron expression', 'recurring job', or needs…
Use when the user says 'what MCP servers', 'find an MCP for', 'hosted MCP', 'list MCP servers', 'MCP catalog', 'available MCP…
Use this skill when the user says 'n8n workflow', 'build a workflow', 'automation workflow', 'connect services', or needs visual…
Use this skill when the user says 'webhook', 'webhook handler', 'webhook endpoint', 'receive events', 'HMAC verification',…