find-missing-tests
Analyze codebase and identify missing test cases, then create GitHub issues for each gap
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- find-missing-tests
- description
- Analyze codebase and identify missing test cases, then create GitHub issues for each gap
- user-invocable
- true
03 SKILL.md 正文
Analyze codebase and identify missing test cases, then create GitHub issues for each gap: $ARGUMENTS
Follow these steps:
<!-- recall:begin -->
Step 0: Prior-art check (RECOMMENDED)
Before identifying test gaps, recall prior learnings from the global knowledge base so we don't re-learn or re-decide something already captured:
uv run "{{HOME_TOOL_DIR}}/skills/recall/scripts/recall.py" \
"<QUERY>" \
--limit 5 --format markdown
Query construction for /find-missing-tests: target module/package name + "testing" (e.g. "payment webhook handler testing").
What to do with results:
- If a returned learning names a constraint, anti-pattern, or prior decision directly relevant to the task — surface it to the user BEFORE proceeding with this skill's main flow.
- If nothing relevant returns — proceed silently, no need to mention the check.
- Never block on recall failure. Empty output / non-zero exit is expected when the KB is absent or the subprocess errors — treat it as "no prior art found", not as an error.
<!-- recall:end -->
-
Analyze the codebase:
- If $ARGUMENTS specifies files/directories, focus on those areas
- Otherwise, scan the entire codebase for test coverage gaps
- Look for functions, classes, and modules without corresponding tests
- Identify edge cases and error conditions that aren't tested
-
Review existing test structure:
- Understand the current testing framework and patterns
- Identify test file naming conventions
- Note any existing test utilities or helpers
- Check for integration and end-to-end test coverage
-
Identify specific missing test cases:
- Unit tests: Functions and methods without test coverage
- Integration tests: Component interactions not tested
- Edge cases: Boundary conditions, error handling, null/empty inputs
- Regression tests: Previously fixed bugs without test coverage
- Performance tests: Critical paths without performance validation
-
Create detailed GitHub issues for each missing test with:
- Clear title:
[TEST] Add {type} tests for {component/function} - Specific test cases to implement
- Expected test file location following project conventions
- Acceptance criteria defining what constitutes complete coverage
- Priority level based on code criticality
- Clear title:
-
Generate GitHub issues:
- Use
gh issue createfor each identified test gap - Add appropriate labels:
testing,bug,enhancement - Include code snippets showing what needs testing
- Reference related code files and line numbers
- Use
-
Create a summary report:
- Save findings as
test-coverage-analysis.md - Include overall coverage assessment
- Prioritize issues by criticality and risk
- Save findings as
Remember: Be specific about what should be tested - don't create vague "add more tests" issues.
04 同仓库更多 Skills
well-formed
Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.
underscore-tools
Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.
no-frontmatter
暂无简介
long-description
Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.
some-other-name
Fixture skill whose frontmatter name does not match its parent directory name.
bad_Name
Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.