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/vypdev/copilot/code-conventionsgit clone --depth 1 https://github.com/vypdev/copilotWhat 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.00415 |
| Opus 5 | $0.00000 | $0.00208 |
| Sonnet 5 | $0.00000 | $0.00083 |
| Haiku 4.5 | $0.00000 | $0.00042 |
Grade A, and why
code-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 yesterday.
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
Code Conventions
Logging and constants
- Use logger:
logInfo,logError,logDebugInfofromsrc/utils/logger. No ad-hocconsole.log. - Use constants:
INPUT_KEYSandACTIONSfromsrc/utils/constants.tsfor input names and action names. No hardcoded strings for these.
Adding a new action input
action.yml: Add the input withdescriptionanddefault(if any).src/utils/constants.ts: Add the key toINPUT_KEYS(e.g.NEW_INPUT: 'new-input').src/actions/github_action.ts: Read the input (e.g.core.getInput(INPUT_KEYS.NEW_INPUT)) and pass it into the object used to buildExecution.- Optional: If the CLI must support it, add to
local_action.tsand the corresponding CLI option.
Where to change content/descriptions
- PR description (template filling, AI content):
src/manager/description/(configuration_handler, content interfaces). - Hotfix/release changelog (markdown extraction, formatting):
src/manager/description/markdown_content_hotfix_handler.ts.
Build and bundles
- The project uses
@vercel/nccto bundle the action and CLI. Keep imports and dependencies compatible with ncc (no dynamic requires that ncc cannot see). - Do not edit or rely on
build/; it is generated. Run tests and lint only onsrc/.
Style and lint
- Prefer TypeScript; avoid
any(lint rule: no-explicit-any). - Run
npm run lintbefore committing; usenpm run lint:fixwhen possible.
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.
- yesterday First seen · 35 lines · 0 tokens per session scan A 678dce985134
code-conventions is a cursor rule published in the GitHub repository vypdev/copilot (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 415 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
code-review-en
Code Review Guidelines (English).
code-review
代码审查规范(中文版).
cursorrules
See AGENTS.md — Cursor reads it natively.
task-summary
Enforce Summary and Session Log blocks on every coding response when session tracking is enabled.
api-steps
How to create HTTP endpoints in Motia.
virtual-steps
Connecting nodes virtually and creating a smooth flow in Workbench.