← ClaudeAtlas

coverage-initlisted

Initialize the coverage backfill in a .NET repo. Use when setting up dotnet-coverage-kit in a new service for the first time, or when the user says 'init coverage', 'set up coverage backfill', or 'scaffold the coverage manifest'. Detects the repo's architecture and projects, sweeps every source file against an objective per-category signal rubric in parallel (user-chosen agent count) to classify them, synthesizes a coverage-manifest.yml and a per-repo unit-testing overlay at the main agent, runs a single cross-project self-critique to catch wrongly-excluded testable code and wrongly-included untestable code (including the same mistake repeated across projects) before human review, installs the runsettings + run script, and scaffolds a PR coverage workflow without clobbering existing CI.
livlign/claude-skills · ★ 18 · AI & Automation · score 76
Install: claude install-skill livlign/claude-skills
# coverage-init Run once per repo. Discovers the repo's shape and drafts the per-repo config. It DRAFTS; a human reviews and corrects before any test generation. Never proceed to generation in the same turn. ## Precondition — run on the latest production branch (master) The manifest, the detected structure, and the baseline number must reflect the code that ships, not an in-flight feature branch. Before doing anything else: 1. Confirm the repo is on the production branch (master). If checked out on a feature/topic branch, **stop** and ask the user to switch — do not init against feature work. 2. Pull it up to date with the remote (`git fetch` + fast-forward) so the baseline matches the current tip of master. 3. Confirm a clean working tree. Uncommitted local changes skew detection and the baseline; if the tree is dirty, stop and report rather than measuring against unknown edits. State the branch and commit you initialized against in the step 11 report, so the eventual `baseline.ref` is traceable to a real production commit. ## Steps 1. **Detect SDK-style.** Confirm projects are SDK-style `.csproj` (dotnet-coverage only supports these). If any target project is a legacy non-SDK `.csproj`, stop and report it — that project needs coverlet instead and is out of scope for this kit. 2. **Inventory projects.** List `.csproj` files and their references. Identify the test project(s) and what they reference. Identify likely roles (domain, application, infr