{"id":49880055,"url":"https://github.com/pardnio/skill-coverage-generate","last_synced_at":"2026-05-15T13:40:40.413Z","repository":{"id":341419476,"uuid":"1169449798","full_name":"pardnio/skill-coverage-generate","owner":"pardnio","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-01T16:20:34.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-24T17:35:29.989Z","etag":null,"topics":["agentskills","ai-generated"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pardnio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-28T17:51:02.000Z","updated_at":"2026-04-05T10:20:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pardnio/skill-coverage-generate","commit_stats":null,"previous_names":["pardnchiu/skill-coverage-generate","pardnio/skill-coverage-generate"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pardnio/skill-coverage-generate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fskill-coverage-generate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fskill-coverage-generate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fskill-coverage-generate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fskill-coverage-generate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pardnio","download_url":"https://codeload.github.com/pardnio/skill-coverage-generate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fskill-coverage-generate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentskills","ai-generated"],"created_at":"2026-05-15T13:40:40.133Z","updated_at":"2026-05-15T13:40:40.406Z","avatar_url":"https://github.com/pardnio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!NOTE]\n\u003e This document is available in Traditional Chinese: [README.zh.md](./README.zh.md)\n\n# skill-coverage-generate [![license](https://img.shields.io/github/license/pardnchiu/skill-coverage-generate)](LICENSE)\n\n\u003e A Claude Code Skill that automatically analyzes Go test coverage per function and generates table-driven test cases to bring projects to ≥90% coverage threshold.\n\u003e Invoke `/coverage-generate` from any Go project directory — it discovers source files, measures coverage, and writes missing test cases end-to-end.\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [CLI Reference](#cli-reference)\n- [License](#license)\n\n## Features\n\n- **Automated Coverage Analysis**: Runs `go test -coverprofile` and parses per-function coverage to identify gaps below 90%\n- **Smart Test Generation**: Creates table-driven tests covering nominal, nil input, boundary, error path, and context cancellation scenarios\n- **Multi-Package Support**: Processes entire Go modules via `./...`, handling all packages in one run\n- **Intelligent Exclusions**: Skips `main.go`, generated files (`*.pb.go`, `*_generated.go`), and `init()` functions automatically\n- **Quality Gates**: Validates compilation with `go build ./...` and re-runs coverage after generation to confirm improvement\n\n## Installation\n\n```bash\ngit clone https://github.com/pardnchiu/skill-coverage-generate ~/.claude/skills/coverage-generate\n```\n\n## Usage\n\nFrom within a Go project directory, invoke the skill:\n\n```\n/coverage-generate\n```\n\nClaude will run the full 4-phase workflow — discovery, analysis, generation, and validation — and report the before/after coverage delta.\n\n## CLI Reference\n\n### Workflow Phases\n\n| Phase | Action | Tool |\n|-------|--------|------|\n| 1. Discovery | Find non-test Go source files | `find` |\n| 2. Analysis | Generate coverage report | `go test -coverprofile=coverage.out ./...` |\n| 3. Generation | Parse gaps and write tests | `go tool cover -func=coverage.out` |\n| 4. Validation | Compile + re-measure coverage | `go build ./...`, `go test ./...` |\n\n### Excluded Files\n\n| Pattern | Reason |\n|---------|--------|\n| `*_test.go` | Already test files |\n| `*.pb.go`, `*_generated.go` | Generated code |\n| `main.go` | Integration test scope |\n| `init()` functions | Not directly testable |\n\n## License\n\nThis project is licensed under the [MIT LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpardnio%2Fskill-coverage-generate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpardnio%2Fskill-coverage-generate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpardnio%2Fskill-coverage-generate/lists"}