A comprehensive framework for enhancing AI-assisted development through structured workflows, knowledge management, and cross-platform compatibility.
This template provides a structured approach to AI-assisted development by combining:
- Workflow-driven development processes
- Centralized knowledge management
- Cross-platform rule configurations
- Token-optimized interactions
.
├── workflow/ # Development workflow definitions
│ ├── workflow-router.mdc # Central workflow entry point
│ ├── feature-development-workflow.md
│ ├── tweak-development-workflow.md
│ ├── core-development-workflow.md
│ └── architecture-documentation-workflow.md
│
├── knowledge-base/ # Project knowledge repository
│ ├── architecture-docs/ # System architecture documentation
│ └── feature-docs/ # Feature-specific documentation
│
├── .cursor/ # Cursor-specific configurations
│ └── rules/ # Custom rules for Cursor
│
├── .clinerules/ # CLINE-specific configurations
│
└── templates/ # Template files for various purposes
The workflow system provides structured approaches for different development scenarios:
- Feature Development: Complete workflow for new feature implementation
- Tweak Development: Streamlined process for enhancements and bug fixes
- Architecture Documentation: Guidelines for maintaining system documentation
- Core Development: Fundamental development practices and standards
Centralized knowledge management through:
- Architecture Documentation: System design and component relationships
- Feature Documentation: Requirements, specifications, and implementation details
- Development Context: Active development tracking and decision history
Optimized rule configurations for different AI coding assistants:
.cursor/rules/
├── rules.mdc
├── plan.mdc
├── implement.mdc
├── debug.mdc
├── memory.mdc
└── directory-structure.mdc.clinerules/
├── rules
├── plan
├── implement
├── debug
├── memory
└── directory-structure- Clone this repository
- Copy platform-specific rules to your project:
# For Cursor cp -r .cursor/rules/ /path/to/your/project/.cursor/ # For CLINE cp -r .clinerules/ /path/to/your/project/
- Initialize knowledge base structure:
mkdir -p knowledge-base/{architecture-docs,feature-docs} - Copy workflow definitions:
cp -r workflow/ /path/to/your/project/
-
Chat Mode
- Purpose: Comprehensive thinking and analysis
- Configuration: No file operations
- Token optimization: Minimal context loading
-
Write Mode
- Purpose: File operations and command execution
- Capabilities: Read, write, and execute
- Token optimization: Efficient file handling
-
MCP Mode
- Purpose: MCP server operations
- Integration: Seamless mode switching
- Token optimization: Focused server interactions
- Start with the workflow router for task categorization
- Follow appropriate workflow based on task type
- Document decisions and changes in knowledge base
- Maintain up-to-date architecture documentation
- Document feature requirements and specifications
- Track development context and decisions
- Use appropriate modes for different tasks
- Load context selectively
- Leverage efficient file operations
-
Workflow-Driven Development
- Structured development processes
- Clear task categorization
- Integrated documentation
-
Knowledge Management
- Centralized documentation
- Feature tracking
- Decision history
-
Cross-Platform Support
- Cursor integration
- CLINE compatibility
- Consistent workflows
-
Token Optimization
- Mode-based optimization
- Selective context loading
- Efficient operations
- Fork the repository
- Create a feature branch
- Submit a pull request with:
- Clear description of changes
- Updated documentation
- Test results if applicable
- Unified ignore system for token optimization
- Example content for each file type
- Comprehensive FAQ section
- TDD prompt injection implementation
- Boomerang Task Mode and Context Handoff
[Add your license information here]
This section provides ready-to-use prompts for LLM-based coding assistants and manual instructions for installing the rules/templates into any project.
Prompt for LLMs:
Please install the rules from https://github.com/hrishirc/LLM-repo-memory into my current project.
- Check if the directory
~/rules_template_install(Unix/macOS) or%USERPROFILE%\rules_template_install(Windows) already exists. If it does, pull the latest changes from the repository usinggit pull. If it doesn't exist, clone the repository fromhttps://github.com/hrishirc/LLM-repo-memoryinto that default folder, or ask me for a location.- Run the
scripts/install_rules.sh(for Unix/macOS) orscripts/install_rules.cmd(for Windows) script with thecreateargument, providing the path to my project if known. If not, ask me for it.- The script should copy the following folders/files into my project:
workflow/templates/.cursor/.clinerules/Only copy files that do not already exist. If a file exists, skip it. If a directory exists, ignore the error and continue.- Confirm completion.
Prompt for LLMs:
Please update the rules in my current project from https://github.com/hrishirc/LLM-repo-memory.
- Check if the directory
~/rules_template_install(Unix/macOS) or%USERPROFILE%\rules_template_install(Windows) already exists. If it does, pull the latest changes from the repository usinggit pull. If it doesn't exist, clone the repository fromhttps://github.com/hrishirc/LLM-repo-memoryinto that default folder, or ask me for a location.- Run the
scripts/install_rules.sh(for Unix/macOS) orscripts/install_rules.cmd(for Windows) script with theupdateargument, providing the path to my project if known. If not, ask me for it.- The script should copy the following folders/files into my project:
workflow/templates/.cursor/.clinerules/Overwrite any existing files with the new versions. If a directory exists, ignore the error and continue.- Confirm completion.
- Clone this repository to a folder of your choice.
- Run the install script from the
scripts/directory:- On Unix/macOS:
bash scripts/install_rules.sh create /path/to/your/project # or for update (overwrite): bash scripts/install_rules.sh update /path/to/your/project - On Windows:
scripts\install_rules.cmd create C:\path\to\your\project :: or for update (overwrite): scripts\install_rules.cmd update C:\path\to\your\project
- On Unix/macOS:
- If you do not provide the project path as an argument, the script will prompt you for it.
Note:
- In
createmode, existing files are never overwritten. - In
updatemode, all files are overwritten with the latest versions from this repo. - Directory existence errors are ignored.
- The scripts are idempotent and safe to run multiple times.