# cline-rules **Repository Path**: gooree/cline-rules ## Basic Information - **Project Name**: cline-rules - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-05 - **Last Updated**: 2025-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Cline Rules **The fastest way to standardize Roo/Cline behavior across all your projects.** This repository provides a simple, powerful git alias that lets you instantly copy Cline/Roo configuration templates to any repository with a single command. ## Key Benefits - **One Command Setup**: Configure all your Roo modes with a single `git clinerules` command - **Consistent Experience**: Ensure the same Roo behavior across all your projects - **Time-Saving**: No need to manually create configuration files for each new project - **Easily Customizable**: Modify template files once, deploy everywhere ## Quick Setup 1. **Important!** Edit the `clinerules.bat` file to update the repository path: ```batch set REPO_PATH=C:\path\to\your\cline-rules\templates ``` Replace `C:\path\to\your\cline-rules\templates` with the full path to the templates directory in your cloned repository. 2. Set up the git alias: ``` git config --global alias.clinerules "!C:/path/to/cline-rules/clinerules.bat" ``` Replace `C:/path/to/cline-rules` with the actual path where you cloned the repository. 3. Now you can use the git alias in any repository: ``` cd path\to\your\project git clinerules ``` That's it! All template files are instantly copied to your current repository. ## Everyday Usage When starting a new project: ```bash mkdir my-new-project cd my-new-project git init git clinerules # Instantly adds all Roo configuration files ``` When working with an existing project: ```bash cd existing-project git clinerules # Instantly adds all Roo configuration files ``` ## How It Works The `clinerules.bat` script: - Copies all the template files from the `templates` directory to your current directory - Works from any location through the git alias - Takes care of both visible and hidden files ## Understanding the Command The git alias is configured with: ``` git config --global alias.clinerules "!C:/path/to/cline-rules/clinerules.bat" ``` This command: 1. Creates a global git alias named `clinerules` 2. Runs the batch script that copies all template files to your current directory The batch file itself uses a hardcoded path to your templates directory: ```batch set REPO_PATH=C:\path\to\your\cline-rules\templates ``` This path must be updated after cloning the repository to match your specific file system structure. ## Available Templates The standard templates include: - `.clinerules-code` - Rules for Code mode - `.clinerules-ask` - Rules for Ask mode - `.clinerules-architect` - Rules for Architect mode - `.clinerules-debug` - Rules for Debug mode - `.roomodes` - Configuration for custom mode definitions - `projectBrief.md` - Project brief template ## Customization You can customize any of the template files to fit your workflow and project needs. Changes made to the templates will be applied to any future projects where you run `git clinerules`. ## Removing the Alias If you need to remove the git clinerules alias, use: ``` git config --global --unset alias.clinerules ``` ## Repository Structure - `templates/` - Directory containing all template files - `clinerules.bat` - The batch script that copies templates to your current directory ## License and Attribution The template files in the `templates/` directory are sourced from the [Roo Code Memory Bank](https://github.com/GreatScottyMac/roo-code-memory-bank) project by GreatScottyMac.