dancing-bear: Skill for Claude Code

.claude/skills/expand-coverage/SKILL.md

expand-coverage is a skill for Claude Code from dancing-bear-show/dancing-bear. It costs 46 tokens per session (978 once invoked), scanned A, original, MIT.

A test-coverage workflow that finds changed code without enough tests, writes tests for important gaps, and checks coverage again. Coverage measures which parts of the code are exercised when tests run.

In plain words
What is it for?
Use it after adding code, when asked to add tests, or when coverage is below the project's target. It can create tests for uncovered files and functions and verify the updated report.
Why use it?
It helps identify new or changed behavior that tests do not reach. This reduces the chance of shipping untested branches, especially in important paths.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is dancing-bear-show/dancing-bear's own configuration. It tells Claude Code how to work on dancing-bear itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dancing-bear configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dancing-bear-show/dancing-bear. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dancing-bear-show/dancing-bear/main/.claude/skills/expand-coverage/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dancing-bear-show/dancing-bear

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for expand-coverage

README.md
[![agentmods](https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/expand-coverage/github.svg)](https://agentmods.dev/skills/dancing-bear-show/dancing-bear/expand-coverage)
Your own site
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/expand-coverage"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/expand-coverage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for expand-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/expand-coverage"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/expand-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00978
Opus 5.5 $0.00018 $0.00391
Sonnet 5.5 $0.00009 $0.00196
Haiku 4.5 $0.00005 $0.00098

Measured yesterday against content hash 012f21b098f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

expand-coverage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/expand-coverage/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Expand Coverage

Find coverage gaps, write tests, and verify improvement.

When to Use

  • After writing new code that needs tests
  • User says "add tests" or "improve coverage"
  • Coverage below 80% on new/changed files
  • As part of /review-fix Phase 2

Step 1: Identify Gaps

# Full coverage report (all domains)
make cov

# Coverage for a specific domain
PYTHONPATH="$PWD/src" python3 -m coverage run -m unittest discover -s tests/<domain>_tests -t . -q
PYTHONPATH="$PWD/src" python3 -m coverage report -m --include="src/<domain>/*"

# Lint-level complexity/smell signals (not coverage, but flags files needing tests)
~/.qlty/bin/qlty check src/<domain>/

Step 2: Prioritize

Order by impact:

  1. New files with 0% coverage — need test skeletons
  2. Changed files below 80% — need gap tests
  3. Critical paths below 90% — auth, credentials, API clients

Step 3: Write Tests

For each file needing coverage:

  1. Read the source to understand what to test
  2. Read the shared test helpers for available factories, fakes and mixins. This is a stdlib unittest suite: there are no conftest.py files and no tests/helpers/ package.
    • tests/fixtures.py — cross-domain helpers (TempDirMixin, temp_yaml_file, capture_stdout, write_csv, …)
    • tests/<domain>_tests/fixtures.py — domain factories. Some domains name it shared_fixtures.py (qlty, telemetry, wifi) or helpers.py (worker); ls the directory first
    • tests/fakes/ — offline Gmail, Outlook and DOCX fakes
    • tests/*_contract.py — shared CLI and agentic contract mixins; subclass them rather than re-asserting
  3. Write tests following project conventions

Test Conventions (Mandatory)

  • Use the make_* factories in those fixture files, never construct dicts manually
  • Reuse constants the domain's fixtures module already defines rather than new literals
  • Patch where the name is used, not where it's defined
  • Specific assertions: assertEqual, assertIn, assertIsInstance
  • @dataclass for test fixtures

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 112 lines · 46 tokens per session scan A 012f21b098f6

Subscribe to this mod's changes

expand-coverage is a skill published in the GitHub repository dancing-bear-show/dancing-bear (7 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 978 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

expand-coverage compared with skills from other repositories

expand-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
expand-coveragedancing-bear-show/dancing-bearSkill7yesterdayMITA46Claude Code
gogolafkfreund/nixos_configSkill32yesterdayGPL-3.0A125Claude Code, Codex
google-workspace-authbobmatnyc/claude-mpmSkill1582mo agononeA22Claude Code
outlook-mcpmpalermiti/outlook-mcpSkill412d agoMITA96Claude Code, Codex
olkrlrghb/olkcliSkill2314d agoMITA28Claude Code, Codex
ghealthGoogle-Health-API/google-health-cliSkill2814mo agoApache-2.0A41Claude Code, Codex
ghealth-sharedGoogle-Health-API/google-health-cliSkill2814mo agoApache-2.0A22Claude Code, Codex