agentsclimarketplace

Test generator

Skill Razaib-khan/ForgeWeave/src/forgeweave/templates/gemini/.gemini/skills/test-generator

Behavioral execution framework for AI agents — define deterministic, portable skills & agents across OpenCode, Claude Code, Gemini CLI, and Qwen Code.

Install
npx -y skills add Razaib-khan/ForgeWeave --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

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Creates test plans and test cases (unit, integration, edge cases) based on existing or planned code

SKILL.md

2.5 KB, as published. Nobody here has run it

Test Generator

Purpose

Analyze existing or planned code and produce comprehensive test suites. Covers unit tests for individual functions, integration tests for module interactions, and edge case tests for boundary conditions. Detects the project's test framework automatically.

When to Use

  • New code has been written without tests
  • Existing code lacks coverage in critical paths
  • A bug was fixed and a regression test is needed
  • The user explicitly asks for tests

When Not to Use

  • The code is prototype or throwaway
  • The user asked for debugging, not testing
  • The testing strategy needs architectural design first

Inputs

InputTypeRequiredDescription
targetstringYesFile, module, or feature to test
typeenumNo (default: all)unit, integration, edge-case, all
frameworkstringNoTest framework (auto-detected if omitted)

Expected Outputs

OutputDescription
Test filesNew test files following project conventions
Coverage reportWhat's covered and what's not
Test run commandHow to execute the tests

Exact Workflow Steps

  1. Detect test framework from project config (Jest, Vitest, pytest, etc.)
  2. Read the target code and identify all exported functions, classes, and behaviors
  3. For each function: test happy path, error cases, edge cases (empty input, null, boundaries)
  4. Create test file following existing test conventions (naming, location, patterns)
  5. Mock external dependencies (APIs, databases, file system)
  6. Run tests to confirm they pass

Required Checks

  • All tests pass
  • Edge cases are covered (not just happy path)
  • Mocks are used for external dependencies
  • Tests are deterministic (no flaky tests)

Failure Modes

Failure ConditionResponse
Test framework not detectableAsk user to specify framework
Tests fail due to code bugsReport failing tests and suggest fixes
Mock is too complexSuggest integration test instead of mocked unit test

References

ReferencePath
Code Builder skill../code-builder/SKILL.md
Debugger skill../debugger/SKILL.md

Keep looking

Skills are one crate of 328,083. 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.