/ccxp-skills:nightly-check [--repo owner/repo] [--window-hours 26] [--max 3]from ccxp-skills
Use when the user explicitly asks to check the nightly runs, or a routine step calls it — list failed nightly runs of the last day and run /rca (or /labrun-rca when the run has an alert thread) for each
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
One step of the nightly-check routine (agent-pairing/routines.examples.yml) and the single path for failed nightly runs (the persona's inline "CI failure response" keeps every other failed run). The detection is a script; the investigation is /rca or /labrun-rca.
--repo owner/repo: default the working repo (gh repo view --json nameWithOwner).--window-hours N: default 26 (a daily routine with slack; the handled set in step 3 keeps a run from being investigated twice). --max N: default 3 investigations per call; the rest (the newest failures, since the plan is oldest first) are reported as next.RUNS, ALERTS and HANDLED are mktemp files, removed at the end with trash.sh): gh run list --repo <repo> --status failure --limit 100 --json databaseId,workflowName,event,headBranch,conclusion,createdAt,url > $RUNS.$SLACK_AUTOMATION_ALERTS_CHANNEL_ID is set): slack_read_channel on that channel only, newest 20 messages; write one line per message <message_ts><TAB><text and flattened blocks, newlines removed>, each ending in a newline, to $ALERTS. A failed read is not fatal: skip --alerts and say so.$HANDLED = the concatenated text of dev/TODO/*.md and ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/ccxp-context/* (a run id in any of them means it already has a task or job; skip it). Build it with cat <repo-dir>/dev/TODO/*.md "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/ccxp-context/* 2>/dev/null > "$HANDLED" (unmatched globs are harmless); with --repo naming another repo, use that repo's task directory when it is checked out, else the context files only. The script dedupes by run id only; the persona's workflow-plus-date and ledger-title checks stay with the persona's inline path.bash <skills-root>/nightly-check/scripts/nightly-check.sh plan --window-hours N --max M --alerts "$ALERTS" --handled "$HANDLED" < $RUNS prints run|next<TAB>rca|labrun-rca<TAB>id<TAB>workflow<TAB>url<TAB>alert ts.
all nightly runs green or handled (outcome nothing-to-do under /routine) and stop.run line, in order:
rca: /rca <id> --repo <repo>.labrun-rca: /labrun-rca <channel> <alert ts> (it posts the report in the alert's thread). If it stays silent (not a failure alert, repo guard) or reports an *RCA already there, fall back to /rca <id> --repo <repo> --no-post unless the thread already carries the RCA; never leave a run with neither./rca's own task filing; never open a duplicate task for a run id already in $HANDLED.<id> <workflow>: <classification>, <task id or none>), then the next lines under "left for the next check". Append each investigated run id, one per line, to ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/ccxp-context/nightly-check-handled.txt (the step 3 glob reads it, so a run that filed no task, e.g. infra-flaky with a green re-run, is not investigated again). Outcome ok when every run was investigated, needs-human if a skill stopped for credentials, failed on an error.Read-only apart from what /rca and /labrun-rca do. Never re-runs a workflow, publishes, promotes, tags or releases.
bats tests/nightly_check.bats (filter, window, dedupe, cap, alert routing, green).agent-pairing/assets/ccxp-agent.md "CI failure response".What SKILL.md sets; muted values are Claude Code's defaults
57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its statusnpx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills