Use this skill when the user asks to "setup CI/CD", "configure GitHub Actions", "deploy Storybook", "setup Chromatic", "add visual regression to CI", "create deployment pipeline", or wants to generate complete CI/CD workflows for Storybook deployment and testing.
/plugin marketplace add flight505/storybook-assistant-plugin/plugin install flight505-storybook-assistant@flight505/storybook-assistant-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Generate production-ready CI/CD pipelines for Storybook with one command. Includes automated testing, visual regression, deployment, and PR previews.
.github/workflows/storybook.yml:
name: Storybook CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run build-storybook
- run: npm run test-storybook
- name: Upload coverage
uses: codecov/codecov-action@v3
visual-regression:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run chromatic
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_TOKEN }}
deploy:
needs: [test, visual-regression]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run build-storybook
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
User: /setup-ci-cd
Detecting environment...
✓ Git repository found
✓ package.json detected
✓ GitHub Actions available
Select deployment target:
[1] Vercel (Recommended)
[2] Netlify
[3] GitHub Pages
[4] AWS S3
Select features:
☑ Automated testing
☑ Visual regression (Chromatic)
☑ Bundle size tracking
☑ PR preview comments
☐ Accessibility checks (already in tests)
Generating workflows...
✓ .github/workflows/storybook.yml
✓ .github/workflows/visual-regression.yml
✓ chromatic.config.js
✓ Updated package.json scripts
Setup environment secrets:
1. Go to GitHub → Settings → Secrets
2. Add: CHROMATIC_PROJECT_TOKEN
3. Add: VERCEL_TOKEN
4. Add: VERCEL_ORG_ID
5. Add: VERCEL_PROJECT_ID
Next PR will trigger full pipeline ✓
One-command CI/CD setup:
Result: Production-ready pipeline in 2 minutes.