generate-tests

generate-tests is a skill for Claude Code from makigjuro/cloudstack-ai-plugins. It costs 42 tokens per session (1,757 once invoked), scanned A, original, MIT.

A coding skill that creates unit tests and integration tests for commands, queries, entities, event handlers, or other named classes. Integration tests check how multiple parts work together and can use Testcontainers for temporary services.

In plain words
What is it for?
Use it to test newly created handlers and entities, add integration coverage, increase coverage across a microservice, or verify endpoint behavior.
Why use it?
It removes the need to plan and write the basic test structure from scratch. It analyzes the target and prepares scenarios, mocks, assertions, and—when requested—tests for untested handlers across a service.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dotnet-architect plugin — 7 skills, 1 agent shipped together

Good fit Use it to test newly created handlers and entities, add integration coverage, increase coverage across a microservice, or verify endpoint behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makigjuro/cloudstack-ai-plugins/generate-tests
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 makigjuro/cloudstack-ai-plugins --skill generate-tests
Clone the repo
git clone --depth 1 https://github.com/makigjuro/cloudstack-ai-plugins

Made for: Claude Code.

Or install dotnet-architect, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/generate-tests"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/generate-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,757 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.00042 $0.01757
Opus 5.5 $0.00017 $0.00703
Sonnet 5.5 $0.00008 $0.00351
Haiku 4.5 $0.00004 $0.00176

Measured 1mo ago against content hash 855ad2316315, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-tests 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 1mo 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.

plugins/dotnet-architect/skills/generate-tests/SKILL.md · 232 lines

How it starts

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

Generate Tests

Generate unit and integration tests following project conventions. Analyzes the target code, identifies test scenarios, and scaffolds test classes with proper mocking and assertions.

Arguments

  • {target} -- Handler, entity, or class name to test (e.g., CreateOrderHandler, Order, OrderEndpoints)
  • {service} -- Target microservice (optional, auto-detected from file location)
  • --integration -- Also generate integration tests with Testcontainers
  • --coverage -- Generate tests for all untested handlers in a service

Configuration

Read cloudstack.json from the project root at the start of execution. Extract:

  • NAMESPACE = project.namespace (default: detect from *.sln)
  • SERVICES = backend.services[] (default: discover from project structure)
  • SOLUTION = backend.solutionPath (default: find *.sln)
  • MESSAGING = backend.messaging (default: wolverinefx)
  • RESULT_PATTERN = backend.resultPattern (default: true)

If cloudstack.json does not exist, auto-detect by scanning the project structure.

Process

Step 1: Locate the target

# Find the file containing the target class
grep -rl "class {target}" src/ --include="*.cs" | head -5

Read the target file completely. Identify:

  • Is it a command handler? (method returns Result<T>, takes a command record)
  • Is it a query handler? (method returns Result<T>, takes a query record)
  • Is it an entity? (inherits from Entity<TId> or AggregateRoot<TId>)
  • Is it an event handler? (handles domain/integration events)
  • Is it an endpoint? (static class with MapEndpoints)

Step 2: Analyze dependencies

Read the constructor to find injected dependencies:

grep -A 20 "class {target}" <file> | grep -E "private readonly|ILogger|I[A-Z]"

For each dependency, determine:

  • Repository interfaces → mock with NSubstitute
  • External services → mock with NSubstitute
  • ILogger → mock or use NullLogger
  • DbContext → use in-memory for unit, Testcontainers for integration

Read the full file on GitHub · 232 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. 1mo ago First seen · 232 lines · 42 tokens per session scan A 855ad2316315

Subscribe to this mod's changes

generate-tests is a skill published in the GitHub repository makigjuro/cloudstack-ai-plugins (1 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 1,757 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories