coverage-readme-workflow-skill

coverage-readme-workflow-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 26 tokens per session (4,929 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 OpenCode

Written for OpenCode: installed under .opencode/. 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.

agentmods
npx agentmods add skills/darellchua2/opencode-config-template/coverage-readme-workflow-skill
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: OpenCode.

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.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.svg" alt="Measured on agentmods" 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 4,929 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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.04929
Opus 5 $0.00013 $0.02465
Sonnet 5 $0.00005 $0.00986
Haiku 4.5 $0.00003 $0.00493

Measured 3d ago against content hash 256087c53500, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 3d 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.

9. **Iteration safety**: bounded-by-default (`Iterations: 25`); safety blocks `.env`, `node_modules/`, `rm -rf`, `git push --force`. See `autoresearch-core-skill/references/iteration-safety.md`.
opencode_app/.opencode/skills/coverage-readme-workflow-skill/SKILL.md · 647 lines

How it starts

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

What I do

I implement a complete test coverage documentation workflow that ensures coverage percentages are displayed in README.md files:

  1. Detect Project Type: Identify whether the project is Next.js (JavaScript/TypeScript) or Python
  2. Run Tests with Coverage: Execute test suite with coverage collection for the detected framework
  3. Parse Coverage Output: Extract coverage percentage from test output (lines, statements, branches, functions)
  4. Generate Coverage Badge: Create or update coverage badge in industry-standard format (Shields.io badge)
  5. Update README.md: Add or update coverage badge and percentage display in README.md following industry best practices
  6. Handle Edge Cases: Deal with missing coverage configuration, zero coverage, or coverage threshold violations

When to use me

Use this workflow when:

  • You're creating a new Next.js application or Python project
  • You've just added tests to an existing project
  • You want to ensure test coverage is visible in project documentation
  • You're following industry standard practices for displaying code quality metrics
  • You need to update coverage percentage after adding new features
  • You're preparing for a code review or PR submission
  • You want to track coverage trends over time

Integration: This skill is typically used alongside:

  • test-generator-framework: After generating tests
  • nextjs-unit-test-creator: After generating Next.js tests
  • python-pytest-creator: After generating Python tests
  • nextjs-pr-workflow: Before creating a PR
  • pr-creation-workflow: Before creating a PR

Prerequisites

  • Next.js project with package.json OR Python project with pyproject.toml/requirements.txt
  • Test framework installed (Jest/Vitest for Next.js, pytest for Python)
  • Coverage tools available (built-in to Jest/Vitest, pytest-cov for pytest)
  • README.md file exists in project root
  • Write permissions to update README.md
  • Tests must pass before coverage display

Note: If coverage tools are not installed, this skill will guide you through installation.

Read the full file on GitHub · 647 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. 3d 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 today), licensed Apache-2.0. It adds 26 tokens to every session and 4,929 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

e2e

Generate and run Playwright E2E tests traced to spec.md acceptance criteria, with an optional accessibility audit. Use when saying "e2e tests" or "a11y audit".

anton-abyzov/specweave · 38 tokens

tdd-cycle

Execute full TDD red-green-refactor cycle with validation gates. Use when saying "TDD cycle", "test-driven development", or "full TDD workflow".

anton-abyzov/specweave · 33 tokens

done

Close an increment: ledger check, specweave verify, optional review, then specweave complete. Use when all tasks are done and saying "close increment", "we are done", or "finish up".

anton-abyzov/specweave · 0 tokens

spike-consumer-adversarial

OI-3 spike harness — heavy consumer, ADVERSARIAL arm. Worst-case early-exit test: the mid-workflow Skill call has no continuation guardrail and the guidance skill ends with a final-sounding anchor. Use only when explicitly invoked by the spike harness with a TRIALID and data path.

testdouble/han · 0 tokens

pr-verify

Verify a Docglow change actually works before submitting or merging a PR. Runs the conformance suite, then a behavioral verification pass (flag matrix, artifact-join spot checks, pipeline contract sweep, payload budget). Use when reviewing a PR, self-reviewing a branch before opening a PR, or when asked to "verify…

docglow/docglow · 79 tokens

qa

Risk-scored quality assessment of an increment via specweave qa. Use when saying "qa", "quality check", "risk assessment", or before deciding whether an increment is ready to close.

anton-abyzov/specweave · 40 tokens