token-frugal-tooling
Skill2 starsChanged 5 months agoMITView on GitHub
Use in any project that has BOTH logmind (`.logmind/config.yml` or `docs/decisions.md`) AND clud-bug (`.github/workflows/clud-bug-review.yml`) installed. Quick-reference for the org's token-frugal conventions: env vars, artifact defaults, and the "agent mode" flags both CLIs accept. Detail lives in the per-tool skills — load `logmind` and `clud-bug-collaboration` alongside this one when you actually need to invoke them.
In this repository62 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
- clud-bug-collaborationSkill
- 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
- line-height-gridSkill
- logmindSkill
- 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
- test-disciplineSkill
- 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
- udts-token-modelSkill
- unattended-operationSkill
- usability-heuristicsSkill
- visual-polishSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Prefer these for agent invocations even when chaining commands — every command emits a single parseable line, so the next step can …
- Distinctive: line 40
When you read these files, expect compact format — the legacy verbose view is opt-in.
- Very specific: line 50
Every Clud Bug summary comment leads with Found: N 🔴 / N 🟡 / N 🟣 — read this line first to triage.
- Very specific: line 72
If you see a ### Diagnostics block before the Skills-referenced footer (clud-bug v0.6.18+ / 0.0.T): a head -c cap fired during the review.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Token-frugal tooling — quick reference
This project uses logmind + clud-bug, both engineered for token frugality. The defaults below land automatically; this skill is just so you don't re-learn them every session.
Agent-mode env vars (set once per command or session)
| Var | Tool | Effect |
LOGMIND_QUIET=1 | logmind ≥ v0.5.1 | Suppresses progress chatter; emits one ok <key-value> line per command. v0.5.3 patched click.secho so error/warning output (red/yellow) still prints. --quiet / -q on the group is equivalent. |
CLUD_BUG_QUIET=1 | clud-bug ≥ v0.6.7 | Same pattern for clud-bug CLI (init / update / add / refresh / edit-workflow / review-mode). --quiet / -q is equivalent. |
Prefer these for agent invocations even when chaining commands — every command emits a single parseable line, so the next step can grep/parse without re-running.
LOGMIND_QUIET=1 logmind log "..." -r "..." --no-push
# → ok logged: <sha> "<title>"
CLUD_BUG_QUIET=1 clud-bug update
# → ok updated: @v0.6.11, N changed, M unchangedOn-disk artifacts default to brief
When you read these files, expect compact format — the legacy verbose view is opt-in. Both apply org-wide on next regen after a logmind upgrade.
| File | Default since | Shape |
docs/file-structure.md | logmind v0.5.0 | Tree capped at depth 2. Override per-invocation: logmind file-structure --max-depth N or logmind tree --max-depth 0 for unbounded. |
docs/timeline.md | logmind v0.5.4 | Per month: header with (N decisions), newest entry + ... N-2 more decisions ... elision + oldest entry. ≤2-entry months show all entries. logmind timeline --full recovers the legacy per-decision listing. |
Reading clud-bug review comments (v0.6.5+)
Every Clud Bug summary comment leads with Found: N 🔴 / N 🟡 / N 🟣 —
read this line first to triage.
- 🔴 important — bug / security / performance / missing test coverage
- 🟡 nit — style / naming / micro-optimization (advisory)
- 🟣 pre-existing — issue that pre-dates this PR; don't fix here unless asked
Per-finding shape:
🔴 [skill-name]: One-line claim anchored to file:line.
<details><summary>Reasoning</summary>
…
</details>On a re-read, you can usually trust the headline and skip the collapsed
Reasoning. Expand only when the headline is ambiguous or you want the
evidence trail.
If you see a ### Diagnostics block before the Skills-referenced footer
(clud-bug v0.6.18+ / 0.0.T): a head -c cap fired during the review.
The block names which section truncated and the recovery outcome (e.g.
"recovered with 2x cap", "still truncated"). Treat it as confidence
calibration — if a finding's section was deferred, the verdict on that
section is partial.
Show + search are agent-friendly (v0.5.2+)
logmind show carries three combinable flags for fast scans:
logmind show --brief --limit 10 # last 10 in one-line form
logmind show --json --limit 20 # parseable JSON
logmind show --json --all # JSON across main + archive--json stdout stays pipeline-clean regardless of --quiet — the ok
summary line goes to stderr in JSON mode so logmind show --json | jq
works without extra plumbing.
What you don't need to do
- Don't override clud-bug budgets (
MAX_DIFF_BYTES, etc.) unless you have a documented reason. Defaults cover 95%+ of real PRs. - Don't worry about caching — clud-bug v0.6.3+ writes its stable
prefix into the Claude Code CLI's auto-cached system layer. Cached
input is billed at 10% of standard. Visible via
cache_read_input_tokensin the run JSON. - Don't worry about the model — pinned to
claude-sonnet-4-6(v0.6.11). PR review fits Sonnet's profile; Opus would be ~5× the cost per the Anthropic pricing table. - Don't worry about fix-push diff cost — clud-bug v0.6.10 reads
only the delta since its prior review (handshake via
<!-- last-reviewed-sha: <sha> -->marker in the prior summary comment). - Don't worry about workflow-only PRs (clud-bug v0.6.14 / 0.0.W) —
PRs touching only
clud-bug-*.ymlorstrict-mode-gate/**skip the LLM review entirely. The composite-pin lock-step propagation PRs that used to require admin-bypass are now normal merges. - Don't worry about dep-bump PRs (clud-bug v0.6.15 / 0.0.R) — dependabot/renovate authors AND small-diff dep-manifest-only PRs route to Haiku ($0.80/MTok vs Sonnet's $3) for another ~75% reduction on that class.
- Don't worry about review output length (clud-bug v0.6.16 / 0.0.X) — the prompt has a brevity directive ("Keep total output under ~600 tokens"). Per-finding 1-sentence claim + collapsible reasoning is the shape; you don't need to ask for short output.
- Don't worry about prompt drift (clud-bug v0.6.17 / 0.0.E) — the
CI golden gate (
test/golden/{must-contain,must-not-contain,byte-budget}.json) fails any PR that drops a load-bearing prompt instruction or re-introduces filler patterns. The byte-budget cap is intentionally low post-0.0.P (v0.6.20).
Where to look for detail
logmindskill — when / how to log decisions; reading prior context; agent-invocation flags.clud-bug-collaborationskill — fix-push flow, strict mode, modifying skills, editing the workflow, full comment format, full cost-control wiring.
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.

