Write tests
Skill NSBen/skillfoundry/src/skillfoundry/data/starter_skills/write-tests
Use when a module or function lacks tests and you need to generate meaningful unit or integration tests that cover the real behaviour.From its SKILL.md
npx -y skills add NSBen/skillfoundry --skill write-testsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 19 days oldThe repository was created 19 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 1 stars1 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.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.2 KB, 172 tokens by cl100k_base, as published. Nobody here has run it
Write Tests
When to use
Use this skill when code is untested, when a bug needs a regression test, or when coverage on a path is missing.
Steps
- Read the target and identify public behaviour, edge cases, and failure modes.
- Choose the right level: unit for pure logic, integration for I/O and boundaries.
- Write one test per behaviour using the project's existing framework and fixtures.
- Include at least one edge case and one error-path assertion.
- Run the suite and keep only tests that fail without the fix and pass with it.
Examples
- "Write pytest tests for utils/parser.py"
- "Add integration tests for the /checkout endpoint"
References
Follow the project's test style; never test private internals or assert on exact error strings that may change.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.