generate-tests

generate-tests is a command for Claude Code from navraj007in/architecture-cowork-plugin. It costs 20 tokens per session (3,089 once invoked), scanned A, original, Apache-2.0.

A test-suite generator for unit tests, integration tests, and end-to-end tests. Unit tests check small pieces, integration tests check parts working together, and end-to-end tests check complete user journeys.

In plain words
What is it for?
Use it to generate tests for individual modules, database and service connections, queues and APIs, or important user flows, with optional coverage targets.
Why use it?
It adds test coverage to a newly scaffolded project, reducing the need to write the main layers of tests by hand.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the architect plugin — 48 skills, 63 commands, 19 agents, 7 MCP servers shipped together

Good fit Use it to generate tests for individual modules, database and service connections, queues and APIs, or important user flows, with optional coverage targets.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/navraj007in/architecture-cowork-plugin/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.

Clone the repo
git clone --depth 1 https://github.com/navraj007in/architecture-cowork-plugin

Made for: Claude Code.

Or install architect, the plugin that ships this one along with the rest of its 48 skills, 63 commands, 19 agents, 7 MCP servers.

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/commands/navraj007in/architecture-cowork-plugin/generate-tests/github.svg)](https://agentmods.dev/commands/navraj007in/architecture-cowork-plugin/generate-tests)
Your own site
<a href="https://agentmods.dev/commands/navraj007in/architecture-cowork-plugin/generate-tests"><img src="https://agentmods.dev/badge/commands/navraj007in/architecture-cowork-plugin/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/commands/navraj007in/architecture-cowork-plugin/generate-tests"><img src="https://agentmods.dev/badge/commands/navraj007in/architecture-cowork-plugin/generate-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,089 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.00020 $0.03089
Opus 5 $0.00010 $0.01545
Sonnet 5 $0.00004 $0.00618
Haiku 4.5 $0.00002 $0.00309

Measured 11d ago against content hash 0c5af1c1be61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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.

commands/generate-tests.md · 311 lines

How it starts

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

/architect:generate-tests

Trigger

/architect:generate-tests — generate all test types (default).

/architect:generate-tests [type:X] — generate one test type only.

/architect:generate-tests [types:X,Y] — generate a named subset.

Test types

Type What it generates
unit Unit tests per module (pure functions, services, utils)
integration Integration tests per service (DB, API, queue interactions)
e2e End-to-end tests per critical user flow

Examples:

/architect:generate-tests [type:unit]
/architect:generate-tests [types:unit,integration]
/architect:generate-tests [type:e2e] [non_interactive:true]

When a [type:...] or [types:...] tag is present, generate only the named test types and skip all others. When absent, generate all types.

Options

  • [non_interactive:true] — skip all questions, derive from SDL and existing project
  • [coverage_target:NN] — override coverage target (default: 80)

Purpose

After /architect:scaffold creates a project, services have no test coverage. This command generates production-ready test suites with unit tests (per module), integration tests (per service), and e2e tests (per critical flow). Scaffolds follow testing-strategy skill conventions: AAA structure, mock patterns, fixture setup, and coverage thresholds by stage.

Workflow

Quick Navigation

Phase Steps
Setup Step 1 · Step 1.5
Configuration Step 2 · Step 2.5
Generation Step 3 · Step 3.5
Completion Step 4 · Step 4.5 · Step 5

Step 1: Read Context & Check for Scaffolded Project

ℹ️ CONTEXT LOADING: _state.json → SDL → scaffolded components

Read the full file on GitHub · 311 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. 11d ago First seen · 311 lines · 20 tokens per session scan A 0c5af1c1be61

Subscribe to this mod's changes

generate-tests is a command published in the GitHub repository navraj007in/architecture-cowork-plugin (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 3,089 once invoked, about $0.0001 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.