20-qa-json-content

20-qa-json-content is a cursor rule for Cursor from sowee121/frontend-interview-vue. It costs 0 tokens per session (385 once invoked), scanned A, original, MIT.

A set of rules for writing the handbook's question-and-answer data as structured JSON segments instead of HTML strings.

In plain words
What is it for?
It is for adding or editing questions, answers, chapter links, code examples, and checking the finished copy with the project's lint script.
Why use it?
It keeps answers renderable and readable, while making terminology, paragraph length, steps, and code formatting consistent.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

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.

agentmods
npx agentmods add rules/sowee121/frontend-interview-vue/20-qa-json-content
Clone the repo
git clone --depth 1 https://github.com/sowee121/frontend-interview-vue

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 20-qa-json-content

README.md
[![agentmods](https://agentmods.dev/badge/rules/sowee121/frontend-interview-vue/20-qa-json-content.svg)](https://agentmods.dev/rules/sowee121/frontend-interview-vue/20-qa-json-content)
Your own site
<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>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 385 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.00385
Opus 5 $0.00000 $0.00192
Sonnet 5 $0.00000 $0.00077
Haiku 4.5 $0.00000 $0.00038

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

Security

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.

.cursor/rules/20-qa-json-content.mdc · 17 lines

What it actually says

QA JSON 内容规则(核心维护入口)

  • 结构必须匹配类型:遵循 src/types/qa-content.tsChapterPayload/QaItem/RichSegment;章节可选 leadLink: { href, label }(导语末尾外链,如 ES6 章对照教程)。
  • 禁止 HTML 字符串:答案只用 RichSegmenttext/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(勿在无需求时重跑覆盖手工修订)。
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. 6d ago First seen · 17 lines · 0 tokens per session scan A c6c10301bb4a

Subscribe to this mod's changes

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.