development-conventions

A project-specific rulebook for coding style and development practices in the Kaneo project. It includes formatting and linting rules, such as using tabs, double quotes, and semicolons in TypeScript and TSX.

In plain words
What is it for?
Use it when writing or reviewing Kaneo code, especially TypeScript, TSX, JavaScript, and JSX files.
Why use it?
It gives contributors shared rules so code stays consistent and automated checks do not reject avoidable style differences.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/usekaneo/kaneo/development-conventions
Clone the repo
git clone --depth 1 https://github.com/usekaneo/kaneo

Made for: Cursor.

Per session 1,757 This file is loaded in full into every session.
When invoked 1,757 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2d ago against content hash f1d2d488a3b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.cursor/rules/development-conventions.mdc · 337 lines

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 parameters
  • useAsConstAssertion: Use as const for literal types
  • useDefaultParameterLast: Default parameters must be last
  • useSelfClosingElements: Use self-closing JSX elements
  • useSingleVarDeclarator: One variable per declaration
  • noInferrableTypes: 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

Read the full file on GitHub · 337 lines

Changes

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.

  1. 2d ago First seen · 337 lines · 1,757 tokens per session scan A f1d2d488a3b7

Subscribe to this mod's changes

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.