Brewcode Rules Manager

•
16
•

Automates the synchronization and organization of project-specific rules, best practices, and anti-patterns within Claude Code.

Brewcode Rules is a sophisticated management system for project-specific instructions that ensures developer knowledge persists across sessions. It intelligently extracts learnings from active sessions, parses KNOWLEDGE.jsonl files, and organizes them into structured 'avoid' and 'best-practice' documents within the .claude/rules/ directory. By implementing a 3-check deduplication protocol that merges similar entries and flags antonyms, it maintains high-quality project documentation without redundancy, helping developers maintain consistent code quality and prevent the recurrence of solved bugs.

Key Features

01Automatic extraction of session learnings including errors, fixes, and patterns
02Automated organization of anti-patterns (avoid.md) and best practices (best-practice.md)
0316 GitHub stars
04Intelligent 3-check deduplication with similarity merging and cross-file validation
05Support for prefix-specific rule organization for complex project architectures
06Bidirectional sync between KNOWLEDGE.jsonl entries and project rules

Use Cases

01Cleaning up and deduplicating existing project rule files for better AI context
02Converting a team's shared knowledge base into actionable project rules
03Permanently capturing session-based bug fixes to prevent regression