test-generator

test-generator is a skill for Claude Code from Data-Wise/craft. It costs 63 tokens per session (977 once invoked), scanned A, original, MIT.

A test-building tool that creates automated and interactive checks for different kinds of software projects. Dogfooding tests use the product as a real user would to check whether it works.

In plain words
What is it for?
Use it to create CI-ready tests, manual QA checklists, plugin validation tests, and checks for commands, exit codes, output, structure, and imports.
Why use it?
It removes the need to design basic test coverage and test commands from scratch, including checks for command-line tools, plugins, libraries, and scripts.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery.

Part of the craft plugin — 41 skills, 14 commands, 2 agents, 1 MCP server shipped together

Good fit Use it to create CI-ready tests, manual QA checklists, plugin validation tests, and checks for commands, exit codes, output, structure, and imports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/data-wise/craft/test-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Data-Wise/craft --skill test-generator
Clone the repo
git clone --depth 1 https://github.com/Data-Wise/craft

Made for: Claude Code.

Or install craft, the plugin that ships this one along with the rest of its 41 skills, 14 commands, 2 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/data-wise/craft/test-generator/github.svg)](https://agentmods.dev/skills/data-wise/craft/test-generator)
Your own site
<a href="https://agentmods.dev/skills/data-wise/craft/test-generator"><img src="https://agentmods.dev/badge/skills/data-wise/craft/test-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/data-wise/craft/test-generator"><img src="https://agentmods.dev/badge/skills/data-wise/craft/test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00977
Opus 5 $0.00032 $0.00489
Sonnet 5 $0.00013 $0.00195
Haiku 4.5 $0.00006 $0.00098

Measured 7d ago against content hash ebcf695323ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

test-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/testing/test-generator/SKILL.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Generator Skill

Generates dogfooding test suites (automated + interactive) for any project type.

When to Use

Use this skill when:

  • Setting up CLI tests for a new project
  • Creating plugin validation tests
  • Generating interactive QA test suites
  • Need both automated and manual test coverage
  • Want consistent test patterns across projects

Capabilities

Project Type Detection

Automatically detects project type and generates appropriate tests:

Project Type Detection Test Focus
CLI Tool pyproject.toml + CLI entry Commands, subcommands, exit codes, help
Claude Plugin .claude-plugin/plugin.json Structure, commands, skills, agents
Python Library pyproject.toml (no CLI) Module imports, API surface
Node Package package.json + bin CLI commands, npm scripts
R Package DESCRIPTION Package structure, exports
Shell Scripts *.sh files Script execution, options

Test Suite Generation

Generates two complementary test suites:

1. Automated Tests (automated-tests.sh)
  • Non-interactive, CI-ready
  • Exit code validation
  • Output pattern matching
  • Structure validation
  • Runs in < 60 seconds
2. Interactive Tests (interactive-tests.sh)
  • Human-guided QA
  • Expected vs actual comparison
  • Single-key responses (y/n/q)
  • Logging to tests/cli/logs/
  • Visual output validation

Test Categories by Project Type

CLI Tools:

  • Smoke tests (version, help, aliases)
  • Core commands (each subcommand)
  • Error handling (invalid commands)
  • Exit codes (success/failure)
  • Help accessibility

Claude Plugins:

  • Plugin structure (plugin.json)
  • Directory structure (commands/, skills/, agents/)
  • File counts and validity
  • Markdown syntax validation
  • Cross-reference checks

Libraries:

  • Import validation
  • API surface coverage
  • Module structure
  • Documentation presence

Usage

Basic Generation

Generate CLI tests for this project

Read the full file on GitHub · 181 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 181 lines · 63 tokens per session scan A ebcf695323ee

Subscribe to this mod's changes

test-generator is a skill published in the GitHub repository Data-Wise/craft (4 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 977 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

azure-microsoft-playwright-testing-ts

Run Playwright tests at scale using Azure Playwright Workspaces (formerly Microsoft Playwright Testing). Use when scaling browser tests across cloud-hosted browsers, integrating with CI/CD pipelines, or publishing test results to the Azure portal.

microsoft/skills · 53 tokens

playwright-ci

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

zebbern/claude-code-guide · 48 tokens

playwright-testing

E2E testing with Playwright - Page Objects, cross-browser, CI/CD.

alinaqi/maggy · 20 tokens

azure-microsoft-playwright-testing-ts

Run Playwright tests at scale using Azure Playwright Workspaces (formerly Microsoft Playwright Testing). Use when scaling browser tests across cloud-hosted browsers, integrating with CI/CD pipeline...

benjaminasterA/antigravity-awesome-skills · 44 tokens

testing-e2e

End-to-end testing patterns with Playwright — page objects, AI agent testing, visual regression, accessibility testing with axe-core, and CI integration. Use when writing E2E tests, setting up Playwright, implementing visual regression, or testing accessibility.

yonatangross/orchestkit · 55 tokens

design-ship

One-shot pipeline turning a claude.ai/design link into a pull request: scaffold via /ork:design-import, stories and specs via /ork:cover, browser verification via /ork:expect, then open the PR. Use when a design link should come back as a PR with no intermediate steps; if all you need is the components written to…

yonatangross/orchestkit · 84 tokens