This repository stores project-specific rule files for the Cline AI coding agent. Use these to direct Clineβs behavior, maintain coding standards, document architecture decisions, and enforce team workflows.
my-project/
βββ .clinerules/ # All rule files live here
βΒ Β βββ 01-xxx.md
βΒ Β βββ 02-xxx.md
βββ .memory/ # memory bank folder
βββ README.md # This file
Cline rules (.clinerules) are system-level instructions that guide the AI in every task it performs. They persist across sessions and influence the agentβs behavior at a project level .
You can choose:
- A single
.clinerulesfile, or - A
.clinerules/directory with multiple.mdfiles for modular rule sets.
This repository selected the 2nd option - having multiples files.
Tips from the documentation and community best practices:
- Be clear, concise, and specific.
- Focus on outcomes, not lowβlevel steps.
- Use pseudo-XML or markdown to structure rules if needed .
- Use emphasis (
**bold**,*italic*) to highlight critical points. - Enable only relevant rules to avoid noise.
- Install Cline in VSβ―Code (via Extensions)
- Ensure your rule files are committed to version control under
.clinerules/ - Cline will automatically detect the
.clinerulesdirectory in the project root and load all.mdrules within it. - Optionally, use the
/newruleslash command in the Cline chat to create new rule files in.clinerules/([Cline][1], [DataCamp][3]). - Use the Rules tab in the Cline UI to toggle individual rule files on or off during a session ([DataCamp][3], [Cline][1]).
For long-lived or complex projects, you can include a memory bank folder that persists project state and context across sessions.
Example structure:
.memory/
βββ projectbrief.md
βββ activeContext.md
βββ systemPatterns.md
βββ techContext.md
βββ progress.md
These files help Cline retain architectural decisions, tech stack choices, and ongoing progress over time.
To begin:
- Clone this repository.
- Ensure
.clinerules/exists with your rule files. - Open in VS Code and install the Cline extension.
- Set your AI provider and API key in Cline settings.
- Launch Cline and type
/newtaskto start using rules.