-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add Agent QA testing Cursor rule #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pranshuchittora
wants to merge
2
commits into
PatrickJS:main
Choose a base branch
from
pranshuchittora:add-agent-qa
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| description: "Operate Agent QA from Cursor for evidence-led web and mobile testing, result triage, and scoped fixes." | ||
| globs: **/* | ||
| alwaysApply: false | ||
| --- | ||
|
|
||
| # Agent QA Testing | ||
|
|
||
| Use this rule when the user asks to operate [Agent QA](https://github.com/vostride/agent-qa) or the repository already contains a configured Agent QA workspace. Agent QA is an open-source QA agent with a CLI, MCP server, dashboard, and portable Agent Skills. | ||
|
|
||
| ## Establish the Integration | ||
|
|
||
| 1. Read the repository's testing instructions and locate its Agent QA configuration before running anything. | ||
| 2. Prefer an already configured Agent QA MCP server. The server command is `agent-qa mcp`. | ||
| 3. If MCP is unavailable but the package is installed, run `agent-qa --help` and follow the commands exposed by that installed version. Do not invent flags or subcommands. | ||
| 4. Do not initialize, overwrite, or migrate a workspace unless the user requested it and the resulting file changes are understood. | ||
|
|
||
| ## Testing Workflow | ||
|
|
||
| 1. Translate the requested behavior into observable user outcomes, including the important success path and a small number of meaningful failure paths. | ||
| 2. Reuse existing tests and project conventions before creating new coverage. | ||
| 3. Keep test data deterministic and avoid real production accounts, secrets, payments, or destructive actions. | ||
| 4. Run the narrowest relevant Agent QA test first. Expand the run only when the initial evidence justifies it. | ||
| 5. Capture the exact result, failing step, screenshot or trace reference, and relevant console or network evidence. | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Triage Before Editing | ||
|
|
||
| Classify a failure before changing code or tests: | ||
|
|
||
| - **Product defect**: the application violates the expected user outcome. | ||
| - **Test defect**: the test has a stale assumption, selector, assertion, or setup. | ||
| - **Environment issue**: the target, dependency, data, credential, device, or browser is unavailable. | ||
| - **Inconclusive**: the evidence is insufficient or contradictory. | ||
|
|
||
| Do not label every failed run as a product bug. If Agent QA self-heals a test, inspect the proposed change and confirm that it preserves the intended behavior rather than merely making the test pass. | ||
|
|
||
| ## Scoped Fixes | ||
|
|
||
| - Change application code only for an evidenced product defect. | ||
| - Change test code only for an evidenced test defect. | ||
| - Preserve unrelated behavior and existing repository conventions. | ||
| - Ask before broad dependency upgrades, schema changes, destructive data operations, or changes that weaken assertions. | ||
| - Re-run the smallest failing test after a fix, then run the relevant surrounding suite when practical. | ||
|
|
||
| ## Reporting | ||
|
|
||
| Report the command or MCP operation used, the target environment, observed outcome, evidence, classification, files changed, and validation performed. Distinguish facts from hypotheses and never claim a test passed without a completed result. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.