TaskPrio

Cline rules (.clinerules)

.clinerules are the project instructions the Cline AI coding agent reads at session start to learn your project — stack, commands, conventions, what not to do, definition of done. Use a single .clinerules file at your repo root, or a .clinerules/ folder of modular rule files; Cline also supports global rules.

Generate your .clinerules free →

What are Cline rules?

Plain-Markdown instructions Cline loads into context automatically when you work in a repo. Their job is to give the agent the context a new teammate would need. It's the Cline-native version of the same idea as AGENTS.md, CLAUDE.md, and Cursor rules — same content, read from .clinerules.

What goes in a .clinerules file?

.clinerules example

# Acme Web

> Senior full-stack engineer. Small, reviewable diffs. Tests with every change.

## Stack
Next.js 15 (App Router) · TypeScript · Tailwind · Drizzle ORM · Postgres

## Commands
- Build: `pnpm build`
- Test: `pnpm test`
- Lint: `pnpm lint && pnpm typecheck`

## Conventions
- Server components by default; "use client" only when needed.
- All DB access through src/db/ (Drizzle) — never raw SQL in routes.

## Don't
- Don't add dependencies without asking.
- Don't commit secrets — use .env.local (see .env.example).

## Definition of done
- Lint + tests pass; new UI works at 375px.

Make one for your project →

Cline-specific: file vs folder, and global rules

Best practices

.clinerules vs CLAUDE.md vs AGENTS.md

Same guidance, different readers — AGENTS.md is the open standard (many tools), CLAUDE.md is Claude Code's, GEMINI.md is Gemini CLI's, and .clinerules is Cline's (with the file-or-folder format + global rules). The clean setup is one canonical file the rest import or are generated from. Full breakdown: AGENTS.md vs CLAUDE.md →

Generate .clinerules (and AGENTS.md, CLAUDE.md, GEMINI.md, Cursor, Copilot) — free

Fill in your project's rules once and get every file, correctly formatted, with a token-budget warning so they stay lean. No signup.

Open the Agent Memory Compiler →

Keep it in sync with your work

Generated files drift the moment your project changes. In TaskPrio your rules live in one place and your agents pull them over MCP with get_next_task — the memory and the task queue become one source of truth. Edit once; every agent stays current. See the MCP queue →

FAQ

What is .clinerules?

Cline's project-rules file, auto-loaded at session start — stack, commands, conventions, don't-dos, definition of done. A single .clinerules file or a .clinerules/ folder, plus global rules.

What goes in it?

Overview, stack, commands, conventions, don't-dos, definition of done — kept lean; split big sets into a .clinerules/ folder.

Is it the same as CLAUDE.md or Cursor rules?

Same content, different reader. Keep one source: make AGENTS.md canonical and generate the per-tool files from it.

Generate your .clinerules →   AGENTS.md vs CLAUDE.md →