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.
npx skills add harness/harness-skills --skill enable-code-coveragegit clone --depth 1 https://github.com/harness/harness-skillsWrote 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.
[](https://agentmods.dev/skills/harness/harness-skills/enable-code-coverage)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 viahcli 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):
hcliis pre-installed on the systemPATH. - Kubernetes Build Clusters & Docker Runners: The Harness Delegate / Lite-Engine automatically bind-mounts the versioned
hclihelper binary into step containers onPATH. No custom binary download or installation step is required in the pipeline.
- Harness Cloud (Hosted VMs):
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 |
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.
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.
- 17d ago First seen · 141 lines · 107 tokens per session scan A c446eefba1a5
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.
enable-code-coverage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| enable-code-coverageharness/harness-skills | Skill | 138 | today | Apache-2.0 | A | 107 | Claude Code |
| ci-maintenancepingdotgg/t3code | Skill | 84k | today | MIT | A | 36 | Claude Code, Codex |
| ci-security-scanning-with-strixusestrix/strix | Skill | 78k | 2d ago | Apache-2.0 | B | 140 | Claude Code, Codex |
| google-agents-cli-scaffoldgoogle/agents-cli | Skill | 6.5k | 5d ago | Apache-2.0 | A | 147 | Claude Code |
| babysitkirodotdev/KiroCrew | Skill | 5.1k | today | Apache-2.0 | A | 45 | Claude Code |
| azure-kubernetes-app-deploymicrosoft/skills | Skill | 3.3k | 3d ago | MIT | A | 166 | Claude Code |
| deploying-to-staging-environmentAgentWorkforce/relay | Skill | 1.2k | today | Apache-2.0 | A | 44 | Claude Code |