— No reviews yet
0 installs
15 views
0.0% view→install
Install
$ agentstack add skill-hartbrook-staghorn-test-gen ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Test Gen? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
Test Generation
Generate unit tests for: {{path}} Framework: {{framework}} | Coverage: {{coverage}}
Test Generation Guidelines
Test Structure
- Read the source code to understand:
- Function inputs and outputs
- Side effects
- Error conditions
- Edge cases
- Generate tests that cover:
- Happy path (normal operation)
- Edge cases (empty inputs, boundaries)
- Error handling (invalid inputs, failures)
- Integration points (if applicable)
Framework-Specific Conventions
JavaScript/TypeScript (Jest/Vitest)
- Use
describeblocks to group related tests - Use
itortestwith descriptive names - Use
beforeEach/afterEachfor setup/cleanup - Mock external dependencies
Python (pytest)
- Use fixtures for test setup
- Use parametrize for multiple test cases
- Follow
test_naming convention - Use
@pytest.markfor test categorization
Go
- Use table-driven tests
- Follow
Testprefix convention - Use
t.Runfor subtests - Use
testifyassertions if available
Rust
- Use
#[test]attribute - Use
#[should_panic]for error tests - Use
#[ignore]for slow tests - Organize tests in a
testsmodule
Output Format
Generate tests that:
- Are well-organized and readable
- Have descriptive test names explaining what's tested
- Include setup comments if complex
- Follow the project's existing test patterns
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: HartBrook
- Source: HartBrook/staghorn
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.