fleet-updating-coverage

Run coverage tooling and update the root README coverage badge.

125|42|Updated May 19, 2025
One-click install
npx skills add https://github.com/SocketDev/socket-mcp --skill fleet-updating-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fleet-updating-coverage
Source: https://github.com/SocketDev/socket-mcp/tree/main/.agents/skills/fleet-updating-coverage
Command: npx skills add https://github.com/SocketDev/socket-mcp --skill fleet-updating-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Keeps the repository's coverage badge accurate in the root README by orchestrating the repo's coverage workflow and rewriting the badge line to reflect current test coverage.

Core Features & Use Cases

  • Automated badge refresh: Runs the repository's coverage tooling, reads the resulting data, and updates the root README badge.
  • End-to-end orchestration: Discovers the configured coverage script, executes it, and performs the badge rewrite as part of an update flow.
  • Pre-release readiness: Ensures the published badge matches the latest coverage before releases or public announcements.

Quick Start

Invoke the skill via /update-coverage to refresh the root README's coverage badge.

Frequently Asked Questions about fleet-updating-coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate updating the coverage badge in my README?

To automate a coverage badge update, this skill runs your project's coverage script, reads the coverage-summary.json output, and rewrites the badge line in the root README. It orchestrates the entire flow from script discovery to badge rewriting.

What is the best way to keep a Node CI coverage badge accurate before releases?

Keeping a Node CI coverage badge accurate before releases requires running the coverage tooling and updating the README badge. This skill handles end-to-end orchestration to ensure the published badge matches the latest coverage.

Do I need a specific coverage script in pnpm package.json to use this?

Yes, you need a coverage script defined in package.json. The skill discovers this configured script, executes it, and relies on the generated coverage-summary.json file under the coverage directory to compute the new badge.

How does the badge rewriting mechanism work for repository README files?

The badge rewriting mechanism works by utilizing a dedicated script at scripts/fleet/make-coverage-badge.mts. This script computes the updated badge metrics from the coverage summary and directly updates the badge line in the root README.

Can I automatically commit README changes after refreshing the coverage badge?

Yes, you can commit README changes after refreshing the coverage badge. The skill supports optional commit of changes once the coverage tooling executes and the badge line in the root README is successfully rewritten.