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.
npx agentmods add rules/vlad-ryzhkov/ai-context-engineering-for-qa/ace-reflectiongit clone --depth 1 https://github.com/vlad-ryzhkov/ai-context-engineering-for-qaWrote 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.
[](https://agentmods.dev/rules/vlad-ryzhkov/ai-context-engineering-for-qa/ace-reflection)<a href="https://agentmods.dev/rules/vlad-ryzhkov/ai-context-engineering-for-qa/ace-reflection"><img src="https://agentmods.dev/badge/rules/vlad-ryzhkov/ai-context-engineering-for-qa/ace-reflection.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00350 | $0.00350 |
| Opus 5 | $0.00175 | $0.00175 |
| Sonnet 5 | $0.00070 | $0.00070 |
| Haiku 4.5 | $0.00035 | $0.00035 |
Grade A, and why
ace-reflection 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.
What it actually says
Reflection Protocol — Structured Failure Analysis
Trigger
Activates when:
- Skill ends with
SKILL PARTIALorLOOP_GUARD_TRIGGERED - User explicitly says "reflect" / "what went wrong"
Algorithm
- Identify root cause (not symptom) of the failure
- Formulate exactly 1 rule:
- RULE: [prohibition/requirement]. Reason: [why]. Source: [skill, date] - Dedup check: Grep
CLAUDE.md,qa-antipatterns/, relevantSKILL.mdfor keyword overlap - If rule is genuinely new → append to
.ai-lessons/pending.md(Delta Update: append only) - If duplicate → output "Existing rule covers this: [ref]"
Output Format (mandatory)
REFLECTION
|- Root cause: [specific technical reason]
|- New rule: [yes/no — if yes, appended to .ai-lessons/pending.md]
|- Ref: [existing rule path if duplicate]
Rules
- One reflection per failure — do not batch multiple root causes
- Root cause must be specific and technical, not "something went wrong"
- Formulate rules as prohibitions or requirements, never wishes
- FORBIDDEN: rewriting
.ai-lessons/pending.md— append only (Delta Update Protocol) - If the failure is caused by external factors (network, missing dependency) — note it but do not create a rule
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.
- 4d ago First seen · 41 lines · 350 tokens per session scan A 6dfef16867ae
ace-reflection is a cursor rule published in the GitHub repository vlad-ryzhkov/ai-context-engineering-for-qa (6 stars, last pushed 28d ago), licensed Unlicense. It adds 350 tokens to every session, about $0.0018 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-31.
Other cursor rules, from other repositories
00-project-context
Cursor rule "00-project-context" from vlad-ryzhkov/AI-QA-workshop-feb19, covering project context bridge, core instruction and critical behavior.
01-qa-agent
QA AGENT PERSONA: Principles, Anti-patterns, workflows.
04-skill-api-tests
SKILL: Generate Ktor/JUnit API Tests (use for /api-tests).
05-skill-screenshot-analyze
SKILL: Analyze UI Screenshots for defects & L10N (use for /screenshot-analyze).
11-skill-init-skill
SKILL: Generate New Skills with Interactive Workflow (use for /init-skill).
12-skill-repo-scout
SKILL: Scan Backend Repo & Catalog API Surface (use for /repo-scout).