i8-variant-split
Shorten an over-budget CI matrix row without losing coverage: split its primary role into new variants that together carry every edge, credit and axis pair…
от infinito-nexus★ 21 звезда на GitHub
Установить i8-variant-split в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Variant Split
Follow the instructions from AGENTS.md. A split is a coverage change: it is always handed to the operator as an uncommitted proposal with its verification table, never committed or merged by the agent.
What must hold
A split replaces one row (role#N) with rows that share its work. Coverage is
judged over the full job list, every row of every sweep whether the budget
runs it or not: a tail past the budget is fine. The split keeps coverage only
when all of these hold, and each one is checked by
python -m cli.meta.ci.variant_split, never by eye:
| Check | Why a split can break it | Where it is checked |
|---|---|---|
| Children | Every role#variant row must be deployed at that variant by some row of the job list, its own or the one that credits it |
compare: job list uncovered children, newly uncovered |
| Edges | Every consumer-to-provider edge, including the dep-to-dep edges inside a closure and MCP pairs, must still run with the same active keys in some row of the job list, and at the same consumer and provider variants while the tree still declares them | compare: edges lost over the job list and variant edges lost; edges the split retires from a variant's own config are counted, not failed; local, head and jobs key counts are reported |
| No false credit | _mark_covered credits role-level closures and ignores pins, so a row can stay "covered" by a round that no longer deploys it at #0, that dictates its config, or by a coverer outside the job list |
compare: introduced false credits, judged by row, coverer and reason; only one unchanged in all three is pre-existing |
| Pins | A # variant-pin: must reciprocate (test_variant_pins), settle (test_variant_pin_fixed_point) and never stand above a key its carrier switches off |
compare: new pins, unreciprocated, new dark pins, new round errors |
| Limits | MAX_VARIANTS is 3 per role (test_limit.py) |
compare: variants grown |
| Cost | A new row pays about 2.2 ks of fixed cost; per-app time is not linear | cost with measured per-app segments |
Head rows pushed past the budget and the mode, network and distro pairs that rotate by position are reported per sweep 0-5 but do not fail the verdict. A lost child, edge or true credit stays lost even when a check is noisy. Never call a loss covered.
Procedure
Stream every command to /tmp/variant-split-<slug>-<N>.log and read the log
rather than re-running it.
- Snapshot before. On a tree whose
roles/equals the merge target:python -m cli.meta.ci.variant_split snapshot --seed <run id> --out /tmp/vs/before.json. The seed is the id of the CI run the row failed in, as CI setsINFINITO_DISCOVERY_SEED; without it equal rows rank at random and the compare reports coverer moves that are noise.compareandcostrefuse two snapshots of different seeds. - Measure. Turn the row's per-task wall TSVs (seconds, count, task
header, one per pass) or its raw deploy log into per-app segments:
python -m cli.meta.ci.variant_split segments /tmp/vs/before.json --row <role#N> --runner <runner> --pass 1=<tsv> --pass 2=<tsv> [--cut 2] --out /tmp/vs/seg.json. A cut pass makes every figure a lower bound; say so in the table. An app a pass never reached stays unpriced, never zero. To price apps the row does not deploy, measure another row on the same runner and join them withpython -m cli.meta.ci.variant_split merge /tmp/vs/seg.json /tmp/vs/seg-2.json --out /tmp/vs/seg-all.json;mergerefuses segments of two runners. - Find the heavy core.
python -m cli.meta.ci.variant_tree <role#N>shows which dependency closure carries the weight and why each dependency runs the variant it runs. - Edit only
roles/<role>/meta/variants.yml: new variants of the primary, each pinning only the sub-variants it needs, or turning keys off. Read the role'sAGENTS.mdfirst when it has one. - Snapshot after with the same
--seedinto/tmp/vs/after.json, thenpython -m cli.meta.ci.variant_split compare /tmp/vs/before.json /tmp/vs/after.json --old <role#N> --split <role#N>,<role#M>andpython -m cli.meta.ci.variant_split cost ... --segments /tmp/vs/seg.json. - Run the guards that the edit touches:
tests/integration/roles/meta/variants,tests/lint/ansible/roles,tests/lint/agentswhen present,tests/lint/repositoryandtests/lint/filesystem. - Report the verification table below, one line per replaced row.
Pitfalls that already cost a round
- Reciprocity blocks most pins. A pin
partner#iresolves only when the partner'smeta/services.ymlhas a key gated on'<carrier>' in group_names, and exactly one partner variant sets that key literally true. A partner with no such back-reference cannot be pinned by that carrier. Adding the key is a role change and an operator decision. - **The r
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл i8-variant-split?
Shorten an over-budget CI matrix row without losing coverage: split its primary role into new variants that together carry every edge, credit and axis pair the old row carried, verified against the repository's real round resolver, coverage credit, axes rotation and budget. Trigger when a row dies on the deploy cap, on /i8-variant-split, or when the operator asks to split a variant. Infinito.Nexus specific.
Как установить скилл i8-variant-split?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл i8-variant-split запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…