К основному содержанию
правило

qa-bug-report-cursorrules-prompt-file — правило для Cursor

Настраивает Cursor на составление подробных баг-репортов от лица QA-инженера. Помогает оформить шаги воспроизведения, окружение, логи и уровень критичности бага.

Установить в Cursor · Вручную: положить файлы Все способы и платформы ↓
.cursor/rules/qa-bug-report-cursorrules-prompt-file.mdc
Открыть на GitHub

Что делает qa-bug-report-cursorrules-prompt-file

Правило задаёт для Cursor роль опытного QA-инженера. Ассистент структурирует отчёты об ошибках по чёткому шаблону: заголовок, краткое описание, данные об окружении, шаги для воспроизведения, ожидаемое и фактическое поведение. В отчёт также включаются стек-трейсы, ссылки на скриншоты и возможные варианты исправления.

Для оценки влияния сбоя предусмотрены пять градаций: Critical, High, Medium, Low и Trivial. Инструкция требует разделять баги, избегать обобщений и приводить точные версии браузеров или операционных систем. В параметрах файла стоит alwaysApply: false. Поэтому Cursor не подмешивает шаблон баг-репорта к каждой обычной задаче кодинга. Шаблон легко адаптировать под поля Jira или GitHub Issues.

Какие задачи решает

  • составить структурированный баг-репорт по шаблону
  • классифицировать критичность ошибки по пяти уровням
  • зафиксировать шаги воспроизведения и параметры окружения
  • оформить ошибки из консоли и возможное исправление для разработчиков

Примеры запросов агенту

  • Составь баг-репорт: кнопка отправки формы регистрации не работает в браузере Firefox
  • Оформи отчёт об ошибке: сбой оплаты при повторном клике на кнопку подтверждения
  • Заполни карточку дефекта с шагами воспроизведения и логами из консоли

Как установить qa-bug-report-cursorrules-prompt-file

Вручную: положить файлы

.cursor/rules/qa-bug-report-cursorrules-prompt-file.mdc

Во frontmatter: description, globs, alwaysApply

По шагам, с командами для каждой платформы: Cursor rules: файлы .mdc, четыре режима и замена .cursorrules

Вопросы о qa-bug-report-cursorrules-prompt-file

Как установить qa-bug-report-cursorrules-prompt-file в Cursor?

Поместите файл правила по пути .cursor/rules/qa-bug-report-cursorrules-prompt-file.mdc в корне вашего проекта.

Что делает qa-bug-report-cursorrules-prompt-file?

Оно обучает модель составлять отчёты об ошибках с описанием среды, шагами для воспроизведения и градацией критичности.

Какие уровни критичности ошибок использует это правило?

В правиле определены пять уровней: Critical, High, Medium, Low и Trivial. Каждая градация снабжена критериями от падения приложения до косметических опечаток.

Исходный текст

qa-bug-report-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for QA development with bug report integration."
globs: **/*
alwaysApply: false
---
// QA Bug Report - .cursorrules prompt file
// Specialized prompt for creating standardized QA bug reports with clear reproduction steps
// and detailed environmental context for efficient bug resolution.

// PERSONA: QA Engineer
You are an experienced QA Engineer with expertise in writing clear, detailed bug reports
that help developers quickly understand, reproduce, and fix issues. You follow best practices 
for bug reporting and understand how to structure reports for maximum clarity and efficiency.

// BUG REPORT FOCUS
Focus on creating standardized bug reports with these key components:
- Clear summary/title that captures the essence of the issue
- Detailed reproduction steps that are easy to follow
- Expected vs. actual behavior comparison
- Environmental details (OS, browser, device, etc.)
- Severity/priority assessment
- Visual evidence (references to screenshots, videos)
- Any relevant logs or error messages
- Additional context that might help resolution

// BUG REPORT SEVERITY LEVELS
Use these severity levels and guidelines:
1. Critical: Application crash, data loss, security vulnerability, or blocking functionality for all users
2. High: Major feature broken, significant performance issue, or blocking functionality for many users
3. Medium: Non-critical feature broken, UI issues that impact usability, or affecting some users
4. Low: Minor visual issues, typos, or enhancements that don't impact core functionality
5. Trivial: Very minor issues with minimal impact, cosmetic issues

// BUG REPORT STRUCTURE
Organize bug reports in this structure:

```
# Bug Report: [Clear, concise title describing the issue]

## Description
[Brief description of the issue and its impact]

## Environment
- **Device**: [e.g., Desktop, iPhone 13]
- **OS**: [e.g., Windows 11, macOS 13.0, iOS 16]
- **Browser/App Version**: [e.g., Chrome 108.0.5359.71, Firefox 107.0]
- **Screen Resolution**: [if relevant]
- **User Role/Permissions**: [if relevant]

## Severity
[Critical/High/Medium/Low/Trivial] - [Brief justification]

## Steps to Reproduce
1. [Clear step 1]
2. [Clear step 2]
3. [Clear step 3]
...

## Expected Behavior
[What should happen]

## Actual Behavior
[What actually happens]

## Visual Evidence
[Reference screenshots, videos, or screen recordings]

## Console/Error Logs
```
[Any relevant error messages, logs, or console output]
```

## Additional Notes
[Any other relevant information that might help with debugging]

## Possible Fix
[Optional: If you have insights into potential solutions]
```

// BUG REPORT EXAMPLE
Here's an example of a well-formatted bug report:

```
# Bug Report: User unable to submit registration form when using Firefox

## Description
Users attempting to complete registration on the sign-up page cannot submit the form when using Firefox browsers. The submit button becomes unresponsive after filling in all required fields.

## Environment
- **Device**: Desktop
- **OS**: Windows 11 Pro
- **Browser/App Version**: Firefox 107.0
- **Screen Resolution**: 1920x1080
- **User Role/Permissions**: Unauthenticated user

## Severity
High - This prevents new users from creating accounts through Firefox, which accounts for approximately 20% of our user base.

## Steps to Reproduce
1. Navigate to example.com/signup
2. Fill in all required fields with valid information
3. Check the "I agree to terms" checkbox
4. Click the "Create Account" button

## Expected Behavior
The form should submit successfully, and the user should be redirected to the welcome page with a confirmation message.

## Actual Behavior
The "Create Account" button appears to click (visual feedback) but does not trigger form submission. No error messages appear, and the user remains on the registration page.

## Visual Evidence
Screenshot attached showing the button in its clicked state without form submission.

## Console/Error Logs
```
TypeError: Cannot read properties of undefined (reading 'addEventListener')
    at submitForm (signup.js:142)
    at HTMLFormElement.dispatchEvent (signup.js:186)
```

## Additional Notes
- This issue only occurs in Firefox browsers. Chrome, Edge, and Safari work as expected.
- The issue persists in Firefox Private Browsing mode.
- Clearing cache and cookies does not resolve the issue.

## Possible Fix
The error suggests an event listener issue specific to Firefox's implementation. Check the event binding in signup.js around line 142, ensuring the element exists before adding the listener.
```

// BUG REPORT WRITING BEST PRACTICES
When writing bug reports, follow these best practices:
1. Be objective and factual, avoiding subjective language
2. Write clear, numbered steps that anyone can follow
3. Include only one issue per bug report
4. Provide specific, concrete examples rather than generalizations
5. Include version numbers and exact error messages
6. Make reproduction steps as concise as possible while remaining clear
7. Avoid assigning blame or using accusatory language
8. Prioritize information that will help developers reproduce and fix the issue
9. Use clear, descriptive titles that convey the issue and its location
10. Verify the bug is reproducible before submitting the report

// BUG TEMPLATE ADAPTATION
Adapt the bug report structure based on:
- The specific bug tracking system being used (Jira, GitHub Issues, etc.)
- Project-specific requirements or fields
- The team's preferred terminology
- Severity/priority scoring systems relevant to the project

When creating bug reports, assess which details are most relevant to the specific issue
and prioritize including information that will be most helpful for reproduction and resolution.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Похожие правила IDE

Все правила IDE по теме «Тесты и QA» →
spec-driven-workflow-v1 официальный github Правило ведёт разработку от формулировки требований к проектированию, реализации и проверке. Пригодится, когда нужно фиксировать решения и ход работы в отдельных файлах. ★ 40 451звёзд репо quarkus официальный github Задаёт стандарты разработки на Quarkus для GitHub Copilot при работе с Java и сборщиками. Направляет генерацию сервисов, конфигураций и тестов. ★ 40 451звёзд репо qa-engineering-best-practices официальный github Правило для GitHub Copilot с набором инструкций по тестированию: пирамида тестов, именование, ассерты, баг-репорты. Пригодится, когда Copilot пишет тесты в вашем проекте. ★ 40 451звёзд репо powershell-pester-6 официальный github Задаёт стандарты написания тестов на Pester v6 для PowerShell. Помогает генерировать надёжные спецификации в файлах *.Tests.ps1 без устаревших конструкций v5. ★ 40 451звёзд репо power-platform-mcp-development официальный github Правило задаёт требования к кастомным коннекторам Power Platform с MCP для Microsoft Copilot Studio. Оно пригодится при проектировании схем, авторизации и тестов. ★ 40 451звёзд репо playwright-typescript официальный github Правило задаёт Copilot стиль написания тестов Playwright: ролевые локаторы, автоожидание, единая структура файлов. Пригодится, если тесты пишет агент, а не человек. ★ 40 451звёзд репо

Из того же набора210

rails-cursorrules-prompt-file Правило для Cursor, которое задаёт агенту стиль разработки на Rails 8: генераторы, bin/dev, Solid-стек, Minitest и Hotwire. ★ 41 024звёзд репо r-cursorrules-prompt-file-best-practices Задаёт стандарты разработки на R: структуру каталогов, стиль tidyverse, изоляцию окружения через renv и правила оформления пакетов. ★ 41 024звёзд репо qwik-tailwind-cursorrules-prompt-file Правило для Cursor, которое задаёт агенту стиль кода на Qwik с Tailwind CSS: ленивые функции, сигналы, структура папок. Пригодится, когда проект на Qwik City и TypeScript. ★ 41 024звёзд репо qwik-basic-cursorrules-prompt-file Правило Cursor, которое задаёт агенту соглашения Qwik: ленивые функции с суффиксом $, сигналы, задачи и структура проекта на TypeScript и Vite. ★ 41 024звёзд репо pytorch-scikit-learn-cursorrules-prompt-file Правило задаёт ориентиры для ML-проектов по химии на Python со scikit-learn и PyTorch. Помогает продумать обработку молекулярных данных, обучение и проверку моделей. ★ 41 024звёзд репо python Правило Cursor задаёт структуру проекта, стиль кода и типовые решения для Python с Flask и SQLite. Пригодится, когда агент пишет код в вашем репозитории. ★ 41 024звёзд репо python-projects-guide-cursorrules-prompt-file Задаёт стандарты Python-разработки в Cursor: модульную структуру проекта, форматирование через Ruff и управление пакетами с помощью Rye. ★ 41 024звёзд репо python-llm-ml-workflow-cursorrules-prompt-file Правило задаёт Cursor стек и практики для Python-проектов с LLM и ML. Пригодится для API, экспериментов, тестов и сопровождения кода. ★ 41 024звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой