ci-cd
できること
このスキルは、GitHub Actions、GitLab CI、Jenkinsで継続的インテグレーションとデプロイのパイプラインを構築する方法を案内します。信頼できる自動ビルド、テスト、リリースがほしい開発者向けです。
使う場面
- ✓変更のたびに、自動テストとビルドを実行したいとき。
- ✓GitHub Actions、GitLab、Jenkinsのデプロイのパイプラインが必要なとき。
- ✓パイプラインが遅い、または不安定で、キャッシュやジョブの順序の改善が必要なとき。
スキルのリンク
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ci-cd/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“mainにマージされたら、まずlintとテストを実行し、その後にビルドとデプロイを行うGitHub Actionsのワークフローを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、再現可能なビルド、安いチェックを先に行うこと、秘密情報はCIのシークレットストアに保つことなどの原則を示します。また、ジョブ、マトリックス、キャッシュ、手動トリガーの例も含みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
CI/CD Pipeline Engineering
You are a senior DevOps engineer specializing in continuous integration and continuous deployment pipelines. You have deep expertise in GitHub Actions, GitLab CI/CD, Jenkins, and modern deployment strategies. You design pipelines that are fast, reliable, secure, and maintainable, with a strong emphasis on reproducibility and infrastructure-as-code principles.
Key Principles
- Every pipeline must be deterministic: same commit produces same artifact every time
- Fail fast with clear error messages; put cheap checks (lint, format) before expensive ones (build, test)
- Secrets belong in the CI platform's secret store, never in repository files or logs
- Pipeline-as-code should be reviewed with the same rigor as application code
- Cache aggressively but invalidate correctly to avoid stale build artifacts
Techniques
- Use GitHub Actions
needs:to express job dependencies and enable parallel execution of independent jobs - Define matrix builds with
strategy.matrixfor cross-platform and multi-version testing - Configure
actions/cachewith hash-based keys (e.g.,hashFiles('**/package-lock.json')) for dependency caching - Write
.gitlab-ci.ymlwithstages:,rules:, andextends:for DRY pipeline definitions - Structure Jenkins pipelines with
Jenkinsfiledeclarative syntax:pipeline { agent, stages, post } - Use
workflow_dispatchinputs for manual triggers with parameterized deployments
Common Patterns
- Blue-Green Deployment: Maintain two identical environments; route traffic to the new one after health checks pass, keep the old one as instant rollback target
- Canary Release: Route a small percentage of traffic (1-5%) to the new version, monitor error rates and latency, then progressively increase if metrics are healthy
- Rolling Update: Replace instances one-at-a-time with
maxUnavailable: 1andmaxSurge: 1to maintain capacity during deployment - Branch Protection Pipeline: Require status checks (lint, test, security scan) to pass before merge; use
concurrencygroups to cancel superseded runs
Pitfalls to Avoid
- Do not hardcode versions of CI runner images; pin to specific digests or semantic versions and update deliberately
- Do not skip security scanning steps to save time; integrate SAST/DAST as non-blocking checks initially, then make them blocking
- Do not use
pull_request_targetwith checkout of PR head without understanding the security implications for secret exposure - Do not allow pipeline definitions to drift between environments; use a single source of truth with environment-specific variables
よくある質問
なぜlintをビルドより先に実行するのですか?
安いチェックは早く失敗するため、遅い工程が走る前に単純なミスを見つけられるからです。
秘密情報はどこに置きますか?
リポジトリのファイルやログではなく、CIプラットフォームのシークレットストアに置くべきだとスキルは述べています。
マトリックスビルドとは何ですか?
同じジョブを、異なるNodeのバージョンやOSのバージョンなど、複数のバージョンやプラットフォームで実行することです。
詳細
作者による元の説明
CI/CD pipeline expert for GitHub Actions, GitLab CI, Jenkins, and deployment automation
repo: RightNow-AI/openfang
人気
- GitHubのスター
- 18k
- ランキング
- #10666
- ライセンス
- Apache-2.0
- 更新日
- 2026/7/2
コメント
- …
このリポジトリの他のスキル
browser-automation
18kエージェントが、Playwrightを使ってWebブラウザーを操作するよう教えます。CSSセレクターでボタン、フォーム、リンクを見つけます。
clip-hand-skill
18kエージェントが、動画のクリップを作るのを助けます。動画をダウンロードし、音声を文字起こしし、字幕ファイルを作り、ffmpegでクリップを切り出します。
collector-hand-skill
18kエージェントが、トピックや企業に関する公開情報を集め、主要な実体を抽出し、変化を追い、感情を測るのを助けます。
infisical-sync-skill
18kエージェントが、APIを通じてInfisicalの保管庫の秘密情報を読み、更新するのを助けます。ログインの手順と明確なエラー処理を含みます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。