スキル一覧に戻る
liauw-media

ci-templates

by liauw-media

Coding Prompt to kickstart a Vibe Code session

1🍴 1📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: ci-templates description: "Use when setting up CI/CD pipelines. Teaches pipeline design principles and references platform-specific templates."

CI/CD Templates

Principles for designing fast, reliable CI/CD pipelines. Platform-specific templates in docs/ci-templates/.

When to Use

  • Setting up a new CI/CD pipeline
  • Optimizing slow pipelines
  • Adding security scanning
  • Migrating between CI platforms

Core Principles

1. Fail Fast

Run quick checks first. Don't waste 10 minutes building if linting fails in 10 seconds.

Stage Order:
1. Lint/Format (seconds)
2. Type Check (seconds)
3. Unit Tests (minutes)
4. Integration Tests (minutes)
5. Build (minutes)
6. E2E Tests (minutes)
7. Deploy (varies)

2. Cache Dependencies

Never re-download what you already have.

FrameworkCache Path
PHP/Composervendor/
Node.jsnode_modules/
Python.venv/ or ~/.cache/pip

3. Parallelize Independent Jobs

Jobs that don't depend on each other should run simultaneously.

✓ Good: lint + unit-tests + type-check (parallel)
✗ Bad: lint → unit-tests → type-check (sequential)

4. Use Artifacts for Handoffs

Don't rebuild between stages. Pass build artifacts.

5. Default to Public Images

Use Docker Hub, GitHub Container Registry, or official images by default. Custom registries are an optimization, not a requirement.

Platform Support

PlatformTemplate LocationConfig File
GitLab CIdocs/ci-templates/gitlab/.gitlab-ci.yml
GitHub Actionsdocs/ci-templates/github/.github/workflows/*.yml

Image Strategy

No setup required. Works everywhere.

FrameworkImageNotes
PHPphp:8.3-cliAdd extensions in before_script
Pythonpython:3.12Add deps in before_script
Nodenode:20Works out of the box
Playwrightmcr.microsoft.com/playwright:latestAll browsers included
Securityaquasec/trivy:latestMulti-language scanner

Option 2: Custom Registry (Optimization)

For faster builds, pre-bake dependencies into custom images.

Configure in .claude/registry.json:

{
  "registry": "your-registry.example.com/images",
  "images": {
    "php": { "testing": "php:8.3-testing" },
    "node": { "base": "node:20-base" }
  }
}

See docs/registry-config.md for building custom images.

Security Scanning

Always include security scanning. Use allow_failure: true initially to avoid blocking deploys while you fix issues.

ScannerWhat It ChecksImage
composer auditPHP dependenciesphp:*
npm auditNode dependenciesnode:*
pip-auditPython dependenciespython:*
TrivyEverything + containersaquasec/trivy
GitleaksSecrets in codezricethezav/gitleaks

Quick Start

GitLab CI

# .gitlab-ci.yml - minimal working example
stages: [test]

test:
  image: node:20
  script:
    - npm ci
    - npm test
  cache:
    paths: [node_modules/]

GitHub Actions

# .github/workflows/test.yml - minimal working example
name: Test
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: '20' }
      - run: npm ci
      - run: npm test

Template Reference

Full templates for common stacks:

StackGitLabGitHub
Laravel/PHPdocs/ci-templates/gitlab/laravel.ymldocs/ci-templates/github/laravel.yml
Django/Pythondocs/ci-templates/gitlab/django.ymldocs/ci-templates/github/django.yml
React/Nodedocs/ci-templates/gitlab/react.ymldocs/ci-templates/github/react.yml
Full-Stackdocs/ci-templates/gitlab/fullstack.ymldocs/ci-templates/github/fullstack.yml

Checklist

When setting up a pipeline:

  • Stages ordered by speed (fast first)
  • Dependencies cached
  • Independent jobs parallelized
  • Artifacts passed between stages
  • Security scanning included
  • Works with public images (custom registry optional)

Common Mistakes

  1. No caching → Slow builds, wasted bandwidth
  2. Sequential everything → 20 min pipeline that could be 5 min
  3. Hardcoded registry → Breaks for contributors
  4. No security scanning → Vulnerabilities ship to prod
  5. E2E tests blocking → Flaky tests block all deploys

Integration

These templates work with:

  • /laravel, /python, /react commands
  • /architect security for security scanning
  • system-architect skill for infrastructure audits

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です