enable-code-coverage

enable-code-coverage is a skill for Claude Code from harness/harness-skills. It costs 107 tokens per session (2,005 once invoked), scanned A, original, Apache-2.0.

A setup guide for adding Harness Code Coverage to Harness CI, the continuous-integration service. It connects test-generated coverage reports to pipeline steps, pull-request checks, and default-branch baselines.

In plain words
What is it for?
Adding the coverage step after unit tests, verifying multi-module reports, uploading results, and configuring pull-request and baseline triggers through Harness tools.
Why use it?
It removes the manual work of finding the test setup, checking reports across modules, and wiring coverage checks into a Harness pipeline.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the harness-pipelines plugin — 9 skills shipped together , and of harness-skills

Good fit Adding the coverage step after unit tests, verifying multi-module reports, uploading results, and configuring pull-request and baseline triggers through Harness tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harness/harness-skills/enable-code-coverage
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 harness/harness-skills --skill enable-code-coverage
Clone the repo
git clone --depth 1 https://github.com/harness/harness-skills

Made for: Claude Code.

Or install harness-pipelines, the plugin that ships this one along with the rest of its 9 skills.

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 enable-code-coverage

README.md
[![agentmods](https://agentmods.dev/badge/skills/harness/harness-skills/enable-code-coverage/github.svg)](https://agentmods.dev/skills/harness/harness-skills/enable-code-coverage)
Your own site
<a href="https://agentmods.dev/skills/harness/harness-skills/enable-code-coverage"><img src="https://agentmods.dev/badge/skills/harness/harness-skills/enable-code-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 enable-code-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/harness/harness-skills/enable-code-coverage"><img src="https://agentmods.dev/badge/skills/harness/harness-skills/enable-code-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,005 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.00107 $0.02005
Opus 5.5 $0.00043 $0.00802
Sonnet 5.5 $0.00021 $0.00401
Haiku 4.5 $0.00011 $0.00200

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

Security

Grade A, and why

enable-code-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 17d 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.

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.

skills/pipelines/enable-code-coverage/SKILL.md · 141 lines

How it starts

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

Enable Code Coverage

Onboard any repository or pipeline to Harness Code Coverage (HCC) in Harness CI end-to-end. The skill inspects the build and test setup, verifies report generation across all modules, adds the codeCoverage step immediately after tests, and configures PR and default-branch baseline triggers.

Scope & Platform Requirements

  • Platform Target: Harness CI only (not GitHub Actions, GitLab CI, or Jenkins). The conceptual pattern (detect tests → verify multi-module reports → upload via hcli cov upload → evaluate patch gate via hcli cov wait-until → configure PR & baseline triggers) is extensible and can be replicated on other platforms, but this skill specifically manages Harness CI pipelines and triggers.
  • Autonomous Execution: Explicitly requires the Harness MCP Server (harness-mcp-v2 / harness-mcp) for autonomous discovery and write operations (inspecting repositories, checking PR checks, reading/updating pipeline YAML, and provisioning triggers).
  • Build Infrastructure Compatibility: Compatible with all Harness CI build infrastructures:
    • Harness Cloud (Hosted VMs): hcli is pre-installed on the system PATH.
    • Kubernetes Build Clusters & Docker Runners: The Harness Delegate / Lite-Engine automatically bind-mounts the versioned hcli helper binary into step containers on PATH. No custom binary download or installation step is required in the pipeline.

Detail lives in references/ — read a reference only when needed:

Reference Read when
config.md Standard thresholds, status checks, auto-discovery order
language-recipes.md Multi-module detection, report formats, build file recipes
pipelines.md Step classification, step placement rules, wiring YAML
triggers.md Checking or creating PR and baseline push triggers
troubleshooting.md Diagnosing errors or symptom-to-fix mapping

Read the full file on GitHub · 141 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 17d ago First seen · 141 lines · 107 tokens per session scan A c446eefba1a5

Subscribe to this mod's changes

enable-code-coverage is a skill published in the GitHub repository harness/harness-skills (138 stars, last pushed today), licensed Apache-2.0. It adds 107 tokens to every session and 2,005 once invoked, about $0.0004 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-13.

Related

enable-code-coverage compared with skills from other repositories

enable-code-coverage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enable-code-coverageharness/harness-skillsSkill138todayApache-2.0A107Claude Code
ci-maintenancepingdotgg/t3codeSkill84ktodayMITA36Claude Code, Codex
ci-security-scanning-with-strixusestrix/strixSkill78k2d agoApache-2.0B140Claude Code, Codex
google-agents-cli-scaffoldgoogle/agents-cliSkill6.5k5d agoApache-2.0A147Claude Code
babysitkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A45Claude Code
azure-kubernetes-app-deploymicrosoft/skillsSkill3.3k3d agoMITA166Claude Code
deploying-to-staging-environmentAgentWorkforce/relaySkill1.2ktodayApache-2.0A44Claude Code