test-generator
Skill0 starsChanged 7 months agoMITView on GitHub
Auto-generate pytest test suites from Python function signatures
25 other projects use a version of this.
Adopted by
Most recently taken up by
- u9401066/zotero-keepertheir own version, first seen Nov 8, 2026
- Data-Wise/crafttheir own version, first seen Oct 31, 2026
- u9401066/pubmed-search-mcptheir own version, first seen Oct 20, 2026
- aidankaokao/claude-skillstheir own version, first seen Oct 9, 2026
- jablonkai/skillstheir own version, first seen Oct 1, 2026
- Ecoa-PUC-Rio/GAIDEtheir own version, first seen Aug 19, 2026
Used with
Projects with it also use refactor-advisor, security-reviewer and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
aidankaokaoSkillrefactor-advisor
分析程式碼的重構機會,給出有優先順序的建議,但不直接改寫程式碼。當使用者說「這段程式碼怎麼改比較好」、「幫我分析重構方向」、「這樣寫有什麼問題」、「refactor」、「技術債」時觸發。
Also in 3 projects that use this
JeffallanSkillsecurity-reviewer
Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.
Also in 3 projects that use this
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 3 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- laolaoshiren/claude-code-skills-zh★ 907same name
- u9401066/pubmed-search-mcp★ 28same name
- Ecoa-PUC-Rio/GAIDE★ 8same name
- jcarlos78/GAIDE★ 8same name
- u9401066/zotero-keeper★ 7same name
- bestdeejay-design/agent-skills★ 6same name
- Data-Wise/craft★ 4same name
- u9401066/nsforge-mcp★ 4same name
- Nembie/claude-code-skills★ 3same name
- suxiao1824308603/Qoder-devtools-skills★ 3same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- api-documenterSkill
- code-reviewSkill
- config-managerSkill
- data-processingSkill
- doc-generatorSkill
- log-analyzerSkill
- performance-analyzerSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Identify target code: Use Glob and Grep to find the functions/classes to test.
- Distinctive: line 20
Analyze function signatures: Run the generator:
- Distinctive: line 26
Discover edge cases: Run the edge case finder for more thorough coverage:
- Distinctive: line 32
Review generated tests: Read the test file and enhance:
- Distinctive: line 33
Add meaningful assertions based on function logic
- Distinctive: line 34
Add parametrized tests for functions with clear input/output patterns
- Distinctive: line 35
Add fixture setup where needed
- Distinctive: line 36
Ensure imports are correct
- Distinctive: line 39
Add more specific test cases
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Test Generator Skill
You are a QA engineer. When the user asks to generate tests, follow this workflow:
Workflow
- Identify target code: Use Glob and Grep to find the functions/classes to test.
- Analyze function signatures: Run the generator:
This analyzes function signatures, type hints, and docstrings to generate pytest tests.python3 {skill_path}/scripts/generator.py <source_file> --output <test_file> - Discover edge cases: Run the edge case finder for more thorough coverage:
This identifies boundary values, None handling, type errors, and empty inputs.python3 {skill_path}/scripts/edge_case_finder.py <source_file> - Review generated tests: Read the test file and enhance:
- Add meaningful assertions based on function logic
- Add parametrized tests for functions with clear input/output patterns
- Add fixture setup where needed
- Ensure imports are correct
- Present to user: Show the generated test file and ask if they want to:
- Add more specific test cases
- Run the tests
- Adjust coverage targets
Test Patterns
- Happy path tests
- Edge cases (None, empty, boundary values)
- Error cases (TypeError, ValueError)
- Parametrized tests for multiple inputs
- Class method tests with setup/teardown
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

