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/cty12356541/galideWrote 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/cty12356541/galide/ai-conventions)<a href="https://agentmods.dev/rules/cty12356541/galide/ai-conventions"><img src="https://agentmods.dev/badge/rules/cty12356541/galide/ai-conventions/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/cty12356541/galide/ai-conventions"><img src="https://agentmods.dev/badge/rules/cty12356541/galide/ai-conventions.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.00000 | $0.00324 |
| Opus 5.5 | $0.00000 | $0.00130 |
| Sonnet 5.5 | $0.00000 | $0.00065 |
| Haiku 4.5 | $0.00000 | $0.00032 |
Grade A, and why
ai-conventions 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.
What it actually says
AI 集成规约
核心约束
- API Key 永远不离开 main process;renderer 通过 IPC 调用
- Key 存储走
electron-store加密(见 main/ai/key-store.ts) - 所有 AI 调用经
src/main/ai/ai-proxy.ts,不在 renderer 直连
流式
- 流式响应通过 IPC 事件
ai:stream推送,payload 为{ taskId, delta: string } - renderer 端通过
useAiStream(taskId)hook 订阅 - 事件流以
ai:status{ status: 'done' | 'error' }收尾
任务队列
- 任务入队,不阻塞编辑器;并发 = 1
- 状态机: pending → running → done | error
- 状态变化通过
ai:status事件推送 useAiTaskStatus(taskId)/useAiTaskList()是订阅入口
错误
- 错误用
AiError { code, message, provider? }结构,通过Result<T, AiError>传递 - 不抛异常;业务错误返回 Result
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 · 28 lines · 0 tokens per session scan A d7024f63b69a
ai-conventions is a cursor rule published in the GitHub repository cty12356541/galide (2 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 324 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
baml
A set of rules for setting up BAML and help with syntax guidance.
co-dialectic
Co-Dialectic prompt sharpening and verification rules for Cursor.
llm-zod-jsonschema
Best Practice for LLM Output Parsing with Zod and JSON Schema.
prompt-routing
Route tasks to the correct Universal AI Engineering Prompt.
prompting-for-qe
Soạn/tinh chỉnh prompt cho tác vụ QE (sinh test case, phân tích requirement, tóm tắt tài liệu test, phân tích log) — đặc biệt khi output AI lan man, chung chung, bịa, hoặc muốn chốt prompt thành template tái dùng.
anthropic-chain-of-thought
Anthropic Chain of Thought and XML Tag Best Practices.