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/usekaneo/kaneo/development-conventionsgit clone --depth 1 https://github.com/usekaneo/kaneoWhat 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.01757 | $0.01757 |
| Opus 5 | $0.00879 | $0.00879 |
| Sonnet 5 | $0.00351 | $0.00351 |
| Haiku 4.5 | $0.00176 | $0.00176 |
Grade A, and why
development-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 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.
How it starts
The opening of the file, as written. The whole thing — 337 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Development Conventions
This document outlines coding standards, conventions, and best practices for the Kaneo project.
Code Style
Biome Configuration
Kaneo uses Biome for linting and formatting. Configuration is in biome.json.
Formatting Rules
- Indentation: Tabs (not spaces) for TypeScript/TSX
- JavaScript: Spaces for indentation (legacy support)
- Quote Style: Double quotes (
") - Semicolons: Required
// Good: Tabs, double quotes, semicolons
function example() {
const value = "hello";
return value;
}
// Bad: Spaces, single quotes, no semicolons
function example() {
const value = 'hello'
return value
}
Linting Rules
Key Biome rules enabled:
noParameterAssign: Don't reassign function parametersuseAsConstAssertion: Useas constfor literal typesuseDefaultParameterLast: Default parameters must be lastuseSelfClosingElements: Use self-closing JSX elementsuseSingleVarDeclarator: One variable per declarationnoInferrableTypes: Don't add explicit types that can be inferred
// Good: Follows Biome rules
const items = ["a", "b"] as const;
function greet(name: string, greeting = "Hello") {
return `${greeting}, ${name}`;
}
const x = 1;
const y = 2;
// Bad: Violates Biome rules
const items: string[] = ["a", "b"];
function greet(greeting = "Hello", name: string) {
return `${greeting}, ${name}`;
}
const x = 1, y = 2;
Running Linter
# Check and auto-fix
pnpm lint
# Check only (no fixes)
pnpm biome check .
TypeScript Conventions
Type Definitions
- Types: Prefer types for all type definitions (object shapes, unions, intersections, computed types)
- Interfaces: Only use interfaces when extending/merging is needed (rare)
- Inference: Prefer type inference when types are obvious
// Good: Type for object shape
type Task = {
id: string;
title: string;
status: string;
};
// Good: Type for union
type Status = "to-do" | "in-progress" | "done";
// Good: Type inference
const tasks: Task[] = []; // Explicit for arrays
const count = tasks.length; // Inferred
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 · 337 lines · 1,757 tokens per session scan A f1d2d488a3b7
development-conventions is a cursor rule published in the GitHub repository usekaneo/kaneo (8,904 stars, last pushed yesterday), licensed MIT. It adds 1,757 tokens to every session, about $0.0088 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-30.
Other cursor rules, from other repositories
no-co-author-in-commits
Do not add or keep Co-authored-by trailers in commit messages.
no-mvn-compile
Do not run mvn compile; rely on IDE lint errors.
backend-python
Cursor rule "backend-python" from coeusyk/inference-x, covering backend python rules, stack assumptions, code style, fastapi conventions and schema conventions.
database-migrations
Database schema change workflow - Prisma migrations, client regeneration, test DB sync. Apply whenever changing schema.prisma or database structure.
backend-file-uploads
Backend Hono file upload middleware rules. Apply when adding or changing file upload routes.
self_improve
description: Guidelines for continuously improving Cursor rules based on emerging code patterns and best practices. globs: / alwaysApply: true.