cleanup-cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Setup comprehensive CI/CD pipeline with automated testing, building, and deployment
$ npx -y skills add davila7/claude-code-templates --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/ci-setupContext preview
What this command does when you run it.
Setup comprehensive CI/CD pipeline with automated testing, building, and deployment
allowed-tools: Read, Write, Edit, Bash argument-hint: [platform] | --github-actions | --gitlab-ci | --jenkins | --full-setup description: Setup comprehensive CI/CD pipeline with automated testing, building, and deployment
Setup continuous integration pipeline: $ARGUMENTS
Implement comprehensive CI/CD following best practices: $ARGUMENTS
1. **Project Analysis**
2. **CI/CD Platform Selection**
3. **Repository Setup**
4. **Build Pipeline Configuration**
**GitHub Actions Example:**
name: CI/CD Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- run: npm ci
- run: npm run test
- run: npm run build**GitLab CI Example:**
stages:
- test
- build
- deploy
test:
stage: test
script:
- npm ci
- npm run test
cache:
paths:
- node_modules/5. **Environment Configuration**
6. **Automated Testing Integration**
**Multi-stage Testing:**
test:
strategy:
matrix:
node-version: [16, 18, 20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test7. **Code Quality Gates**
8. **Build Optimization**
**Caching Example:**
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-9. **Docker Integration**
**Multi-stage Dockerfile:**
FROM node:18-alpine AS builder WORKDIR /app COPY package*.json ./ RUN npm ci --only=production FROM node:18-alpine AS runtime WORKDIR /app COPY --from=builder /app/node_modules ./node_modules COPY . . EXPOSE 3000 CMD ["npm", "start"]
10. **Deployment Strategies**
11. **Infrastructure as Code**
12. **Monitoring and Observability**
13. **Security Integration**
**Security Scanning Example:**
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}14. **Database Migration Handling**
15. **Performance Testing Integration**
16. **Multi-Environment Deployment**
Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.
Repo: davila7/claude-code-templates
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Create an SEO-optimized blog article for a Claude Code component with AI-generated cover image