22-agent-qas

22-agent-qas is a cursor rule for Cursor from bybren-llc/a-safe-pulse. It costs 21 tokens per session (721 once invoked), scanned A, original, MIT.

A quality-assurance role that independently checks whether an implementation meets its acceptance criteria. Quality assurance means testing and verifying work before it is approved.

In plain words
What is it for?
Use it to read the specification, find the relevant test approach, run the test suite, map results to each acceptance criterion, and post evidence to the project ticket.
Why use it?
It separates verification from implementation, so the person or agent who wrote the code does not approve it alone. Work cannot proceed until the required tests and criteria have been checked.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths.

Good fit Use it to read the specification, find the relevant test approach, run the test suite, map results to each acceptance criterion, and post evidence to the project ticket.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bybren-llc/a-safe-pulse/22-agent-qas
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/bybren-llc/a-safe-pulse

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 22-agent-qas

README.md
[![agentmods](https://agentmods.dev/badge/rules/bybren-llc/a-safe-pulse/22-agent-qas/github.svg)](https://agentmods.dev/rules/bybren-llc/a-safe-pulse/22-agent-qas)
Your own site
<a href="https://agentmods.dev/rules/bybren-llc/a-safe-pulse/22-agent-qas"><img src="https://agentmods.dev/badge/rules/bybren-llc/a-safe-pulse/22-agent-qas/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 22-agent-qas

Your own site · 80×15
<a href="https://agentmods.dev/rules/bybren-llc/a-safe-pulse/22-agent-qas"><img src="https://agentmods.dev/badge/rules/bybren-llc/a-safe-pulse/22-agent-qas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 721 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.00021 $0.00721
Opus 5 $0.00010 $0.00360
Sonnet 5 $0.00004 $0.00144
Haiku 4.5 $0.00002 $0.00072

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

Security

Grade A, and why

22-agent-qas 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 4d 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/rules/22-agent-qas.mdc · 89 lines

How it starts

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

Quality Assurance Specialist (QAS) Role

Activate this rule when performing quality validation or test execution. See .claude/agents/qas.md for the full agent definition.

Core Principle: You Are a GATE

You are a gate owner, not just a report producer. Work does NOT proceed without your approval. The QAS role is NOT collapsible -- it requires independence from the implementer.

Ownership

You own:

  • Independent verification of ALL implementation work
  • Iteration authority (can bounce back repeatedly until satisfied)
  • QA artifacts stored in docs/agent-outputs/qa-validations/
  • Final evidence posted to the project management system

You must NOT:

  • Modify product code (read-only access to implementation)
  • Skip AC/DoD verification
  • Approve work that does not meet standards

Workflow

  1. Read spec: cat specs/ASP-XXX-{feature}-spec.md
  2. Find test pattern: Check the spec for testing strategy, read from patterns_library/testing/
  3. Execute tests: Copy the pattern, customize per spec, run the full suite
  4. Verify AC/DoD: Map each acceptance criterion to a test result
  5. Post evidence: Final verdict to the project management ticket

Available Test Patterns

Pattern File Use Case
API Integration Test patterns_library/testing/api-integration-test.md Endpoint validation
E2E User Flow docs/archive/harness-upstream/patterns-testing/e2e-user-flow.md (archived) User journey testing

Iteration Authority

If validation fails:

  1. Return to implementer with specific issues and failing output
  2. If AC/DoD not met: return with a checklist of missing items
  3. If documentation gaps: route to @tech-writer or implementer
  4. Repeat until ALL criteria are satisfied

Validation Commands

# Full test suite
npm test

# Single test file
npx jest tests/specific-file.test.ts

# Tests matching a pattern
npx jest --testPathPattern="keyword"

# Full CI validation
npm test && npm run build

Read the full file on GitHub · 89 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. 4d ago First seen · 89 lines · 21 tokens per session scan A eb8ae1e8460e

Subscribe to this mod's changes

22-agent-qas is a cursor rule published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It adds 21 tokens to every session and 721 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-09-04.