Command Palette

Search for a command to run...

Назад к скиллам
скилл № 79665

ci-repair

Diagnose, isolate, and repair broken CI/CD workflows and red trunk gates across GitHub Actions, spine-invariance, ci-fast, architest DAG rules, structural…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить ci-repair в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/ci-repair — Triage, Isolate & Repair Red CI/CD Workflows on Trunk

Deterministic, evidence-backed protocol for rapidly converting red CI/CD workflows and broken trunk gates into verified green runs across both public fak and private fak-private. Decomposes compound CI failures into atomic root causes, arbitrates disjoint write sets, dispatches parallel subagents for implementation, verifies on-device test witnesses, and lands explicit-path commits without peer collision.


When to Invoke

  1. GitHub Actions Red Alert: Any core CI workflow (spine-invariance, ci-fast, ci, garden, build-matrix, security-audit) fails on main or in an active PR.
  2. Push & Synchronization Blockers:
    • fak commit --push or fak sync push fails with COMMITTED_RED, CI_BASE_RED, TRUNK_CLOSED, or pre-push hook rejection.
    • fak sync drain becomes stuck in exponential backoff because the upstream trunk has a broken commit.
  3. Dual-Repository Wedges (fak-private): fak-sync repo fails fast-forward verification because public fak does not compile, has broken tests, or fails boundary checks (fak-boundary check).
  4. Automated Loop Escalation: Headless super-loops (super-loop, run-it-all-night, fleet-wave) encounter an unrecoverable red trunk and need to heal the mainline before continuing unattended waves.

Non-Negotiable Invariants

  1. One Root Cause, One Issue, One Commit: Never batch unrelated CI fixes into a kitchen-sink commit. Decompose compound failures into distinct concerns (e.g., an architest upward import vs. an adjudicator structural policy vs. a stale scorecard README) and commit each under its own issue and leaf stamp (fak <leaf>).
  2. Witness-First Verification: Never assume a fix works because "the code looks clean." Reproduce the failure first using the exact command CI executes, implement the minimal remedy, verify on-device exit code 0, and cross-validate with an independent subagent before committing.
  3. Tree-Disjoint Worker Boundaries: When dispatching concurrent repair workers, assign each worker a mutually disjoint file set. No two workers may concurrently edit the same package or files on the shared trunk.
  4. Preserve Architectural Invariants:
    • Never loosen the architest tier table to resolve an upward import; invert the dependency via a registration seam (Register...) or push the shared type down a layer.
    • Never suppress policy rules without structural AST deciders; ensure remedy text does not self-refute by matching its own deny regex.
    • Never silently delete non-secret env reads without updating admittedPostFreeze or moving them to the config surface.
  5. Safe Synchronization: Always land commits using fak commit --path or fak sweep --apply. Always push using fak sync push (which safely retries transient non-fast-forward races and refuses destructive merges).

Systematic Failure Taxonomy & Remedies

When diagnosing failed runs from gh run list and gh run view <id> --log-failed, classify errors into one of six canonical categories:

Category A: Architest & Layered-DAG Violations (internal/architest)

  • Upward Import (TestNoUpwardImports):
    • Symptom: layered-DAG import rule violated: <pkgA> -> <pkgB>. Rule: tier(A) >= tier(B).
    • Remedy: Invert the dependency. Define an interface or function type in the lower tier (e.g. type ContentScreener func(body []byte) bool in internal/mcpbroker), provide a Register... hook, and wire it from a higher-tier package (e.g. internal/headroom/admit.go).
  • Unregistered Engine ID (TestSingleEngineDriverPerID):
    • Symptom: engine id "X" is registered by [P] in non-test code but is not a declared id in engineDriverRole.
    • Remedy: Add "X": {"P": "role description"} to engineDriverRole in internal/architest/architest_test.go.
  • Off-List Self-Registration (TestRequestPathLeavesRegistered):
    • Symptom: leaf P self-registers (init() -> abi.Register*) but is neither blank-imported in internal/registrations nor on regOffList.
    • Remedy: Add "P": true to regOffList in internal/architest/architest_test.go.
  • Non-Literal Subprocess Exec (TestRequestPathInterpreterFree):
    • Symptom: request-path package P calls exec with a non-literal program argument....
    • Remedy: Add "P": "justification" to interpreterExecAllow in internal/architest/architest_test.go.
  • Missing Third-Party Tool Inventory (TestThirdPartyEffectsRegisterCoversTree):
    • Symptom: the tree pulls in subprocess_tool "X" and docs/sbom/third-party-effects.json has neither a row nor an exclusion.
    • Remedy: Add "X" under class: "subprocess_tool" in alphabetical order in docs/sbom/third-party-effects.json with "pin": "host_provided".
  • Declared Reason Missing Code Emitter (TestEveryDeclaredReasonHasAnEmitter):
    • Symptom: `dos.toml declares [reasons.X] but no non
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Bash
  3. 03Write
  4. 04Edit
  5. 05Grep
  6. 06Glob
  7. 07Task

FAQ

Что делает скилл ci-repair?

Diagnose, isolate, and repair broken CI/CD workflows and red trunk gates across GitHub Actions, spine-invariance, ci-fast, architest DAG rules, structural policies, scorecard freshness, and build breakages. Uses parallel subagents for failure triage, isolated leaf implementation, on-device witness verification, and atomic commit landing. Use when CI turns red, when `fak sync push` or `fak commit --push` is blocked by `COMMITTED_RED`/`CI_BASE_RED`, or when dual-repo synchronization is wedged.

Как установить скилл ci-repair?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ci-repair запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ci-repair с