

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# 🏗️ System Patterns23## Architecture Overview4The clinerules system uses a modular directory structure to organize rules and guidelines for Cline to follow when working with projects, incorporating the SPARC methodology for structured development.56## SPARC Workflow Integration7The system integrates the SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) methodology:89```mermaid10flowchart TD11 S[Specification] --> P[Pseudocode]12 P --> A[Architecture]13 A --> R[Refinement]14 R --> C[Completion]1516 S --> S1[Define requirements]17 S --> S2[Identify constraints]18 S --> S3[Set acceptance criteria]1920 P --> P1[Develop high-level logic]21 P --> P2[Identify core functions]22 P --> P3[Create TDD anchors]2324 A --> A1[Design components]25 A --> A2[Define interfaces]26 A --> A3[Establish boundaries]2728 R --> R1[Implement with TDD]29 R --> R2[Debug and optimize]30 R --> R3[Refactor for maintainability]3132 C --> C1[Integrate components]33 C --> C2[Document thoroughly]34 C --> C3[Verify against criteria]35```3637```mermaid38flowchart TD39 A[.clinerules/] --> B[Core Rule Files]40 A --> C[Memory Bank Files]41 A --> D[Subdirectories]4243 B --> B1[💻_01-coding.md]44 B --> B2[📚_02-documentation.md]45 B --> B3[🏃_current-sprint.md]46 B --> B4[📖_README.md]4748 C --> C1[🧠_memory-bank.md]49 C --> C2[📋_projectbrief.md]50 C --> C3[🔍_productContext.md]51 C --> C4[🔄_activeContext.md]52 C --> C5[🏗️_systemPatterns.md]53 C --> C6[⚙️_techContext.md]54 C --> C7[📊_progress.md]5556 D --> D1[rules/]57 D --> D2[rules-code/]58 D --> D3[tests/]5960 D1 --> D1A[🧭_general_guidelines.md]61 D2 --> D2A[👨💻_code_guidelines.md]62 D3 --> D3A[🧪_testing_guidelines.md]6364 E[clinerules-bank/] --> E1[clients/]65 E --> E2[frameworks/]66 E --> E3[project-types/]67 E --> E4[orchestration/]68 E --> E5[docs/]69 E --> E6[manage-rules.sh]70 E --> E7[README.md]71```7273## Key Components7475### Component 1: Core Rule Files76- **Purpose**: Provide foundational guidelines that apply to all projects77- **Responsibilities**: Define coding standards, documentation requirements, and current sprint focus78- **Interfaces**: Read by Cline directly from the `.clinerules/` directory79- **Implementation Details**: Markdown files with clear sections and bullet points8081### Component 2: Memory Bank Files82- **Purpose**: Provide persistent memory between Cline sessions83- **Responsibilities**: Store project context, technical details, and current status84- **Interfaces**: Read by Cline at the start of each session85- **Implementation Details**: Markdown files with emoji prefixes for visual distinction8687### Component 3: Subdirectories88- **Purpose**: Organize rules by category89- **Responsibilities**: Separate general guidelines, code-specific rules, and testing guidelines90- **Interfaces**: Files within subdirectories are read by Cline91- **Implementation Details**: Directory structure with descriptive names9293### Component 4: Rule Bank94- **Purpose**: Store additional rule sets that can be activated as needed95- **Responsibilities**: Provide context-specific rules for different clients, frameworks, and project types96- **Interfaces**: Files are copied to the `.clinerules/` directory when activated97- **Implementation Details**: Organized directory structure with categorized rule files9899### Component 5: Rule Management Script100- **Purpose**: Manage the activation and deactivation of rules101- **Responsibilities**: List available rules, activate/deactivate rules, backup/restore rules102- **Interfaces**: Command-line interface for users103- **Implementation Details**: Bash script with clear commands and feedback104105## Design Patterns106107### Pattern 1: Modular Organization108- **Usage**: Throughout the system for organizing rules109- **Implementation**: Directory structure with logical categories110- **Benefits**: Easier maintenance, contextual activation, reduced noise111112### Pattern 2: Memory Bank113- **Usage**: For persistent context between sessions114- **Implementation**: Emoji-prefixed files with structured content115- **Benefits**: Ensures Cline maintains context across interactions116117### Pattern 3: Rule Activation118- **Usage**: For selectively applying rules119- **Implementation**: Copy files from bank to active directory120- **Benefits**: Contextual application of rules, reduced cognitive load121122## Data Flow123124```mermaid125sequenceDiagram126 participant User127 participant Script as manage-rules.sh128 participant Bank as clinerules-bank/129 participant Active as .clinerules/130 participant Cline131132 User->>Script: List available rules133 Script->>Bank: Read rule files134 Bank-->>Script: Return file list135 Script-->>User: Display available rules136137 User->>Script: Activate rule138 Script->>Bank: Get rule file139 Bank-->>Script: Return file content140 Script->>Active: Copy file141 Script-->>User: Confirm activation142143 User->>Cline: Start interaction144 Cline->>Active: Read all rule files145 Active-->>Cline: Return rule content146 Cline-->>User: Apply rules in responses147```148149## Critical Paths1501511. **Rule Activation Path**: User → Script → Bank → Active → Cline152 - Critical for ensuring the right rules are applied153 - Potential failure points: file system permissions, emoji handling1541552. **Memory Bank Reading Path**: User → Cline → Memory Bank Files156 - Critical for maintaining context between sessions157 - Potential failure points: missing files, incomplete information158159## Error Handling Strategy160161- File system errors are reported with clear error messages162- Missing files trigger appropriate warnings163- User confirmation is required for destructive operations164- Backup functionality allows for recovery from errors165166## Performance Considerations167168- Rule files are kept small and focused to minimize processing time169- Directory structure is shallow to reduce traversal time170- Memory bank files use a consistent structure for efficient parsing171172## Security Model173174- No sensitive information should be stored in rule files175- Script operations are limited to the `.clinerules/` and `clinerules-bank/` directories176- User confirmation is required for potentially destructive operations177178## Integration Points179180- Cline reads rules from the `.clinerules/` directory181- The management script interacts with both the bank and active directories182- Future integration with Cline UI for visual rule management183184## Technical Debt185186- Emoji file naming might cause issues in some file systems187- Script error handling could be more robust188- No versioning system for rule files yet189
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| ruvnet/rUv-dev.clinerules/📋_projectbrief.md · 426 | Cline rules | archdependencies | 48/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/📚_02-documentation.md · 426 | Cline rules | docs | 44/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/⚙️_techContext.md · 426 | Cline rules | setuptesttesting-strategysecurity+4 | 58/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/🏃_current-sprint.md · 426 | Cline rules | testing-strategygitdocs | 44/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/💻_01-coding.md · 426 | Cline rules | styleperformance | 48/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/📊_progress.md · 426 | Cline rules | performance | 44/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/🔄_activeContext.md · 426 | Cline rules | stylearch | 56/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/🔍_productContext.md · 426 | Cline rules | archperformancedo-not | 59/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/🧠_memory-bank.md · 426 | Cline rules | archperformanceagent-behaviourdocs | 58/100 | 13 days ago | |
| ruvnet/rUv-dev.clinerules/📖_README.md · 426 | Cline rules | archperformancedo-not | 55/100 | 13 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 32k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 14 days ago | |
| enuno/unifi-mcp-server.clinerules · 226 | Cline rules | setuptestlint-formatstyle+10 | 96/100 | today | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 14 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 14 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | 12 days ago | |
| prabhakar267/paper-games.clinerules/git-commit-guidelines.md · 0 | Cline rules | lint-formatstylearchgit+3 | 93/100 | 13 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/ruvnet-ruv-dev-clinerules-systempatterns)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.