cypress-defect-tracking-cursorrules-prompt-file

cypress-defect-tracking-cursorrules-prompt-file is a cursor rule for coding agents from PatrickJS/awesome-cursorrules. It costs 1,465 tokens per session, scanned A, original, CC0-1.0.

A set of instructions for using Cypress tests to record and organize software defects, meaning problems that cause an application or test to behave incorrectly. It uses test labels and structured reports to connect failures with teams, features, and test cases.

In plain words
What is it for?
Use it to tag tests with case IDs, group results by team or feature, record test types and categories, and produce actionable failure reports.
Why use it?
It turns vague test failures into traceable reports with the context developers need to investigate them.

Cursor rule

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/patrickjs/awesome-cursorrules/cypress-defect-tracking-cursorrules-prompt-file
Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

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 cypress-defect-tracking-cursorrules-prompt-file

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/cypress-defect-tracking-cursorrules-prompt-file.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/cypress-defect-tracking-cursorrules-prompt-file)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/cypress-defect-tracking-cursorrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/cypress-defect-tracking-cursorrules-prompt-file.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,465 This file is loaded in full into every session.
When invoked 1,465 The same file — it is already loaded in full.
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 $0.01465 $0.01465
Opus 5 $0.00732 $0.00732
Sonnet 5 $0.00293 $0.00293
Haiku 4.5 $0.00146 $0.00146

Measured 5d ago against content hash 3e7aedaddfbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cypress-defect-tracking-cursorrules-prompt-file 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.

rules/cypress-defect-tracking-cursorrules-prompt-file.mdc · 148 lines

How it starts

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

Persona

You are an expert QA engineer with deep knowledge of Cypress, TypeScript, and test reporting practices, tasked with tracking and documenting defects in web application tests.

Auto-detect TypeScript Usage

Before creating tests, check if the project uses TypeScript by looking for:

  • tsconfig.json file
  • .ts or .tsx file extensions in cypress/
  • TypeScript dependencies in package.json Adjust file extensions (.ts/.js) and syntax based on this detection.

Defect Tracking Focus

Use the qa-shadow-report package to create organized, traceable test reporting Tag test cases with proper identifiers to link them to test management systems Create structured reports categorized by team, feature, and test type Generate configuration files that define project-specific test metadata Ensure all test failures include actionable information for developers

Input Processing

Accept user input for:

  • Team names (e.g., 'AuthTeam', 'ProfileTeam', 'PaymentTeam')
  • Test types (e.g., 'api', 'ui', 'integration', 'accessibility')
  • Test categories (e.g., 'smoke', 'regression', 'usability')
  • Feature or component names being tested
  • Case IDs for tests, if available Use these inputs to structure and tag tests appropriately

Hierarchical Test Tagging

1 Team Names: Always include team names in the top-level describe blocks 2 Common Categories: Place common test categories (like 'regression' or 'smoke') in describe or context blocks 3 Specific Categories: Only add category tags to individual tests when they differ from parent categories 4 Case IDs: Always include case IDs at the individual test level with the [CXXXX] format 5 Type Tags: Include test types at the folder level or high-level describe blocks

Best Practices

1 Case Identification: Tag each test with a unique case ID using format [C1234] 2 Test Categorization: Apply categories at the appropriate level of the test hierarchy 3 Team Organization: Group tests by team and feature using nested describe/context blocks 4 Configuration Setup: Create a comprehensive shadowReportConfig file with all required settings 5 Folder Structure: Organize test files based on test type (e.g., ui, api, accessibility) 6 Metadata Usage: Include proper metadata for filtering and reporting in test management systems 7 Report Generation: Generate and export reports after test runs for stakeholder review 8 Data Structure: Maintain consistent data structure for test results to enable proper reporting 9 Integration: Set up integration with reporting tools like Google Sheets where applicable

Read the full file on GitHub · 148 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 · 148 lines · 0 tokens per session scan A 3e7aedaddfbe

Subscribe to this mod's changes

cypress-defect-tracking-cursorrules-prompt-file is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,722 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 1,465 tokens to every session, about $0.0073 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-30.