Gsd-skill-creator test-generator

Generates test cases for functions and components. Use when writing tests or creating test suites.

install
source · Clone the upstream repo
git clone https://github.com/Tibsfox/gsd-skill-creator
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Tibsfox/gsd-skill-creator "$T" && mkdir -p ~/.claude/skills && cp -r "$T/examples/skills/dev/test-generator" ~/.claude/skills/tibsfox-gsd-skill-creator-test-generator && rm -rf "$T"
manifest: examples/skills/dev/test-generator/SKILL.md
source content

Test Generation

Structure (AAA Pattern)

it('should [expected] when [condition]', () => {
  // Arrange — set up data
  // Act — perform operation
  // Assert — verify outcome
});

Test Categories

CategoryTest For
Happy pathValid input → expected output
Edge casesEmpty, null, boundary values
Error casesInvalid input, failures
Side effectsState changes, calls made
AsyncResolve/reject paths

Naming

Pattern:

should [behavior] when [condition]

Organization

  • Group with
    describe
    by function/method
  • Reset state in
    beforeEach
  • One concept per test

Anti-Patterns

Don'tDo
Test implementationTest behavior
Share mutable stateReset in beforeEach
Many assertions per testOne concept per test
Test private methodsTest through public API
Snapshot overuseAssert specific values