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.
npx agentmods add rules/regexp-lin/llm-wiki-agent/wiki-source-codegit clone --depth 1 https://github.com/regexp-lin/llm-wiki-agentWhat 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 | $0.00000 | $0.00284 |
| Opus 5 | $0.00000 | $0.00142 |
| Sonnet 5 | $0.00000 | $0.00057 |
| Haiku 4.5 | $0.00000 | $0.00028 |
Grade A, and why
wiki-source-code 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 2d 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
TypeScript Source Code Conventions
Project Stack
- Runtime: Node.js 22.16.0 + TypeScript (ESM)
- LLM: Anthropic Claude via
@anthropic-ai/sdk - Graph: graphology + graphology-communities-louvain + vis.js
- CLI: commander
- Package manager: pnpm
Architecture
src/
├── shared/ # Shared modules (types, constants, utils)
├── workflows/ # Four core workflows (ingest, query, lint, graph)
└── cli/ # CLI entry points (thin wrappers over workflows)
- Business logic lives in
src/workflows/, CLI parsing lives insrc/cli/. - Shared utilities in
src/shared/— do not duplicate code across workflows. - All imports use
.jsextension (ESM requirement). - Model names are centralized in
src/shared/constants.ts.
Quality
- Run
pnpm typecheckbefore committing. - Run
pnpm lintandpnpm formatto check code standards. - TypeScript strict mode is enabled — no
anytypes unless absolutely necessary.
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.
- 2d ago First seen · 36 lines · 0 tokens per session scan A a835201266a8
wiki-source-code is a cursor rule published in the GitHub repository regexp-lin/llm-wiki-agent (15 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 284 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-30.
Other cursor rules, from other repositories
as-contract-cast-smell
// ❌ WRONG — bypasses the family ContractSerializer seam const contract = JSON.parse(raw) as Contract; const contract = JSON.parse(raw) as Contract .
no-barrel-files
Avoid barrel files and unnecessary re-exports.
angular-typescript-cursorrules-prompt-file
Cursor rules for Angular development with TypeScript integration.
vue-typescript-patterns
Cursor rule "vue-typescript-patterns" from soaring-xiongkulu/easyaiot, covering vue3 + typescript 开发规范, vue 组件规范, vue sfc 组件规范, typescript 规范 and 状态管理.
ts
Cursor rule "ts" from un-pany/v3-admin-vite, covering ts 开发规范, 类型, 命名, 代码组织 and 错误处理.
project-overview
这是一个基于 uniapp + Vue3 + TypeScript + Vite5 + UnoCSS 的跨平台开发框架。.