agentsclimarketplace

Test generator

Skill Tibsfox/gsd-skill-creator/examples/skills/dev/test-generator

Generates test cases for functions and components. Use when writing tests or creating test suites.From its SKILL.md

Install
npx -y skills add Tibsfox/gsd-skill-creator --skill test-generator

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.2 KB, 219 tokens by cl100k_base, as published. Nobody here has run it

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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.