Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add otaviof/gosmith --skill "go-cover"
Install specific skill from multi-skill repository
# Description
Generate Go test coverage report with package breakdown.
# SKILL.md
name: go-cover
description: Generate Go test coverage report with package breakdown.
argument-hint: [package-pattern]
allowed-tools: Bash
model: haiku
Instructions
-
Validate: Check
go.modexists in cwd or parent dirs -
Execute:
- Pattern:
<ARG>or default./... --html: Generatecoverage.htmland report path-
Run:
go test -coverprofile=coverage.out -covermode=atomic <pattern> -
Parse: Extract per-package coverage from
coverage.out - Skip mode/total lines
- Group by package path
-
Calculate percentage: (covered statements / total statements) × 100
-
Format:
```markdown
## 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
```
- Report:
- Standard: Markdown table with overall status
-
HTML mode: "Coverage report:
coverage.html" -
Edge cases:
- No tests: "No test files found in
<pattern>" - Build failure: Report compilation errors (first 5 lines)
- Target: Env
GO_COVER_TARGETor default 80%
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.