agentsclimarketplace

Go cover

Skill otaviof/gosmith/skills/go-cover

Generate Go test coverage report with package breakdown.From its SKILL.md

Install
npx -y skills add otaviof/gosmith --skill go-cover

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.2 KB, as published. Nobody here has run it

Instructions

  1. Validate: Check go.mod exists in cwd or parent dirs

  2. Execute:

    • Pattern: <ARG> or default ./...
    • --html: Generate coverage.html and report path
    • Run: go test -coverprofile=coverage.out -covermode=atomic <pattern>
  3. Parse: Extract per-package coverage from coverage.out

    • Skip mode/total lines
    • Group by package path
    • Calculate percentage: (covered statements / total statements) × 100
  4. Format:

    ## COVERAGE REPORT
    
    | Package        | Coverage | Target | Status |
    |----------------|----------|--------|--------|
    | pkg/domain     | 87.2%    | 80%    | PASS   |
    | pkg/service    | 72.1%    | 80%    | FAIL   |
    
    **Overall:** 83.4% | **Target:** 80% | **Status:** PASS
    
  5. Report:

    • Standard: Markdown table with overall status
    • HTML mode: "Coverage report: coverage.html"
  6. Edge cases:

    • No tests: "No test files found in <pattern>"
    • Build failure: Report compilation errors (first 5 lines)
    • Target: Env GO_COVER_TARGET or default 80%

Keep looking

Skills are one crate of 609,689. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.