florianbruniaux/claude-code-ultimate-guide/generate-tests

Claude Code and agent skill by florianbruniaux/claude-code-ultimate-guide

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate comprehensive tests for specified code

Install

npx vskill@latest install florianbruniaux/claude-code-ultimate-guide/generate-tests

SKILL.md

Generate tests

Generate comprehensive tests for specified code.

Instructions

  1. Read the target file(s)
  2. Identify testable units (functions, classes, methods)
  3. Generate tests following project conventions
  4. Ensure high coverage of edge cases

Test generation process

1. Analyze target
  • Identify public interfaces
  • Understand dependencies
  • Note edge cases and boundaries
2. Detect test framework

Check for:

  • jest.config.js → Jest
  • vitest.config.ts → Vitest
  • pytest.ini → pytest
  • mocha in package.json → Mocha
3. Generate tests

Follow the detected framework conventions.

Test categories

Happy path

Normal expected behavior with valid input.

Edge cases
  • Empty inputs
  • Null/undefined values
  • Boundary values (0, -1, MAX_INT)
  • Single item vs multiple items
Error cases
  • Invalid input types
  • Missing required parameters
  • Network/IO failures
  • Timeout scenarios
Integration points
  • Database interactions
  • External API calls
  • File system operations

Output format

typescript
describe('[ComponentName]', () => {
describe('[methodName]', () => {
// Happy path
it('should [expected behavior] when [condition]', () => {
// Arrange
// Act
// Assert
});
// Edge cases
it('should handle empty input', () => {});
it('should handle null values', () => {});
// Error cases
it('should throw when [invalid condition]', () => {});
});
});

Conventions

  • One assertion per test (when practical)
  • Descriptive test names
  • AAA pattern (Arrange-Act-Assert)
  • No test interdependence
  • Mock external dependencies

Usage

/generate-tests src/utils/calculator.ts
/generate-tests src/services/

$ARGUMENTS

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
5,719
Repository forks
749
7-day trend score
43

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/florianbruniaux/claude-code-ultimate-guide/generate-tests/badge)](https://verified-skill.com/skills/florianbruniaux/claude-code-ultimate-guide/generate-tests)

Something wrong with this skill or its page? Tell us.