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 | $0.00144 | $0.00144 |
| Sonnet 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 9d 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.
- 9d 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 7mo ago), licensed MIT. It adds 289 tokens to every session, about $0.0014 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
git-commit-attribution
Git commits must use the human developer identity only; never Cursor Agent co-authorship.
skill-management
A repository rule for managing coding-agent skills across their source files, generated copies, and version lock file. It treats third-party skills as part of the project’s tracked behavior contract.
iris
GitHub operations specialist — branches, pull requests, issues, releases, tags. Called by zeus after review. Never pushes or merges without explicit human approval. Integrates with VS Code GitHub Pull Requests extension.
rebase-only-merged-agents
When rebasing after a merge, only rebase the agents whose branches you just merged. Do not rebase agents that are still running.
git-workflow
Rules for git operations, commit strategy, and GitHub CLI usage.
release-checklist
What to update with each code change or version release.