AgentStack
SKILL verified MIT Self-run

Test Gen

skill-hartbrook-staghorn-test-gen · by HartBrook

Generate unit tests for existing code

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

✓ Passed

No 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 claim

About

Test Generation

Generate unit tests for: {{path}} Framework: {{framework}} | Coverage: {{coverage}}

Test Generation Guidelines

Test Structure

  1. Read the source code to understand:
  • Function inputs and outputs
  • Side effects
  • Error conditions
  • Edge cases
  1. 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 describe blocks to group related tests
  • Use it or test with descriptive names
  • Use beforeEach/afterEach for setup/cleanup
  • Mock external dependencies
Python (pytest)
  • Use fixtures for test setup
  • Use parametrize for multiple test cases
  • Follow test_ naming convention
  • Use @pytest.mark for test categorization
Go
  • Use table-driven tests
  • Follow Test prefix convention
  • Use t.Run for subtests
  • Use testify assertions if available
Rust
  • Use #[test] attribute
  • Use #[should_panic] for error tests
  • Use #[ignore] for slow tests
  • Organize tests in a tests module

Output Format

Generate tests that:

  1. Are well-organized and readable
  2. Have descriptive test names explaining what's tested
  3. Include setup comments if complex
  4. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.