Generate Tests
ListedAutomatically creates unit tests based on code comments and function signatures to improve test coverage.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add aptos-labs/aptos-agent-skills --skill generate-tests -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
iskysun96
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
Declares what it does: failed
SKILL.md frontmatter is missing description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned iskysun96/aptos-agent-skills at fdc663ede8.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- fdc663ede8
- Scanned
- 1 file, 433 lines
About this skill
What it does
This skill automatically generates test cases based on provided code or descriptions. It can create tests for various programming languages and scenarios, helping to ensure software quality and identify potential bugs early in the development process. The generated tests are intended to be a starting point and may require refinement depending on the complexity of the code being tested.
When to use it
- Automated Testing: Generate initial test suites for new or existing codebases to accelerate testing cycles.
- Regression Testing: Quickly create tests when refactoring or making significant changes to ensure functionality remains intact.
- Learning New Code: Understand the expected behavior of unfamiliar code by having the skill generate example test cases.
- Code Coverage: Supplement existing tests to increase code coverage and identify untested areas.
Key capabilities
- Test case generation from code snippets
- Support for multiple programming languages (specific languages not listed)
- Creation of initial test suites
- Generation of tests based on descriptions of functionality
Example prompts
- "Generate unit tests for this Python function:
def add(a, b): return a + b" - "Create test cases to verify the sorting algorithm described as 'sorts an array in ascending order'."
- “Write tests for this Javascript code that calculates the factorial of a number.”
Tips & gotchas
The generated tests are a starting point and may require manual review and adjustment. The quality of the generated tests depends heavily on the clarity and completeness of the input code or description.