test-create-comprehensive

test-create-comprehensive is a cursor rule for Cursor from oakensoul/nextjs-cursor-prompts. It costs 0 tokens per session (1,107 once invoked), scanned A, original, MIT.

A prompt that coordinates unit, accessibility, and integration test creation for an application. Unit tests check small pieces, accessibility tests check use by people with disabilities, and integration tests check connected workflows.

In plain words
What is it for?
Adding tests for components, server actions, API routes, utilities, hooks, user interfaces, and end-to-end journeys.
Why use it?
It organizes several kinds of testing in one sequence while keeping production code unchanged and following the existing project patterns.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/oakensoul/nextjs-cursor-prompts/test-create-comprehensive
Clone the repo
git clone --depth 1 https://github.com/oakensoul/nextjs-cursor-prompts

Made for: Cursor.

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-create-comprehensive

README.md
[![agentmods](https://agentmods.dev/badge/rules/oakensoul/nextjs-cursor-prompts/test-create-comprehensive.svg)](https://agentmods.dev/rules/oakensoul/nextjs-cursor-prompts/test-create-comprehensive)
Your own site
<a href="https://agentmods.dev/rules/oakensoul/nextjs-cursor-prompts/test-create-comprehensive"><img src="https://agentmods.dev/badge/rules/oakensoul/nextjs-cursor-prompts/test-create-comprehensive.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.01107
Opus 5 $0.00000 $0.00553
Sonnet 5 $0.00000 $0.00221
Haiku 4.5 $0.00000 $0.00111

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

Security

Grade A, and why

test-create-comprehensive 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 5d 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.

.cursor/prompts/test/test-create-comprehensive.mdc · 132 lines

How it starts

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

Create Comprehensive Test Suite

ORCHESTRATION PROMPT: This prompt executes three focused test creation prompts to provide complete test coverage.

FOLLOW MINIMAL CHANGE PRINCIPLES: When creating tests, preserve existing code patterns and architecture. Do not modify working code - only add tests alongside existing functionality.

This prompt will create comprehensive test coverage by executing three specialized test creation prompts in sequence:

  1. Unit Tests - Core functionality testing for all components, actions, and utilities
  2. Accessibility Tests - WCAG compliance testing for all UI components
  3. Integration Tests - End-to-end workflow testing for complex user journeys

Phase 1: Unit Tests

Execute .cursor/prompts/test/test-create-unit.mdc for comprehensive unit test coverage:

  • Components, server actions, API routes, utilities, hooks
  • Core functionality testing with vitest framework
  • Minimum 80% coverage across all metrics

Phase 2: Accessibility Tests

Execute .cursor/prompts/test/test-create-a11y.mdc for WCAG compliance testing:

  • All UI components that render to DOM
  • WCAG 2.1 AA compliance verification
  • Keyboard navigation and screen reader testing

Phase 3: Integration Tests

Execute .cursor/prompts/test/test-create-integration.mdc for end-to-end workflows:

  • Complex user journeys and multi-component interactions
  • API integration testing with MSW mocking
  • State management and cross-component communication

🧪 EXECUTION COMMANDS

Execute these prompts in sequence for complete test coverage:

# Phase 1: Create unit tests
Create comprehensive unit tests following .cursor/prompts/test/test-create-unit.mdc for [target files/directory]

# Phase 2: Create accessibility tests  
Create accessibility tests following .cursor/prompts/test/test-create-a11y.mdc for [target UI components]

# Phase 3: Create integration tests
Create integration tests following .cursor/prompts/test/test-create-integration.mdc for [complex workflows]

Read the full file on GitHub · 132 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. 5d ago First seen · 132 lines · 0 tokens per session scan A ddb70a250efd

Subscribe to this mod's changes

test-create-comprehensive is a cursor rule published in the GitHub repository oakensoul/nextjs-cursor-prompts (4 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,107 tokens. 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.