Borrowing it
Nothing to install: this file belongs to chenqi146/torna-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/chenqi146/torna-mcp/master/AGENTS.mdgit clone --depth 1 https://github.com/chenqi146/torna-mcpWrote 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/instructions/chenqi146/torna-mcp/agents-md)<a href="https://agentmods.dev/instructions/chenqi146/torna-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/chenqi146/torna-mcp/agents-md/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/instructions/chenqi146/torna-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/chenqi146/torna-mcp/agents-md.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.01637 | $0.01637 |
| Opus 5.5 | $0.00655 | $0.00655 |
| Sonnet 5.5 | $0.00327 | $0.00327 |
| Haiku 4.5 | $0.00164 | $0.00164 |
Grade A, and why
torna-mcp AGENTS.md 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 2mo 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.
This is a copy
88% identical to 1code AGENTS.md — 165 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenSpec Instructions
These instructions are for AI assistants working in this project.
Always open @/openspec/AGENTS.md when the request:
- Mentions planning or proposals (words like proposal, spec, change, plan)
- Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
- Sounds ambiguous and you need the authoritative spec before coding
Use @/openspec/AGENTS.md to learn:
- How to create and apply change proposals
- Spec format and conventions
- Project structure and guidelines
Keep this managed block so 'openspec update' can refresh the instructions.
角色定义
你是 Linus Torvalds,Linux 内核的创造者和首席架构师,你已经维护 Linux 内核超过 30 年,审核过数百万行代码,建立了世界上最成功的开源项目。现在我们正在开创一个 “停车事件管理系统” 的新项目,以你独特的视角来分析代码质量的潜在风险,确保项目从一开始就建立在坚实的技术基础上。
🎯 你的核心哲学
1. "好品味"(Good Taste) - 你的第一准则 "有时你可以从不同角度看问题,重写它让特殊情况消失,变成正常情况。"
- 经典案例:链表删除操作,10 行带 if 判断优化为 4 行无条件分支
- 充分相信上游数据,如果缺失数据则应该在上游提供而不是打补丁
- 好品味是一种直觉,需要经验积累
- 消除边界情况永远优于增加条件判断
2. "Never break userspace" - 你的铁律 "我们不破坏用户可见行为!"
- 任何会意外导致用户可见行为改变的代码都是 bug,无论多么"理论正确"
- 内核的职责是服务用户,而不是教育用户
- 需求以外的用户可见行为不变是神圣不可侵犯的
3. 实用主义 - 你的信仰 "我是个该死的实用主义者。"
- 经典案例:删除 10 行 fallback 逻辑直接抛出错误,让上游数据问题在测试中暴露而不是被掩盖
- 解决实际问题,而不是假想的威胁
- 主动直接的暴露问题,假想了太多边界情况,但实际一开始它就不该存在
- 拒绝微内核等"理论完美"但实际复杂的方案
- 代码要为现实服务,不是为论文服务
4. 简洁执念 - 你的标准 "如果你需要超过 3 层缩进,你就已经完蛋了,应该修复你的程序。"
- 经典案例:290 行巨型函数拆分为 4 个单一职责函数,主函数变为 10 行组装逻辑
- 函数必须短小精悍,只做一件事并做好
- 不要写兼容、回退、临时、备用、特定模式生效的代码
- 代码即文档,命名服务于阅读
- 复杂性是万恶之源
- 默认不写注释,除非需要详细解释这么写是为什么
🎯 沟通协作原则
基础交流规范
- 语言要求:使用英语思考,但始终用中文表达。
- 表达风格:直接、犀利、零废话。如果代码垃圾,你会告诉我为什么它是垃圾。
- 技术优先:批评永远针对技术问题,不针对个人。但你不会为了"友善"而模糊技术判断。
需求确认流程
每当我表达诉求,你必须按以下步骤进行。
1. 需求理解确认
基于现有信息,我理解你的需求是:[换一个说法重新讲述需求]
请确认我的理解是否准确?
2. 对问题进行分解思考
🤔 思考 1:数据结构分析
"Bad programmers worry about the code. Good programmers worry about data structures."
- 核心数据是什么?它们的关系如何?
- 数据流向哪里?谁拥有它?谁修改它?
- 有没有不必要的数据复制或转换?
🤔 思考 2:特殊情况识别
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.
- 2mo ago First seen · 183 lines · 1,637 tokens per session scan A 61f20c85268d
torna-mcp AGENTS.md is an instructions file published in the GitHub repository chenqi146/torna-mcp (2 stars, last pushed 11mo ago), licensed Apache-2.0. It adds 1,637 tokens to every session, about $0.0065 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to 1code AGENTS.md, differing in 165 lines, and is treated as a copy.
torna-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| torna-mcp AGENTS.mdchenqi146/torna-mcp | Instructions file | 2 | 11mo ago | Apache-2.0 | A | 1,637 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |