clud-bug-collaboration
Skill3 starsChanged 8 days agoMITView on GitHub
How Claude Code agents working in a clud-bug-installed repo should interact with the bot's review threads, strict-mode gate, and skill set. Use this skill whenever you're about to push a commit, address a clud-bug PR review comment, edit anything under .claude/skills/, modify .github/workflows/clud-bug-*.yml, or wonder why a PR check is red. Also use when planning work in a repo that has a `clud-bug-review` workflow installed — even if the user didn't mention clud-bug by name.
- Reads credentials
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- thrillmade/logmindedited, first seen Jul 16, 2026
- thrillmade/clud-bugedited, first seen Jun 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- thrillmade/clud-bug★ 131% same
- thrillmade/logmind★ 131% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clud-bug-collaborationSkill
- critical-issues-onlySkill
- evidence-based-reviewSkill
- respect-existing-conventionsSkill
- skill-frontmatter-qualitySkill
- apca-contrastSkill
- api-contract-enforcementSkill
- brand-voice-reviewSkill
- chroma-harmonizationSkill
- component-sizing-principlesSkill
- component-sizingSkill
- composing-a-screenSkill
- consuming-a-design-systemSkill
- conventions-templateSkill
- critical-issues-onlySkill
- curating-a-skill-catalogSkill
- designing-a-design-systemSkill
- designing-elite-uiSkill
- design-system-consistencySkill
- design-token-namingSkill
- dtcg-formatSkill
- empirical-design-principlesSkill
- evidence-based-reviewSkill
- finding-a-catalog-skillSkill
- frontend-a11ySkill
- guarding-a-regressionSkill
- ios-safari-surfacesSkill
- line-height-gridSkill
- logmindSkill
- motion-continuitySkill
- oklch-color-spaceSkill
- orchestrating-agent-delegationSkill
- orchestrating-a-multi-agent-runSkill
- orchestrating-elite-agent-qaSkill
- palette-relationshipsSkill
- pii-and-complianceSkill
- proving-an-absenceSkill
- respect-existing-conventionsSkill
- retiring-a-superseded-decisionSkill
- reviewing-design-workSkill
- semver-design-tokensSkill
- session-heartbeatSkill
- skillforgeSkill
- skill-frontmatter-qualitySkill
- spacing-systemSkill
- technical-writingSkill
- test-disciplineSkill
- thrill-designSkill
- token-frugal-toolingSkill
- token-naming-conventionsSkill
- type-scaleSkill
- udts-component-sizing-laddersSkill
- udts-dtcg-extensionsSkill
- udts-linter-rulesSkill
- udts-naming-conventionSkill
- udts-reviewSkill
- udts-semver-defaultsSkill
- udts-spacing-defaultsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Read .claude/skills/.clud-bug.json.
- Very specific: line 44
Ask; don't switch it off to get unblocked.
- Very specific: line 91
Every summary comment opens with a triage line, Found: N 🔴 / N 🟡 / N 🟣.
- Distinctive: line 169
After a fix push, an inline thread still open past ~2 minutes means the bot judged the issue unresolved, not a sync delay.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Working in a clud-bug-installed repo
Clud Bug reviews every PR via anthropics/claude-code-action.
When to use
About to push a commit, address a clud-bug PR review comment, edit anything
under .claude/skills/, modify .github/workflows/clud-bug-*.yml, or the
clud-bug-review check is red and you need to know why.
When NOT to use
The review already ran clean and neither skills nor the workflow are being touched. For the org-wide env vars and artifact defaults this skill shares with logmind, see token-frugal-tooling.
Pushing fixes to a clud-bug-reviewed PR
The bot re-reviews within ~2 minutes of a push (pull_request: synchronize)
and resolves its own inline review threads once the flagged issue is
verifiably fixed in the diff — don't resolve them yourself. A thread that
stays open means the bot judged the issue still open (read its latest
comment) or the resolution call hit a transient API error (re-push).
required_conversation_resolution branch protection blocks merge on any
unresolved thread: fix the issue and re-push, never mark it resolved by hand.
Strict mode
Read .claude/skills/.clud-bug.json. review.strict_mode: true fails the
check on critical findings, read from the base ref so a PR cannot disable
the gate judging it — a change takes effect for PRs opened after it merges to
base.
An agent MUST NOT change this setting — not via the config command, not
by editing the file. SPEC §1.6 makes that class of setting a person's to set.
Ask; don't switch it off to get unblocked. A person runs
clud-bug config set review.strict_mode false.
Modifying a clud-bug skill
Skills live in .claude/skills/<slug>/SKILL.md. Three groups:
- Baseline (
critical-issues-only,evidence-based-review,respect-existing-conventions) — managed by clud-bug; in-place edits are overwritten on the nextclud-bug update. To customize this repo, write a NEW skill rather than mutating a baseline. - From skills.sh —
clud-bug add <source/name>, tracked in.claude/skills/.clud-bug.json;clud-bug refreshsyncs them. - Custom (anything not in the manifest) — yours, never touched by any
clud-bug command; a new
.mdhere auto-loads next PR.
A custom skill needs SKILL.md frontmatter (name, description; see
skill-frontmatter-quality) and
evidence-anchored guidance — name the exact path, the exact pattern to flag,
what to quote, and pair each rule with a bad/good snippet:
// BAD — interpolated SQL: db.query(`SELECT * FROM u WHERE id = ${id}`)
// GOOD — parameterized: db.query('SELECT * FROM u WHERE id = ?', [id])Editing .github/workflows/clud-bug-*.yml
anthropics/claude-code-action refuses to run on PRs that modify its own
workflow file (App token exchange fails with 401) — a guard against PRs
that try to neuter the reviewer or exfiltrate secrets. Bundling a workflow
tweak with other work fails the check and leaves your other changes
unreviewed.
Split workflow edits into their own PR: clud-bug edit-workflow refuses if
the working tree has non-workflow changes, and branches from origin/main,
not HEAD, so unrelated commits can't leak in.
When the secret is missing
ANTHROPIC_API_KEY must be in the repo's Actions secrets. Without it the
guard step fails loudly with an ::error:: annotation — except on bot/fork
PRs where the secret legitimately isn't passed: there it posts a one-line
advisory comment and exits 0 instead of red.
Reading review comments (v0.6.5+)
Every summary comment opens with a triage line, Found: N 🔴 / N 🟡 / N 🟣.
Severity is an emoji prefix per finding:
- 🔴 important — bug, security, performance, missing test coverage. Fails the check in strict-mode repos.
- 🟡 nit — style, naming, micro-optimization. Advisory.
- 🟣 pre-existing — pre-dates this PR. Don't fix here unless the user asks; flag a follow-up issue.
Finding shape:
🔴 [skill-name]: One-line claim anchored to file:line.
<details><summary>Reasoning</summary>
Explanation with quoted evidence.
</details>Trust the headline on a re-read and skip the collapsed Reasoning; expand
only when chasing a finding. Zero findings is the triage line (all zeros)
plus the standard header — no per-finding bullets.
Agent invocation: CLUD_BUG_QUIET=1 (v0.6.7+)
From an agent session, set CLUD_BUG_QUIET=1 or pass --quiet / -q: each
command emits one ok <key-value> line (e.g. ok updated: @v0.6.11, N
changed) instead of progress chatter. Errors still hit stderr.
Cost-control wiring
Wired into every template — you don't invoke it. Override per-repo (e.g.
MAX_DIFF_BYTES=999999) with an env var in clud-bug-review.yml.
- Prompt caching (v0.6.3): the stable prefix (review-prompt, skill
catalog, base-ref AGENTS.md) auto-caches. Cached input bills at 10% of
standard within a 5-minute window; the first review in a fresh window
writes at 1.25×. Check
cache_read_input_tokensin the result JSON (show_full_output: true). - Byte budgets:
MAX_COMMENT_BYTES=20000,MAX_SKILL_BYTES=4000,MAX_DIFF_BYTES=5000000. Too low and that section is silently truncated into a half-review; a cap hit shows a truncation marker and the bot is told to request the omitted hunks. MAX_THINKING_TOKENS=8000(v0.6.8) per turn.- Incremental diff (v0.6.10): a re-review reads only
git diff <prior_sha>..HEAD, located via<!-- last-reviewed-sha: <sha> -->in the prior comment. Force-push or rebase falls back to fullgh pr diff. ~67% fewer bytes. - Two fast paths. Workflow-only PRs (workflow file + an allowlist like
AGENTS.md/ baseline skills) skip review entirely — nomax_turnsat all. Trivial PRs (dependency-bump bot authors, or a <2KB diff touching only manifest files) get flatmax-turns=10on Haiku 4.5, ~⅓ of Sonnet's per-token cost. Everything else: classify estimates turns from PR size →max(estimated × 1.2, 15), capped at 60, onclaude-sonnet-4-6.
Updating clud-bug
clud-bug-self-update.yml runs weekly (Mondays 12:00 UTC), opening a PR
when a newer version hits npm; pin one with pinVersion: "x.y.z" in
.claude/skills/.clud-bug.json. clud-bug update runs it on demand:
re-renders workflow templates, refreshes baseline skills from the installed
version, leaves custom and skills.sh skills untouched.
Verification
The clud-bug-review check status is how you know the flow worked — read
its color, don't just push and move on.
- Green = ran, found no critical issues, notary-certified (SPEC §4.5); a green with no certification is not conformant.
- Red = strict mode is on and a critical issue was flagged.
- Grey (neutral) = it could not verify what it examined, strict mode is off, or it could not run — commonly a fork PR (SPEC §6.5: a fork check is neutral, never green). Grey never blocks and never claims a real review — read the diff yourself.
- A same-repo bot PR (Dependabot, Renovate) is reviewed too, on a cheaper model — a green there is real; read it.
- After a fix push, an inline thread still open past ~2 minutes means the bot judged the issue unresolved, not a sync delay.
Cross-references
- token-frugal-tooling — for repos that also have logmind.
- skill-frontmatter-quality — frontmatter contract for a custom skill.
Sources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

