Agent skill

Tau Cargo Crap

by dpc in dpc/tau

A skill your agent uses when selfci, Nix CI, coverage, cargo-crap, CRAP-score, crapAbsolute, or crapReport checks fail in Tau, or before changing the cargo-crap gates, thresholds, or flagged complex…

MPL-2.0Auto-check passedDevelopment

Install Tau Cargo Crap

skills CLI
$ npx skills add dpc/tau --skill tau-cargo-crap -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dpc/tau tau-cargo-crap --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dpc/tau.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tau-cargo-crap .claude/skills/tau-cargo-crap && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tau-cargo-crap
GitHub stars
104
Token cost
~1.2k tokens
SKILL.md length
538 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MPL-2.0

At a glance

A skill your agent uses when selfci, Nix CI, coverage, cargo-crap, CRAP-score, crapAbsolute, or crapReport checks fail in Tau, or before changing the cargo-crap gates, thresholds, or flagged complex…

  • CrapReport checks fail in Tau
  • SKILL.md covers Fast diagnosis, Duplicate inventory, Current CI model and cargo-crap pitfalls, plus 2 more sections
  • Calls nix and cargo
  • Before changing the cargo-crap gates

What it does

Tau Cargo Crap is an agent skill from dpc/tau. Use this skill when selfci, Nix CI, coverage, cargo-crap, CRAP-score, crapAbsolute, or crapReport checks fail in Tau, or before changing the cargo-crap gates, thresholds, or flagged complex code.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: Tau Coding Agent - like Pi, but twice as much. The licence is MPL-2.0.

When your agent uses it

  • CrapReport checks fail in Tau
  • Before changing the cargo-crap gates
  • Flagged complex code

Example prompts

  • “/tau-cargo-crap”

What it can do on your machine

Read from SKILL.md and the folder at commit d2e1955. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • nix
    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tau Cargo Crap loads about 1.2k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 538 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dpc/tau at commit d2e1955, republished under its MPL-2.0 licence (© dpc). 538 words, ~1,180 tokens.

Download SKILL.mdSave it as .claude/skills/tau-cargo-crap/SKILL.md (or your agent's skills folder).
name
tau-cargo-crap
description
Use this skill when selfci, Nix CI, coverage, cargo-crap, CRAP-score, crapAbsolute, or crapReport checks fail in Tau, or before changing the cargo-crap gates, thresholds, or flagged complex code.
user-invocable
true
advertise
true

Tau cargo-crap

Use this when selfci check fails in the coverage/cargo-crap step or when working down CRAP-score hotspots.

Fast diagnosis

bash
nix build -L .#ci.testsCcov
nix build -L .#ci.crapAbsolute
nix build -L .#ci.crapReport -o result-crap-report
sed -n '1,120p' result-crap-report/cargo-crap.md

.#ci.crapReport is the non-blocking inventory report. .#ci.crapAbsolute is the blocking gate; .#ci.crap preserves the aggregate entry point used by selfci.

Duplicate inventory

bash
nix build -L .#ci.crapDuplicates -o result-crap-duplicates
sed -n '1,100p' result-crap-duplicates/duplicates.txt

SelfCI builds this source-only report even without TAU_CI_FULL=true. Its duplicates.txt and duplicates.json contain candidate pairs, not a duplicate-count gate. The Nix build fails if analysis fails, but a nonzero pair count does not fail CI. Report paths are relative to the repository root. For a local run without Nix output, use the pinned cargo crap --workspace --duplicates --top 0 --format human with the same shared defaults in .cargo-crap.toml; --top 0 hides meaningless CRAP scores when no LCOV is supplied, without filtering duplicate pairs. The human report's No functions found. refers to that suppressed CRAP table; read the separate duplicate candidates section below it.

The inventory skips root-level Cargo test/bench/example directories and src/**/tests/, src/**/tests.rs, and src/**/*_tests.rs files. It keeps production files, including their ordinary helpers; #[cfg(test)] modules are skipped by cargo-crap itself. Treat matches as leads for inspecting both functions and their callers, not refactoring instructions: renamed enum accessors, trait implementations, and macro-heavy bodies often share structure without sharing behavior. To investigate one area, rerun cargo crap -p <crate> --duplicates --top 0 with the same exclusions. Do not enable [duplicates] globally: the Markdown debt report and GitHub gate cannot display pairs. Do not enable TypeSafe triage; it would send function bodies outside the project.

Current CI model

  • The blocking gates use LCOV from the Nix coverage derivation, not a local cargo llvm-cov run.
  • .#ci.crapAbsolute fails current entries above the severe threshold with --fail-above.
  • .#ci.crap is the aggregate/selfci compatibility output for the absolute gate.
  • The absolute gate uses .cargo-crap.toml's threshold of 400 with --min 100.
  • The Markdown debt report shows uncovered instrumented line ranges; they suggest where to add tests but do not measure assertion quality.
  • Do not “fix” failures by raising the threshold. Refactor/decompose flagged code or add meaningful coverage.
Show full SKILL.md (207 more words)Show less

cargo-crap pitfalls

  • The absolute gate intentionally has no baseline or exceptions: every measured production function must remain at or below the configured threshold.
  • --min filters which current entries cargo-crap evaluates and reports; keep it low enough that every function capable of exceeding the absolute limit is included.
  • Tau configures tests/**, benches/**, examples/**, **/tests/**, **/tests.rs, and **/*_tests.rs as shared default exclusions for production-code CRAP gates and inventories. External #[cfg(test)] modules need path exclusions because the per-file scan cannot see parent attributes. Pass --no-default-excludes only for one-off investigations that need those directories.

Refactoring flagged code

For code fixes, preserve behavior first and extract coherent semantic operations with focused tests, not arbitrary match fragments. A zero-coverage function needs cyclomatic complexity below 20 to stay under the absolute score of 400, so extraction without tests may just move the hotspot. Prefer adding regression tests for behavior you touch.

Validation

bash
treefmt
nix build -L .#ci.crapAbsolute
nix build -L .#ci.crap
selfci check

selfci check skips the expensive LLVM coverage and cargo-crap lane by default. Set TAU_CI_FULL=true when a maintainer needs that full local CI lane, including its debt inventory and blocking absolute gate:

bash
TAU_CI_FULL=true selfci check --candidate <change-id>

Do not add a baseline for functions under the limit. A baseline is only appropriate as an explicitly approved, temporary whitelist of pre-existing above-limit violations, and such exceptions may only shrink.

© dpc, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/tau-cargo-crap of dpc/tau.

Open the folder on GitHubat commit d2e1955

Compare with similar skills

Tau Cargo Crap next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tau Cargo Crap compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tau Cargo Crap this skilldpc/tau104—~1.2kAutomated safety check: PassMPL-2.0
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when asked to "triage papercuts", review clanker-reported problems, or analyze and clear tau dev papercut reports.

    104 GitHub stars~2.4k tokensUpdated 3 days ago
    Auto-check passed
  • A skill your agent uses when asked to verify Tau harness tools or tool output behavior, especially read, edit, shell/shellcommand, line-oriented output, truncation, metadata headers, UTF-8 handling…

    104 GitHub stars~4.8k tokensUpdated 3 days ago
    Auto-check passed
  • A skill your agent uses when verifying Tau file and command tools: read, edit, replace, applypatch, shell, or shellcommand, including ranges, UTF-8, truncation, diffs, timeouts, mutation safety, and…

    104 GitHub stars~4k tokensUpdated 3 days ago
    Auto-check passed
  • A skill your agent uses when changing or reviewing Tau's static site under site/ and needing visual verification of layout, spacing, colors, alignment, desktop rendering, mobile rendering, or…

    104 GitHub stars~308 tokensUpdated 3 days ago
    Auto-check passed
  • A skill your agent uses when tracing or auditing Tau agent execution, including provider and cache cost, tool/background/wait latency, outer turns, compaction, delegated workflows, or performance…

    104 GitHub stars~658 tokensUpdated 3 days ago
    Auto-check passed
  • A skill your agent uses when verifying Tau agentstart, message, or agentwatch coordination, including routing, validation, interruption, notification formatting, watch lifecycle, and deduplication.

    104 GitHub stars~6.3k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Tau Cargo Crap

What does Tau Cargo Crap do?

A skill your agent uses when selfci, Nix CI, coverage, cargo-crap, CRAP-score, crapAbsolute, or crapReport checks fail in Tau, or before changing the cargo-crap gates, thresholds, or flagged complex…. Tau Cargo Crap is an agent skill from dpc/tau. Use this skill when selfci, Nix CI, coverage, cargo-crap, CRAP-score, crapAbsolute, or crapReport checks fail in Tau, or before changing the cargo-crap gates, thresholds, or flagged complex code.

When should I use Tau Cargo Crap?

Tau Cargo Crap fits situations like: crapReport checks fail in Tau; before changing the cargo-crap gates; flagged complex code.

How do I install Tau Cargo Crap in Claude Code?

Run `npx skills add dpc/tau --skill tau-cargo-crap -a claude-code`. Or copy the skill folder (.agents/skills/tau-cargo-crap in dpc/tau) into .claude/skills/tau-cargo-crap in your project. Claude Code loads it when a task matches its description.

How do I install Tau Cargo Crap in Codex?

Run `npx skills add dpc/tau --skill tau-cargo-crap -a codex`. Or copy the skill folder (.agents/skills/tau-cargo-crap in dpc/tau) into .agents/skills/tau-cargo-crap in your project. Codex loads it when a task matches its description.

Can I use Tau Cargo Crap in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dpc/tau --skill tau-cargo-crap -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tau-cargo-crap, .gemini/skills/tau-cargo-crap, .github/skills/tau-cargo-crap and .opencode/skills/tau-cargo-crap in your project.

What does Tau Cargo Crap need to run?

Going by SKILL.md and its folder, Tau Cargo Crap needs the command-line tools its instructions call (nix and cargo).

Does Tau Cargo Crap access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tau Cargo Crap safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tau Cargo Crap use?

Tau Cargo Crap is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tau Cargo Crap use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tau Cargo Crap?

Skills that share tags, products or a category with Tau Cargo Crap: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tau Cargo Crap?

dpc (a GitHub user) maintains it in dpc/tau, which has 104 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 5, 2026.

Source: dpc/tau on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.