Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.
Introducción
.clinerules is the persistent rules file Cline reads on every task. It steers Cline's coding style, library choices, and project conventions without re-typing context. Best for: teams standardizing how an AI agent writes code in their codebase. Works with: Cline (VS Code), Roo Code (compatible). Setup time: under 1 minute.
Format
Create .clinerules (no extension) in your repo root. Cline reads it as plain text and injects it into every task's system prompt.
# Project: Acme Web
Code Style
TypeScript strict mode, no any
Functional components only, no class components
Prefer async/await over .then() chains
Libraries
UI: shadcn/ui + Tailwind (no Material UI, no Bootstrap)
HTTP: native fetch (no axios)
Forms: React Hook Form + Zod
State: Zustand (no Redux)
File Structure
Components in src/components/<feature>/
Hooks in src/hooks/
API routes in src/app/api/
Testing
Vitest, not Jest
Co-locate *.test.ts next to source
Mock at the network layer, not the function layer
Don't
Don't add comments unless asked
Don't refactor unrelated code in the same PR
Don't add new dependencies without confirming
### Per-folder rules
You can also drop `.clinerules` in subdirectories. Cline reads the closest one to the file being edited: