harness-ci
Load to wire, tune, or debug a repo's changed-file CI skip.
от vanillagreencom★ 93 звезды на GitHub
Установить harness-ci в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Harness CI
Run the classifier to decide whether CI can skip product checks:
.agents/skills/harness-ci/scripts/harness-only \
--event pull_request --base "$BASE" --head "$HEAD"
Commit .kendex-generated.json with the renders after kendex refresh.
Consumer setup and the workflow shapes to copy are in references/wiring.md.
Scripts
scripts/harness-onlyanswersharness_only=true|false. Afalseverdict prints its reason on stderr as afallback: cause=...line. Flags and exit codes:harness-only --help. The endpoints: references/wiring.md § The endpoint expressions.harness-only --mode docsanswersdocs_only=true|falsefor the docs-only path set thatharness-only --helpdefines.Declare exact product-text Markdown files through the trusted base's
HARNESS_CI_DOCS_PATHS, by references/wiring.md § Declared product text.Use
harness-only --mode render-candidateonly to gate the engine installation and the mirror refresh. It grants no CI skip.change-classmust prove render before CI skips product checks.scripts/change-classprints the change class:render,trivial,micro,smallorstandard. change-scope'schange-scope, installed beside this package, decides the class. This package adds the queue-only class and the lane verdicts. Flags and the queue-only line:change-class --help. The classes, their settings, causes and refusals:change-scope --help.Select lanes locally with
change-class --output FILE.--basenames the committed event base used for workflow reads.--lanes-fromnames the separate trusted checkout used for legacy claims and a provisioned Vitest installation:.agents/skills/harness-ci/scripts/change-class --event pull_request \ --base origin/main --head HEAD \ --output "$OUT" --lanes-from "$DEFAULT_BRANCH_CHECKOUT"Required-context aggregators call
scripts/aggregate-needs. Its arguments:aggregate-needs --help. The lane rules: references/wiring.md § Per-lane verdicts.Install the release engine with
scripts/install-latest.sh.
Shared refresh caller ownership
The adopted caller path, HARNESS_CI_REFRESH_CALLER, and the render proof's fallback for it are change-scope's: its SKILL.md § Shared refresh caller ownership owns the contract. scripts/lib/change-class.sh here loads that library, so a sourcer of this file still reads the name.
Wiring
Nothing here writes .github/. Wire the one step yourself, once, from references/wiring.md.
A repository under the organization standard reports the aggregate CI context. It copies templates/ci.yml to .github/workflows/ci.yml, or names its own workflow's aggregate job CI, per references/wiring.md § The CI context.
Hold these rules when wiring it:
- Classify inside a job, never in
on.<event>.paths. - Keep the required-context job unconditional.
- Gate the expensive lanes with a job-level
if:off achangesjob's output, or a step-levelif:inside an aggregate. - Let the aggregate that carries the required name run on every event.
- Gate the expensive lanes with a job-level
- A job-level
if:needs a status function, as references/wiring.md § Shape 1 shows. Without one, a failed classifying job skips the lane. - A step that installs a tool for an unconditional lane stays unconditional. A harness-only
if:on the install, while the lane that runs the tool runs on every event, fails that lane on a harness-only diff. The tools commit-guards needs are in commit-guards CHECKS.md § py-names and § secrets.
Fail-closed
- Every unprovable case answers
false, which runs every lane.change-classanswersstandardon the same terms. - A class is never read from an author-writable field: not a label, a branch name or a pull request title. No flag carries one.
- A caller that acts on a verdict without review runs the default branch's copy of the script against the pull request's tree, because the branch can change the script too.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- DEVELOPMENT.md
- README.md
- references/wiring.md
- scripts/aggregate-needs
- scripts/change-class
- scripts/harness-only
- scripts/install-latest.sh
- scripts/lib/change-class.sh
- scripts/lib/ci-lanes.sh
- scripts/lib/lane-reach.py
- templates/ci.yml
FAQ
Что делает скилл harness-ci?
Load to wire, tune, or debug a repo's changed-file CI skip.
Как установить скилл harness-ci?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл harness-ci запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…