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"…
Об этом скилле
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)
- Diagnosing slow CI: measure per-job time, shard the critical path, fix setup (see
references/ci-speed.md)
Triggers and scope (every workflow)
CI runs only when files it checks change, once per push.
- Trigger on
pull_requestfor any base (fix PRs and epic phase PRs need CI too) pluspushto the integration branches. Neveron: [push, pull_request]; it runs twice for every PR push. - Add
concurrencythat cancels superseded PR runs. - Scope each workflow to the files it reads:
pathsfor docs and deploy workflows,paths-ignorefor code workflows. Ignore only paths no job reads; if CI builds or lints the docs, keep them in that job's scope. - 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 inreferences/ci-best-practices.md, give that workflow no trigger-levelpathsorpaths-ignore, and require only the gate. - Give every job
timeout-minutes(default 20) and tests a per-test timeout; a hung job otherwise runs for 6 hours. - Required checks never call live external services; put those in a scheduled or non-required job.
- One workflow per concern; never two workflows running the same tests.
- 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 exampledeveloptomain), 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_TOKENpushes trigger no workflows. A tag on a[skip ci]commit also skips tag-triggered workflows, so create releases withgh release createor a dispatch. - One merge deploys and publishes once per environment, from the final commit. When a bot bumps after merge, the same workflow deploys: a
bumpjob, then adeployjob withneeds: bumpthat checks out the bumped SHA. No separate push-triggered deploy runs for that branch.
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 --requiredlists no required checks; otherwise rely on the gate job'schangesfilter.
Pipeline Templates
Python Project Pipeline
Standard Python CI pipeline:
# .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@v7
- uses: astral-sh/[email protected]
- 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
# .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@v7
- 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 automati
Установить ci-scaffolding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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", "CI is slow", "speed up CI", "shard tests", "make CI faster", 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.
Как установить скилл ci-scaffolding?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ci-scaffolding запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic