ork-assess
Assess a code change, design, architecture, workflow, or competing options against explicit criteria and evidence. Use when a request asks to assess, rate,…
Daily autonomous classifier for failing PRs across your repos. Runs /ci-debug headless against every open PR with red required checks, posts the verdict as a collapsed PR comment, and appends to a per-repo .sentinel/ledger.jsonl. v1 is propose-don't-apply — NEVER auto-pushes a
$ npx -y skills add yonatangross/orchestkit --skill ci-sentinel --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ci-sentinelContext preview
The summary Claude sees to decide when to auto-load this skill.
Daily autonomous classifier for failing PRs across your repos. Runs /ci-debug headless against every open PR with red required checks, posts the verdict as a collapsed PR comment, and appends to a per-repo .sentinel/ledger.jsonl. v1 is propose-don't-apply — NEVER auto-pushes a
name: ci-sentinel
license: MIT
compatibility: "Claude Code 2.1.251+ (uses --permission-mode + --no-session-persistence for headless GHA runs; --bare was tried but doesn't honor ANTHROPIC_API_KEY in CC 2.1.143 — see SKILL body for the trade-off)."
description: "Daily autonomous classifier for failing PRs across your repos. Runs /ci-debug headless against every open PR with red required checks, posts the verdict as a collapsed PR comment, and appends to a per-repo .sentinel/ledger.jsonl. v1 is propose-don't-apply — NEVER auto-pushes a fix. Use when you're tired of /status sweeps catching the same 10 CI failure patterns over and over."
argument-hint: "[install|status|enable|disable]"
context: fork
# user-typed commands stay interactive; CC >= 2.1.218 backgrounds forks by default (#3093)
background: false
version: 0.1.0
disable-model-invocation: false
author: OrchestKit
tags: [ci, sentinel, automation, github-actions, propose-dont-apply, autonomous]
user-invocable: true
allowed-tools: [Bash, Read, Write, Edit, Grep, Glob]
skills: [github-operations, memory]
complexity: medium
persuasion-type: guidance
model: sonnet
metadata:
category: workflow-automation
triggers:
keywords: [sentinel, "self-healing ci", "auto-classify failures", "watch open PRs"]
examples:
- "install the CI sentinel in this repo"
- "show me sentinel status for the platform repo"
- "disable the sentinel — it's commenting too much"
anti-triggers: [fix this CI, debug this run]
paths:
- ".github/workflows/ci-sentinel.yml"
- ".sentinel/**"Direct response to the 275-session insights audit (2026-05-16): 14 ci-debugging + 7 fix-ci-failures sessions in one month, most of them re-running the same 10-pattern classification you already encoded in `/ci-debug`. This skill makes the classifier autonomous.
⏰ daily cron (08:17 UTC)
│
▼
📥 gh pr list → PRs with FAILURE checks (yours, max 10)
│
▼
🤖 for each PR (skipping those already commented at this SHA):
claude -p → run /ci-debug → capture verdict markdown
│
▼
💬 post collapsed PR comment with marker so future runs dedupe
│
▼
📜 append { ts, pr, sha, tokens } to .sentinel/ledger.jsonl
│
▼
💰 if daily token spend > ORK_SENTINEL_DAILY_TOKEN_BUDGET → pause| Risk | Mitigation | |---|---| | Token cost runaway | `ORK_SENTINEL_DAILY_TOKEN_BUDGET=1000000` ceiling, enforced by the workflow's first step. Resets daily. | | Duplicate comments on the same SHA | Marker `<!-- ork:ci-sentinel sha=<short> -->` on every comment; workflow scans existing comments before posting. | | Wrong-classification spam | Propose-don't-apply means the worst outcome is a noisy but accurate-looking comment. You can collapse them; you can't unmerge a bad auto-fix. | | Stuck PR keeps re-classifying | Idempotent on SHA — only re-runs if you push new commits. | | Sentinel itself breaking CI | Runs on `ubuntu-latest`, no `pull_request` trigger, no `push` trigger. Cannot block any other workflow. |
1. Copy `.github/workflows/ci-sentinel.yml` from the OrchestKit repo into the target repo (this skill ships it). 2. Mint a Max-plan OAuth token with `claude setup-token`, then add it as the `CLAUDE_CODE_OAUTH_TOKEN` secret: `gh secret set CLAUDE_CODE_OAUTH_TOKEN -R <owner>/<repo>`. The workflow reads this natively from job-level env; `ANTHROPIC_API_KEY` is **not** used any more, and setting it alone leaves the run red: the workflow's auth canary hard-fails when `CLAUDE_CODE_OAUTH_TOKEN` is unset or expired. 3. (Optional) Adjust `ORK_SENTINEL_DAILY_TOKEN_BUDGET` env in the workflow. 4. Trigger a manual run with `inputs.dry_run = true` to validate the wiring. 5. Once a dry-run posts no comments and looks healthy in the job summary, let the daily cron take over.
Rotate the token the same way when the canary reports a 401: `claude setup-token`, then re-run `gh secret set`.
If you run the sentinel locally via `claude --bg` instead of the workflow:
> **Pin it (CC 2.1.147+):** Press `Ctrl+T` in `claude agents` to pin the session. Pinned background sessions stay alive when idle (no silent reaping between runs), restart in place to apply CC updates rather than dying, and under memory pressure are shed only after non-pinned sessions.
> **Resume it (CC 2.1.144+):** Sessions started via `claude --bg` now appear in `/resume` marked `bg` — recover a crashed sentinel directly through `/resume` instead of the agent view.
The workflow is intentionally configured via in-file env vars (not workflow inputs) so a fork stays self-contained:
| Var | Default | Meaning | |---|---|---| | `ORK_SENTINEL_DAILY_TOKEN_BUDGET` | `1000000` | Hard daily ceiling. Hour-of-day not enforced
The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install `ork` for stable (v9.x), or `ork-alpha` for the v10 line, which ships daily.
Repo: yonatangross/orchestkit
Assess a code change, design, architecture, workflow, or competing options against explicit criteria and evidence. Use when a request asks to assess, rate,…
Compare plausible implementation, architecture, product, or operational approaches before committing to one. Use when a request asks to brainstorm, think…
Map an unfamiliar codebase, feature, architecture, data flow, or operational path with file-backed evidence. Use when a request asks how a system works, where…
Make an approved, scoped change and prove the affected behavior. Use when a request asks to implement, build, add, or land a feature that already has an agreed…
Review a pull request or branch for correctness, regressions, security, operational risk, and missing evidence. Use when a request asks to review a PR, review…
Verify that existing work is ready to merge, release, or hand off using an explicit evidence contract. Use when a request asks to verify, validate, prove,…