Ci Scaffoldingのロゴ

Ci Scaffolding

コミュニティ
neuromechanist
ci-scaffolding

This skill should be used when the user says "set up CI", "create GitHub Actions", "scaffold CI pipeline", "add CI/CD", "configure continuous integration", "create test workflow", "create release workflow", "add pre-commit hooks", "set up linting pipeline", "configure ruff in CI", "configure biome in CI", "add typo checking", or wants to add, update, or customize CI/CD pipelines for their project. For initial project setup including basic CI, see init-project. Use ci-scaffolding for adding or customizing CI/CD in existing projects.

Add to TypingMind

概要

公開者neuromechanist
リポジトリresearch-skills
スキル名ci-scaffolding
スター
51
フォーク
9
同梱ファイル
2
ライセンスBSD-3-Clause
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

CI/CD Scaffolding

Generate and configure CI/CD pipelines following project conventions. Supports Python (ruff + pytest + coverage) and TypeScript/JavaScript (biome + bun test) stacks, with templates for testing, documentation, and release workflows.

When to Use

  • Adding CI/CD to a new project
  • Updating existing GitHub Actions workflows
  • Setting up pre-commit hooks for linting
  • Configuring coverage reporting
  • Adding release automation (tag-based)

Triggers and scope (every workflow)

CI runs only when files it checks change, once per push.

  1. Trigger on pull_request for any base (fix PRs and epic phase PRs need CI too) plus push to the integration branches. Never on: [push, pull_request]; it runs twice for every PR push.
  2. Add concurrency that cancels superseded PR runs.
  3. Scope each workflow to the files it reads: paths for docs and deploy workflows, paths-ignore for code workflows. Ignore only paths no job reads; if CI builds or lints the docs, keep them in that job's scope.
  4. A workflow skipped by a path filter or [skip ci] leaves its required check pending and blocks merge. For a required check, use the always-running gate job in references/ci-best-practices.md, give that workflow no trigger-level paths or paths-ignore, and require only the gate.
  5. Give every job timeout-minutes (default 20) and tests a per-test timeout; a hung job otherwise runs for 6 hours.
  6. Required checks never call live external services; put those in a scheduled or non-required job.
  7. One workflow per concern; never two workflows running the same tests.
  8. Prefer no post-merge bot commit: bump versions inside the PR or at release. If a bot must commit after merge (version bump, file sync), push it with [skip ci], alone in its push, only to the integration branch, never to a PR head. GitHub also reads the marker from a PR's head commit, so if the integration branch later heads a release PR (for example develop to main), its required checks never report; in that setup skip inside the workflow instead: a gate job detects the bot's commit and skips its steps, so the required checks still pass. A bot push needs a PAT or App token to trigger anything; GITHUB_TOKEN pushes trigger no workflows. A tag on a [skip ci] commit also skips tag-triggered workflows, so create releases with gh release create or a dispatch.
  9. One merge deploys and publishes once per environment, from the final commit. When a bot bumps after merge, the same workflow deploys: a bump job, then a deploy job with needs: bump that checks out the bumped SHA. No separate push-triggered deploy runs for that branch.
yaml
on:
  pull_request:
    paths-ignore: ['**.md', 'docs/**', '.context/**', '.memory/**']
  push:
    branches: [main, develop]
    paths-ignore: ['**.md', 'docs/**', '.context/**', '.memory/**']
concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}

[skip ci] commits

  • Add [skip ci] to the subject of a commit that changes only files no CI job reads (notes, .context/, .memory/, prose docs CI does not build). Exception: bot bump and sync commits per rule 8.
  • GitHub reads only the head commit of a push. Never push a [skip ci] commit on top of untested code commits.
  • GitHub matches the token anywhere in that message, body included. Never quote it in a commit message you want tested; write "skip-ci marker" instead.
  • On a PR branch, use it only when gh pr checks N --required lists no required checks; otherwise rely on the gate job's changes filter.

Pipeline Templates

Python Project Pipeline

Standard Python CI pipeline:

yaml
# .github/workflows/test.yml
name: Tests
# on + concurrency: copy the block from "Triggers and scope"
jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - uses: astral-sh/setup-uv@v5
      - run: uv sync --dev
      - run: uv run ruff check .
      - run: uv run ruff format --check .
      - run: uv run pytest --cov --cov-report=xml

Key conventions:

  • Use astral-sh/setup-uv (not pip)
  • Ruff for both linting and formatting
  • pytest with coverage (XML report for CI integration)
  • No mocks in test configuration

TypeScript/JavaScript Project Pipeline

yaml
# .github/workflows/test.yml
name: Tests
# on + concurrency: copy the block from "Triggers and scope"
jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - uses: oven-sh/setup-bun@v2
      - run: bun install
      - run: bun run biome check .
      - run: bun test

Key conventions:

  • Use oven-sh/setup-bun (not npm/node)
  • Biome for linting and formatting
  • bun test for testing

Release Workflow

Tag-based release automation:

yaml
# .github/workflows/release.yml
name: Release
on:
  push:
    tags: ['v*']
jobs:
  release:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
      - uses: softprops/action-gh-release@v2
        with:
          generate_release_notes: true

Documentation Workflow

MkDocs deployment to GitHub Pages:

yaml
# .github/workflows/docs.yml
name: Docs
on:
  push:
    branches: [main]
    paths: ['docs/**', 'mkdocs.yml']
permissions:
  contents: write
jobs:
  deploy:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v4
      - uses: astral-sh/setup-uv@v5
      - run: uv sync --group docs
      - run: uv run mkdocs gh-deploy --force

Typo Checking

Add typo checking to any project:

yaml
# In its own workflow without path filters (it reads docs)
- uses: crate-ci/typos@master

Pre-commit Hook Setup

Python (ruff)

bash
#!/bin/sh
# .git/hooks/pre-commit
STAGED=$(git diff --cached --name-only --diff-filter=d -- '*.py')
[ -z "$STAGED" ] && exit 0
echo "$STAGED" | xargs uv run ruff check --fix --unsafe-fixes
echo "$STAGED" | xargs uv run ruff format
git add $STAGED

TypeScript (biome)

bash
#!/bin/sh
# .git/hooks/pre-commit
STAGED=$(git diff --cached --name-only --diff-filter=d -- '*.ts' '*.tsx' '*.js' '*.jsx')
[ -z "$STAGED" ] && exit 0
echo "$STAGED" | xargs bunx biome check --write
git add $STAGED

Scaffolding Workflow

Step 1: Detect project type

Scan for language markers (pyproject.toml, package.json, Cargo.toml, go.mod) and existing CI configuration.

Step 2: Select pipelines

Based on detection:

  • Always: test workflow
  • If Python with docs: docs workflow
  • If releases needed: release workflow
  • If no pre-commit hook: install one

Step 3: Generate files

Create .github/workflows/ directory and write workflow files. Never overwrite existing workflows without asking.

Step 4: Verify

Run act locally if available to validate workflows, or do a dry-run check of YAML syntax. Confirm every workflow has scoped triggers and concurrency, and that a docs-only change starts no code workflow.

Additional Resources

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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

This skill should be used when the user says "set up CI", "create GitHub Actions", "scaffold CI pipeline", "add CI/CD", "configure continuous integration", "create test workflow", "create release workflow", "add pre-commit hooks", "set up linting pipeline", "configure ruff in CI", "configure biome in CI", "add typo checking", or wants to add, update, or customize CI/CD pipelines for their project. For initial project setup including basic CI, see init-project. Use ci-scaffolding for adding or customizing CI/CD in existing projects.

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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