coverage-readme-workflow
Installation
SKILL.md
What I do
I implement a complete test coverage documentation workflow that ensures coverage percentages are displayed in README.md files:
- Detect Project Type: Identify whether the project is Next.js (JavaScript/TypeScript) or Python
- Run Tests with Coverage: Execute test suite with coverage collection for the detected framework
- Parse Coverage Output: Extract coverage percentage from test output (lines, statements, branches, functions)
- Generate Coverage Badge: Create or update coverage badge in industry-standard format (Shields.io badge)
- Update README.md: Add or update coverage badge and percentage display in README.md following industry best practices
- Handle Edge Cases: Deal with missing coverage configuration, zero coverage, or coverage threshold violations