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.
git clone --depth 1 https://github.com/mikonos/cursor-skill-infraWrote 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/mikonos/cursor-skill-infra/single-source-of-truth)<a href="https://agentmods.dev/rules/mikonos/cursor-skill-infra/single-source-of-truth"><img src="https://agentmods.dev/badge/rules/mikonos/cursor-skill-infra/single-source-of-truth/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.
<a href="https://agentmods.dev/rules/mikonos/cursor-skill-infra/single-source-of-truth"><img src="https://agentmods.dev/badge/rules/mikonos/cursor-skill-infra/single-source-of-truth.svg" alt="Reviewed on agentmods" width="80" 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.00289 | $0.00289 |
| Opus 5.5 | $0.00116 | $0.00116 |
| Sonnet 5.5 | $0.00058 | $0.00058 |
| Haiku 4.5 | $0.00029 | $0.00029 |
Grade A, and why
single-source-of-truth 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 3mo 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
单一真源(Canonical)与运行时(Runtime)
建议维护方式:
- 真源(canonical):把你要开源/版本化的 Cursor 配置放在仓库目录(例如本仓库的
cursor/) - 运行时(runtime):你的项目实际让 Cursor 消费的是
.cursor/
强制规则
- 不要同时编辑两份“同名文件”:例如同时打开
cursor/skill-rules.json与.cursor/skill-rules.json - 优先编辑真源:改完后再同步到
.cursor/ .cursor/当作运行时入口,不当作长期维护入口:除非你明确不做版本化
常见冲突处理(Save / Don’t Save)
当你关闭 tab 看到 “file is newer / Do you want to save…”:
- 如果你只是误开/内容不完整:
- 选 Don’t Save
- 关闭 tab,回到真源继续编辑
- 如果你确认改动有效:
- 选 Save
- 立刻关闭另一份同名文件 tab(避免二次冲突)
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.
- 3mo ago First seen · 30 lines · 289 tokens per session scan A 1ff4507b6c96
single-source-of-truth is a cursor rule published in the GitHub repository mikonos/cursor-skill-infra (2 stars, last pushed 10mo ago), licensed MIT. It adds 289 tokens to every session, about $0.0012 per session on Opus 5.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.
single-source-of-truth compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| single-source-of-truthmikonos/cursor-skill-infra | Cursor rule | 2 | 10mo ago | MIT | A | 289 | Cursor |
| irisils15/pantheon-legacy | Cursor rule | 12 | 18d ago | MIT | A | 43 | Cursor |
| rebase-only-merged-agentsbriangmilnes/APAS-VERUS | Cursor rule | 10 | 2mo ago | MIT | A | 297 | Cursor |
| git-workflowgrafana/grafana-cube-datasource | Cursor rule | 20 | yesterday | AGPL-3.0 | A | 616 | Cursor |
| release-checklistyoreai/relay | Cursor rule | 2 | 3mo ago | Apache-2.0 | A | 215 | Cursor |
| branching-merging-strategyjairosoft-com/mcp-server-template-python | Cursor rule | 0 | 1y ago | none | A | 0 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 203k | 10d ago | MIT | A | 604 | Cursor |