CI/CD Validation & Merge Workflow
БесплатноБез исполняемых скриптовНе проверенPre-push validation checklist (cargo fmt, clippy with zero warnings, feature flag testing, test suite), CI monitoring, merge process, and release quality…
Об этом скилле
CI/CD Validation & Merge Workflow
Validation, CI monitoring, and merge procedures for cqlite. There is one gate —
scripts/agent-gate.sh — run in a tiered loop. The old manual cargo checklist, coverage/tarpaulin
gate, and human-merge steps were M1-era fossils and are gone (issue #1855); see the pointer files in this
dir and docs/development/pm-operating-loop.md.
When to Use This Skill
Pre-push validation · preparing PRs · monitoring CI · merging · releases · troubleshooting CI failures.
Quick Validation — the tiered gate loop (issue #1821)
scripts/agent-gate.sh is THE canonical pre-PR gate (issue #719): it mirrors the enforced CI gates plus
the local smoke suite and emits a machine-checkable summary block. A claim that "the gate passed" must come
from this script's summary (between the AGENT-GATE SUMMARY markers, ending in RESULT: PASS) — ad-hoc
cargo runs do not count.
Only RESULT: PASS/RESULT: FAIL is a verdict (#3041). The gate writes
RESULT: INCOMPLETE (gate did not finish) into the summary file at launch and overwrites it on
completion, so INCOMPLETE is a liveness placeholder, not a verdict. If you poll a summary file
instead of waiting for the process to exit, the predicate is
the RECORD grammar grep -qE '^RESULT: (PASS|FAIL)(:space:|$)' "$AGENT_GATE_SUMMARY_FILE" — a bare
grep -q on the bare RESULT: token fires the instant the gate starts and would accept a just-launched (or
still-queued) gate as certified, and an unanchored form matches RESULT: PASSENGER.
COMPLETION AND VERDICT ARE TWO ASSERTIONS (#3750). The record grammar above is for full and --lite
ONLY, and must keep REFUSING PARTIAL, ERROR and REFUSED. An --only <component> run demotes success to RESULT: PARTIAL, so
that grammar spins on green there. Poll --only by EXIT STATUS (3 = completed PARTIAL) where you can
observe it, else by the ONLY grammar grep -qE '^RESULT: (PASS|FAIL|PARTIAL)(:space:|$)'. --delta
is a THIRD mode with a THIRD set — it alone can terminate ERROR or REFUSED (7 emit sites, all in
run_delta; REFUSED arrives via emit_summary "$(_tree_result REFUSED)", so it looks unemitted and is
not), so a --delta poller on the record grammar hangs on a terminal outcome:
grep -qE '^RESULT: (PASS|FAIL|PARTIAL|ERROR|REFUSED)(:space:|$)' — gate-liveness.sh's own
enumerated terminal set, token for token, so "what is terminal" is decided in ONE place. Then read the
component's verdict SEPARATELY, from its own line:
bash scripts/gate-component-verdict.sh "$SUM" --mode only --component <name> --run-id <id> (exit 0 PASS /
1 NOT-PASS / 4 COULD-NOT-MEASURE, no verdict available whatever the reason / 64 USAGE). It is NOT a
completion probe and has no opinion about liveness — never call it in a loop: establish completion
first with the grammars above or gate-liveness.sh, which is the three-valued liveness authority and
the only one of the two that may be polled (#3750 descoped a retryability taxonomy here, because it
told a lane a LIVE gate was permanently unmeasurable and an obedient lane relaunches it). A
completed run whose component SKIPped or is absent is NOT a pass —
and a SKIPping component still exits 3, so exit 3 is completion and never a green.
Every invocation — full, lite, and --only — MUST use the summary-file redirect (#1175/#2079). The
summary block is the only gate text an agent retains; never stream raw gate stdout into a persistent
context, and never read gate.log.
# ITERATE — every fix round. --lite components (exactly, per scripts/agent-gate.sh LITE_COMPONENTS):
# file-size · fmt · clippy (PER-PACKAGE scoped, #1844 — not whole-workspace) · roborev-lints ·
# scoped-tests (blast-radius: touched package --lib + the diff's new --test targets).
# COST IS A FUNCTION OF THE DIFF (#3764): ~1-5 min is the warm NARROW-diff case (median 1.4 min); a
# cqlite-core/src/ diff measures median 20 min (to 43 min local; up to ~104 min under peer load is
# REPORTED, #3764, not measured here), and a cold clippy alone adds 16-24 min whatever the diff. CLAUDE.md's Lite row has the full model.
# Emits a DISTINCT ==== AGENT-GATE LITE SUMMARY ==== block that must NEVER be pasted as the full SUMMARY.
AGENT_GATE_SUMMARY_FILE=/tmp/lite-<N>.txt \
bash scripts/agent-gate.sh --lite > /tmp/lite-<N>.log 2>&1 < /dev/null
cat /tmp/lite-<N>.txt
# BEFORE MERGE — the FULL gate, run EXACTLY ONCE, inside the flow-closer subagent (#2084).
# Its ==== AGENT-GATE SUMMARY ==== (ending RESULT: PASS) is the only run that counts; --lite never
# replaces it.
AGENT_GATE_SUMMARY_FILE=/tmp/gate-<N>.txt \
bash scripts/agent-gate.sh > /tmp/gate-<N>.log 2>&1 < /dev/null
cat /tmp/gate-<N>.txt
# Debugging only (output marked PARTIAL, never counts as the gate):
AGENT_GATE_SUMMARY_FILE=/tmp/partial-<N>.txt \
bash scripts/agent-gate.sh --only fmt,clippy > /tmp/partial-<N>.log 2>&1 < /dev/null
- **
Установить CI/CD Validation & Merge Workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл CI/CD Validation & Merge Workflow?
Pre-push validation checklist (cargo fmt, clippy with zero warnings, feature flag testing, test suite), CI monitoring, merge process, and release quality gates. Use when preparing to push code, validating changes before PR, running CI checks, merging PRs, or preparing releases.
Как установить скилл CI/CD Validation & Merge Workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл CI/CD Validation & Merge Workflow запускает скрипты?
Нет, скилл состоит только из инструкций (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