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/sowee121/frontend-interview-vue/20-qa-json-contentgit clone --depth 1 https://github.com/sowee121/frontend-interview-vueWrote 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/sowee121/frontend-interview-vue/20-qa-json-content)<a href="https://agentmods.dev/rules/sowee121/frontend-interview-vue/20-qa-json-content"><img src="https://agentmods.dev/badge/rules/sowee121/frontend-interview-vue/20-qa-json-content.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.1 | $0.00000 | $0.00385 |
| Opus 5 | $0.00000 | $0.00192 |
| Sonnet 5 | $0.00000 | $0.00077 |
| Haiku 4.5 | $0.00000 | $0.00038 |
Grade A, and why
20-qa-json-content 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 6d 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
QA JSON 内容规则(核心维护入口)
- 结构必须匹配类型:遵循
src/types/qa-content.ts的ChapterPayload/QaItem/RichSegment;章节可选leadLink: { href, label }(导语末尾外链,如 ES6 章对照教程)。 - 禁止 HTML 字符串:答案只用
RichSegment(text/strong/code),不要在 JSON 里塞<p>、<br>等。 - 段落粒度:
answer外层数组代表段落;单段中文叙述尽量 ≤120 字,过长必须拆段。 - 分步写法:
1)2)3)每步占一个段落(一个answer[]元素),不要在同段用;2)串联。 - 缩写与术语:首次出现必须带中文释义(如「跨站脚本攻击(XSS)」);不要堆缩写墙。
- 编程题(coding 章):通常用“单段 code”承载函数实现;解释性内容放
questionNote或另起段落。 - 维护与自检:改完文案后运行
node scripts/lint-qa-copy.mjs;重排题目顺序用node scripts/reorder-qa-chapters.mjs;Agent 章种子数据见scripts/seed-agent-chapter.mjs(勿在无需求时重跑覆盖手工修订)。
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.
- 6d ago First seen · 17 lines · 0 tokens per session scan A c6c10301bb4a
20-qa-json-content is a cursor rule published in the GitHub repository sowee121/frontend-interview-vue (4 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 385 tokens. 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
prefer-assertions-over-defensive-checks
Prefer assertions over defensive checks when data is guaranteed to be valid.
as-contract-cast-smell
// ❌ WRONG — bypasses the family ContractSerializer seam const contract = JSON.parse(raw) as Contract; const contract = JSON.parse(raw) as Contract .
no-family-vocabulary-in-framework
The framework domain (packages/1-framework) carries no family- or target-specific vocabulary — types, fields, hooks, or strategy values. Enforced by the no-family-vocabulary Biome plugin plus lint:framework-vocabulary.
use-contract-ir-factories
Use factory functions for creating ContractIR objects instead of manual object creation.
interface-factory-pattern
Interface-based design with factory functions (keep classes private).
explicit-opt-in-over-diagnostics
Prefer requiring explicit opt-in over emitting diagnostics on intentional user paths.