generate-tests-module

generate-tests-module is a skill for Claude Code from radumarias/xorio-claude-plugin. It costs 30 tokens per session (707 once invoked), scanned A, original, MIT.

A coding tool that creates unit tests for individual functions and integration tests for parts that work together. It examines a chosen file, folder, or module and adapts the tests to the detected language and framework.

In plain words
What is it for?
Use it to generate tests for a specific file, directory, or module in Rust, TypeScript, or Python projects, including projects using supported frameworks such as React, Vue.js, Three.js, SparkJS, egui, or Docker.
Why use it?
It reduces the manual work of deciding what to test and writing the initial test cases. It also helps when a code area has little or no test coverage.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the xorio plugin — 9 skills, 10 commands, 4 agents, 2 hooks shipped together

Good fit Use it to generate tests for a specific file, directory, or module in Rust, TypeScript, or Python projects, including projects using supported frameworks such as React, Vue.js, Three.js, SparkJS, egui, or Docker.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add radumarias/xorio-claude-plugin
Claude Code
/plugin install xorio

Made for: Claude Code.

Or install xorio, the plugin that ships this one along with the rest of its 9 skills, 10 commands, 4 agents, 2 hooks.

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 generate-tests-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/radumarias/xorio-claude-plugin/generate-tests-module/github.svg)](https://agentmods.dev/skills/radumarias/xorio-claude-plugin/generate-tests-module)
Your own site
<a href="https://agentmods.dev/skills/radumarias/xorio-claude-plugin/generate-tests-module"><img src="https://agentmods.dev/badge/skills/radumarias/xorio-claude-plugin/generate-tests-module/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 generate-tests-module

Your own site · 80×15
<a href="https://agentmods.dev/skills/radumarias/xorio-claude-plugin/generate-tests-module"><img src="https://agentmods.dev/badge/skills/radumarias/xorio-claude-plugin/generate-tests-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 707 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.00030 $0.00707
Opus 5 $0.00015 $0.00353
Sonnet 5 $0.00006 $0.00141
Haiku 4.5 $0.00003 $0.00071

Measured 8d ago against content hash 668dd1ad4ffe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

generate-tests-module 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 8d 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/generate-tests-module/SKILL.md · 82 lines

How it starts

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

Generate Tests for a Module

Generate unit and integration tests for a specific file, directory, or module.

Workflow

Step 1: Validate Target

Verify that $ARGUMENTS specifies a valid path. If no path is provided, ask the user for one.

Check the path exists (file or directory). If it's a directory, it will be scanned recursively for source files.

Step 2: Detect Languages and Frameworks

From the target files, detect:

Languages:

  • .rs files or Cargo.toml in parent hierarchy → Rust
  • .ts/.tsx files or package.json in parent hierarchy → TypeScript
  • .py files or pyproject.toml/setup.py in parent hierarchy → Python

Frameworks (check dependency files for these strings):

  • Cargo.toml contains eguiegui (only if target files import/use egui)
  • package.json contains reactReact (only if target files import react)
  • package.json contains vueVue.js (only if target files import vue)
  • package.json contains threeThree.js (only if target files import three)
  • package.json contains sparkSparkJS (only if target files import spark)
  • Dockerfile or docker-compose.yml in target path → Docker
  • AWS SDK imports in target files → AWS

Step 3: Load Standards

Read ONLY the matching standards files:

  • Language: ${CLAUDE_PLUGIN_ROOT}/skills/tests/references/test-standards-{language}.md
  • Framework: ${CLAUDE_PLUGIN_ROOT}/skills/tests/references/test-standards-{framework}.md

Only load framework standards if the target files actually use that framework.

Step 4: Analyze

Launch the test-analyzer agent with:

  • Scope: "module" — include the target path
  • The matching language + framework standards content
  • Instruction to analyze only the specified module

Step 5: Present Gap Analysis

Show the user the prioritized gap list ranked by risk:

  • Critical gaps first
  • Include existing test coverage summary
  • Note any test infrastructure found (helpers, fixtures)

Read the full file on GitHub · 82 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. 8d ago First seen · 82 lines · 30 tokens per session scan A 668dd1ad4ffe

Subscribe to this mod's changes

generate-tests-module is a skill published in the GitHub repository radumarias/xorio-claude-plugin (3 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 707 once invoked, about $0.0002 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-08-31.