coverage-readme-workflow-skill

coverage-readme-workflow-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 26 tokens per session (822 once invoked), scanned C, original, Apache-2.0.

A workflow for measuring automated test coverage in Next.js or Python projects and showing the result in a README badge. Test coverage is the share of code exercised by tests.

In plain words
What is it for?
Use it after adding tests or features, when creating a project, or when checking whether coverage thresholds are met.
Why use it?
It removes the manual work of collecting coverage numbers, formatting badges, and keeping project documentation current.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it after adding tests or features, when creating a project, or when checking whether coverage thresholds are met.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add darellchua2/opencode-config-template --skill coverage-readme-workflow-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: Claude Code, Codex.

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 coverage-readme-workflow-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill/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 coverage-readme-workflow-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 822 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00026 $0.00822
Opus 5.5 $0.00010 $0.00329
Sonnet 5.5 $0.00005 $0.00164
Haiku 4.5 $0.00003 $0.00082

Measured 2mo ago against content hash ce94cde89289, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

coverage-readme-workflow-skill scanned grade C with 1 finding 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 2mo ago.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

When protocol is enabled, this skill defaults to `Iterations: 10` (sufficient for typical single-pass workflows). Override with `Iterations: N` for specific tasks. Safety blocks: `.env`, `node_modules/`, `rm -rf`, `git p
skills/coverage-readme-workflow-skill/SKILL.md · 54 lines

How it starts

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

What I do

Run coverage, generate a Shields.io badge, and land it (+ percentage + optional trend) in README.md — Next.js and Python projects.

When to use me

After adding tests; before PR (feeds pr-creation-workflow's quality-checks section); refreshing a stale badge. Companion to test-generator-framework, nextjs-unit-test-creator, python-pytest-creator.

Steps

  1. Detect project type: package.json (+next dep) → Next.js; pyproject.toml/requirements.txt → Python.
  2. Coverage tool: Next.js → Vitest/Jest with --coverage; Python → pytest --cov=<pkg> --cov-report=term (coverage.py underneath).
  3. Run with coverage, parse the summary number (Next: coverage/coverage-summary.json total.lines.pct — or text report last line; Python: TOTAL row percentage).
  4. Badge: https://img.shields.io/badge/coverage-<pct>%25-<color> — color by band: ≥90 brightgreen, ≥75 green, ≥60 yellowgreen, ≥40 yellow, else red.
  5. Update README.md: ## Test Coverage section with badge + line like Coverage: **87.5%** (last updated <date>); keep placement stable across updates (consumers diff it). README untouched by CI beyond this section.
  6. Verify: re-read README, confirm badge URL carries the new number and the old badge/markup is replaced, not duplicated.
  7. Report: before→after percentage, badge URL, threshold verdict (if a threshold is configured, state pass/fail — do not lower the threshold to pass).

Edge cases: zero coverage → badge 0% red + a note, never skip the update; no coverage config → note it and stop (never add config unrequested); threshold violated → badge updates anyway + failure reported to the caller.

PR badge comment (absorbed from the deleted nextjs-pr-workflow-skill)

When a caller asks for coverage on a PR (standalone path only): post the badge + percentage as a PR comment (gh pr comment <num> --body "…badge + Coverage: N%") — never mutate the README at that stage. In pipeline mode this is skipped entirely: README must not change after code review; CI carries the coverage signal.

Read the full file on GitHub · 54 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. 2mo ago Changed · +4 lines ce94cde89289
  2. 2mo ago Changed · -597 lines c29651cc46c5
  3. 3mo ago First seen · 647 lines · 26 tokens per session scan C 256087c53500

Subscribe to this mod's changes

coverage-readme-workflow-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 26 tokens to every session and 822 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

coverage-readme-workflow-skill compared with skills from other repositories

coverage-readme-workflow-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coverage-readme-workflow-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0C26Claude Code, Codex
keep-the-whyoliver-zehentleitner/keep-the-whySkill2404d agoMITA128Claude Code
sw-doanton-abyzov/specweaveSkill179todayMITA44Claude Code, Codex
reviewanton-abyzov/specweaveSkill179todayMITA45Claude Code, Codex
doneanton-abyzov/specweaveSkill179todayMITA45Claude Code, Codex
pre-modification-checkrepowise-dev/repowiseSkill8.5kyesterdayAGPL-3.0A22Claude Code, Codex
summarizezhinjs/zhinSkill136yesterdayMITA61Claude Code, Codex