Hatch3r Ci Pipelineのロゴ

Hatch3r Ci Pipeline

組織
hatch3r
hatch3r-ci-pipeline

Designs and optimizes CI/CD pipelines. Covers stage design, test parallelization, artifact management, and pipeline performance.

概要

公開者hatch3r
リポジトリhatch3r
スキル名hatch3r-ci-pipeline
スター
26
フォーク
7
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    hatch3rがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Hatch3r Ci Pipeline」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-ci-pipeline
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/skills/hatch3r-ci-pipeline .claude/skills/hatch3r-ci-pipeline
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHatch3r Ci Pipelineを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHatch3r Ci Pipelineを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Hatch3r Ci Pipelineは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

CI Pipeline Workflow

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Audit existing pipeline
- [ ] Step 2: Design stage structure
- [ ] Step 3: Optimize test parallelization
- [ ] Step 4: Configure artifact management
- [ ] Step 5: Implement and validate

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: CI platform (GitHub Actions vs GitLab vs CircleCI vs Azure Pipelines), pipeline duration target, runner sizing budget, deploy gate (auto vs manual approval for prod), and artifact retention policy.

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Step 1: Audit Existing Pipeline

  • Map the current pipeline stages, their dependencies, and execution times.
  • Identify bottlenecks: which stages take the longest? Which block others unnecessarily?
  • Check for flaky tests that cause unnecessary reruns.
  • Review resource usage: are runners appropriately sized? Are caches effective?
  • Measure total pipeline duration from push to deployable artifact.

Step 2: Design Stage Structure

  • Organize into logical stages: install, lint, typecheck, unit test, integration test, build, deploy.
  • Maximize parallelism: lint, typecheck, and unit tests can run in parallel after install.
  • Use fail-fast: if lint fails, skip tests. If unit tests fail, skip integration tests.
  • Gate deployments behind all quality checks.
  • Separate environment-specific deployment stages (staging, production) with manual approval gates for production.

Step 3: Optimize Test Parallelization

  • Split test suites across multiple runners using test file sharding or test duration-based splitting.
  • Use test timing data from previous runs to balance shard workloads.
  • Run unit tests and integration tests on separate runners in parallel.
  • For monorepos: only run tests for changed packages and their dependents.
  • Cache test results for unchanged code paths where the test framework supports it.

Step 4: Configure Artifact Management

  • Build artifacts once, deploy the same artifact to all environments.
  • Tag artifacts with commit SHA and build number for traceability.
  • Set retention policies: keep production artifacts longer, clean up PR artifacts after merge.
  • Store build metadata (git SHA, branch, build time, test results) alongside artifacts.
  • Use content-addressable storage or artifact registries appropriate to the project (npm, Docker, S3).

Step 5: Implement and Validate

  • Implement pipeline changes incrementally — test each stage change in a feature branch.
  • Verify caching works: first run populates cache, second run uses it (confirmed by cache hit log output).
  • Confirm parallel stages don't have hidden dependencies causing race conditions.
  • Measure pipeline duration improvement against the baseline from Step 1.
  • Document the pipeline architecture for the team.

Supply-Chain Floor

A CI/CD pipeline is the supply-chain attack surface — design the floor in, do not bolt it on. The glob-scoped floor rules attach when you edit a workflow or Dockerfile; this callout surfaces them at pipeline-design time so the controls are planned, not discovered. Apply both rules as authored — this section cross-references, it does not restate:

  • rules/hatch3r-dependency-management.md — SHA-pin every GitHub Action to a 40-char commit SHA (not a tag); npm ci / lockfile-only installs; CVE scan gate before merge; npm Trusted Publishing via GitHub OIDC with --provenance (no long-lived publish token), attestations signed by Sigstore.
  • rules/hatch3r-container-hardening.md — pin base images by @sha256: digest; generate an SBOM (CycloneDX or SPDX) in the build stage; cosign-sign images and verify by digest at deploy; distroless / Wolfi runtime, non-root user.

Gate releases on these the same way Step 2 gates deploys on quality checks: a release stage that publishes without provenance + SBOM, or pulls an unpinned action / untagged base image, fails the gate.

Pipeline Performance Targets

MetricTarget
Lint + typecheck< 2 minutes
Unit tests< 5 minutes
Integration tests< 10 minutes
Full pipeline (push to artifact)< 15 minutes
Cache hit ratio> 80%

Error Handling

  • Pipeline config syntax errors: Validate workflow YAML locally (e.g., actionlint for GitHub Actions) before pushing. Report the exact line and field causing the parse failure.
  • Flaky tests block pipeline: Identify the flaky test(s) by re-running the failing job. If confirmed flaky, quarantine the test with a tracking issue reference and unblock the pipeline.
  • Cache invalidation causes slow builds: Verify cache key patterns match the lockfile hash. If caches are stale, clear them and document the corrected key strategy.

Definition of Done

  • Pipeline stages optimized with maximum parallelism
  • Test parallelization configured and balanced
  • Artifact management with retention policies
  • Pipeline duration meets performance targets
  • Documentation updated with pipeline architecture

References

よくある質問

AIスキル「Hatch3r Ci Pipeline」では何ができますか?

Designs and optimizes CI/CD pipelines. Covers stage design, test parallelization, artifact management, and pipeline performance.

TypingMindでHatch3r Ci Pipelineを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Hatch3r Ci Pipelineはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHatch3r Ci Pipelineをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/hatch3r/hatch3r/tree/main/skills/hatch3r-ci-pipelineを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Hatch3r Ci Pipelineを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Hatch3r Ci Pipelineで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHatch3r Ci Pipelineを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Hatch3r Ci Pipeline」は無料ですか?

はい。hatch3rがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇