Agent skill

Crap Analysis

by ardalis in ardalis/RiverBooks

Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code.

No licenceAuto-check passedTesting & QA

Install Crap Analysis

skills CLI
$ npx skills add ardalis/RiverBooks --skill crap-analysis -a claude-code

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

GitHub CLI
$ gh skill install ardalis/RiverBooks crap-analysis --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/ardalis/RiverBooks.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/crap-analysis .claude/skills/crap-analysis && 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
crap-analysis
GitHub stars
135
Used in
2 other repos
Token cost
~3.4k tokens
SKILL.md length
658 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
None found

At a glance

Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code.

  • Tasks that involve Test coverage
  • SKILL.md covers When to Use This Skill, What is CRAP?, Coverage Collection Setup and ReportGenerator Installation, plus 8 more sections
  • Calls dotnet

What it does

Crap Analysis is an agent skill from ardalis/RiverBooks. Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code. Use OpenCover format with ReportGenerator for Risk Hotspots showing cyclomatic complexity and untested code paths.

Its SKILL.md is about 3.4k 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 Testing & QA, covering Test coverage. The repository describes itself as: Modular Monolith sample for Dometrain.

When your agent uses it

  • Tasks that involve Test coverage

Example prompts

  • “/crap-analysis”

What it can do on your machine

Read from SKILL.md and the folder at commit 5e225f0. 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:

    • dotnet

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

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • artima.com

    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

Crap Analysis loads about 3.4k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 658 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 658 words (~3,351 tokens).

name
crap-analysis
invocable
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/crap-analysis of ardalis/RiverBooks.

Open the folder on GitHubat commit 5e225f0

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in ardalis/RiverBooks, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Crap Analysis 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.

Crap Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Crap Analysis this skillardalis/RiverBooks1352 repos~3.4kAutomated safety check: PassNone
Requirementsrizsotto/Bear6.5k—~2kAutomated safety check: PassGPL-3.0
Code Coverages3s-project/s3s311—~789Automated safety check: PassApache-2.0
Project Statusbactopia/bactopia522—~787Automated safety check: PassMIT
Check Coverageldayton/Dippy243—~403Automated safety check: PassMIT
Guarding Destructive Operationskajisho5/ffmpeg-skill1.9k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Requirements

    rizsotto/Bear

    Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…

    6.5k GitHub stars~2k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Code Coverage

    s3s-project/s3s

    Measure and grow the line coverage of the s3s crate. An agent skill from s3s-project/s3s.

    311 GitHub stars~789 tokensUpdated today
    Testing & QAAuto-check passed
  • Project Status

    bactopia/bactopia

    Show a live snapshot of the Bactopia project state — component counts, GroovyDoc coverage, nf-test coverage, and structural issues.

    522 GitHub stars~787 tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Check Coverage

    ldayton/Dippy

    Ensure comprehensive test coverage for a CLI handler. An agent skill from ldayton/Dippy.

    243 GitHub stars~403 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Guarding Destructive Operations

    kajisho5/ffmpeg-skill

    Add and review preconditions on operations that delete, overwrite, rewrite history, or resolve a caller-supplied name to a filesystem path — refusing instead of warning, placing the guard ahead of…

    1.9k GitHub stars~2.6k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Atdd Mutate

    swingerman/engineer

    A skill your agent uses to add a third validation layer to the ATDD workflow — after acceptance tests verify WHAT and unit tests verify HOW, mutation testing verifies the tests actually catch bugs.

    154 GitHub stars~2.7k tokensUpdated 15 days ago
    Testing & QAAuto-check passed

More from ardalis/RiverBooks

  • Stryker Dotnet

    ardalis/RiverBooks

    Run Stryker.NET mutation testing against a specific .NET source file.

    135 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Test Authoring

    ardalis/RiverBooks

    Conventions for writing xUnit tests. An agent skill from ardalis/RiverBooks.

    135 GitHub stars~1.5k tokensUpdated today
    Auto-check passed

Categories

Questions about Crap Analysis

What does Crap Analysis do?

Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code. Crap Analysis is an agent skill from ardalis/RiverBooks. Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code.

When should I use Crap Analysis?

Crap Analysis fits situations like: tasks that involve Test coverage.

How do I install Crap Analysis in Claude Code?

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

How do I install Crap Analysis in Codex?

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

Can I use Crap Analysis 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 ardalis/RiverBooks --skill crap-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/crap-analysis, .gemini/skills/crap-analysis, .github/skills/crap-analysis and .opencode/skills/crap-analysis in your project.

What does Crap Analysis need to run?

Going by SKILL.md and its folder, Crap Analysis needs the command-line tools its instructions call (dotnet).

Does Crap Analysis access the network?

SKILL.md names 2 domains. As links in the text: github.com and artima.com. This is read from the text; nothing was executed.

Is Crap Analysis 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 Crap Analysis use?

No licence was found for Crap Analysis or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Crap Analysis use?

About 3.4k tokens (SKILL.md is roughly 13k 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 Crap Analysis?

Skills that share tags, products or a category with Crap Analysis: Requirements (rizsotto/Bear, 6.5k stars), Code Coverage (s3s-project/s3s, 311 stars), Project Status (bactopia/bactopia, 522 stars) and Check Coverage (ldayton/Dippy, 243 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Crap Analysis?

ardalis (a GitHub user) maintains it in ardalis/RiverBooks, which has 135 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

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