本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)29k · #9579

ci-cd-pipeline-builder

できること

リポジトリのファイルを見て、言語やツールを検出し、GitHub ActionsまたはGitLab CIの初期パイプラインを作ります。自動チェックを設定したり置き換えたりする開発者向けです。

使う場面

  • ✓新しいリポジトリの自動テストとビルドを設定するとき。
  • ✓現在のパイプラインのファイルがもろく、別のプロジェクトからコピーされたものであるとき。
  • ✓パイプラインをGitHub ActionsとGitLab CIの間で移したいとき。

スキルのリンク

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/ci-cd-pipeline-builder/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/ci-cd-pipeline-builder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このリポジトリにlint、テスト、ビルドを実行するGitHub Actionsのパイプラインが必要です。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、ロックファイルやビルド設定などのファイルからプロジェクトのスタックを検出し、リント、テスト、ビルド、デプロイの段階を生成します。キャッシュもスタックに合わせます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

CI/CD Pipeline Builder

Tier: POWERFUL
Category: Engineering
Domain: DevOps / Automation

Overview

Use this skill to generate pragmatic CI/CD pipelines from detected project stack signals, not guesswork. It focuses on fast baseline generation, repeatable checks, and environment-aware deployment stages.

Core Capabilities

  • Detect language/runtime/tooling from repository files
  • Recommend CI stages (lint, test, build, deploy)
  • Generate GitHub Actions or GitLab CI starter pipelines
  • Include caching and matrix strategy based on detected stack
  • Emit machine-readable detection output for automation
  • Keep pipeline logic aligned with project lockfiles and build commands

When to Use

  • Bootstrapping CI for a new repository
  • Replacing brittle copied pipeline files
  • Migrating between GitHub Actions and GitLab CI
  • Auditing whether pipeline steps match actual stack
  • Creating a reproducible baseline before custom hardening

Key Workflows

1. Detect Stack

python3 scripts/stack_detector.py --repo . --format text
python3 scripts/stack_detector.py --repo . --format json > detected-stack.json

Supports input via stdin or --input file for offline analysis payloads.

2. Generate Pipeline From Detection

python3 scripts/pipeline_generator.py \
  --input detected-stack.json \
  --platform github \
  --output .github/workflows/ci.yml \
  --format text

Or end-to-end from repo directly:

python3 scripts/pipeline_generator.py --repo . --platform gitlab --output .gitlab-ci.yml

3. Validate Before Merge

  1. Confirm commands exist in project (test, lint, build).
  2. Run generated pipeline locally where possible.
  3. Ensure required secrets/env vars are documented.
  4. Keep deploy jobs gated by protected branches/environments.

4. Add Deployment Stages Safely

  • Start with CI-only (lint/test/build).
  • Add staging deploy with explicit environment context.
  • Add production deploy with manual gate/approval.
  • Keep rollout/rollback commands explicit and auditable.

Script Interfaces

  • python3 scripts/stack_detector.py --help
    • Detects stack signals from repository files
    • Reads optional JSON input from stdin/--input
  • python3 scripts/pipeline_generator.py --help
    • Generates GitHub/GitLab YAML from detection payload
    • Writes to stdout or --output

References

よくある質問

どのプラットフォームに対応していますか?

GitHub ActionsとGitLab CIです。

プロジェクトが何を使っているか、どうやって分かりますか?

検出スクリプトが、ロックファイルやビルドの設定などのリポジトリのファイルを読みます。

パイプラインは本番向けに準備できていますか?

それは基本の構成で、後から独自の強化を加えたい場合があります。

詳細

作者による元の説明

Use when setting up or refactoring CI/CD for a repo, before writing workflow YAML. Detects the stack with stack_detector.py and generates the pipeline with pipeline_generator.py.

repo: alirezarezvani/claude-skills

人気

GitHubのスター
29k
ランキング
#9579
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル