A smart code review assistant based on TBA Team Hermes' best practices and coding standards.
CodeCasper is an AI-powered tool that delivers consistent, high-quality code reviews. It analyzes code changes based on a defined ruleset and provides precise, constructive feedback in the style of TBA Team Hermes. The system continuously learns from each review, suggesting new rules and rule modifications to keep the ruleset current and effective.
- 🔍 Automated Code Reviews
- 📋 Standardized Best Practices
- 🛠️ Customizable Rule Base
- 🤝 AI Assistant Integration
- 📈 Continuous Code Quality Improvement
- 🎨 Style Enforcement
- 🧪 Testing Guidelines
- 🏗️ Architecture Patterns
- 🔒 Type Safety Focus
- 🧠 Self-Learning Capabilities
- Identifies patterns for new rules
- Suggests rule modifications
- Detects outdated rules
- Recognizes rule relationships
- Create Custom GPT or Claude Project
- Insert instructions from
Code_Casper_Instructions.md
as base prompt - Add
Rules.json
as context/payload
- Generate patch/diff of code changes:
- Submit patch to AI assistant
- Receive detailed feedback based on defined rules
- Review suggested rule updates (if any)
- Create rule in JSON format (manually or based on CodeCasper's suggestions)
- Place in
rules/
directory - Regenerate Rules.json:
python concatenate_rules.py
- Edit rule in
rules/
directory - Regenerate Rules.json
- Commit changes
CodeCasper continuously analyzes review patterns and can:
- Suggest new rules based on recurring patterns
- Recommend updates to existing rules
- Identify outdated or conflicting rules
- Detect implicit relationships between rules
- Propose rule priority adjustments
codecasper/
├── rules/ # Individual rule definitions
│ ├── ARCH-*.json # Architecture rules
│ ├── REACT-*.json # React-specific rules
│ └── ...
├── Rules.json # Generated comprehensive rule base
├── concatenate_rules.py # Script to merge rules
└── Code_Casper_Instructions.md
- ARCH: Architecture & Component Organization
- DEP: Dependencies & Library Management
- NEXT: Next.js Framework Best Practices
- REACT: React Patterns & Best Practices
- STYLE: Styling & Naming Conventions
- TS: TypeScript Guidelines
- TEST: Testing & Debug Code Management
Feel free to contribute by:
- Adding new rules
- Improving existing rules
- Suggesting new rule categories
- Reporting inconsistencies
- Sharing feedback on rule effectiveness
- Validating AI-suggested rule changes
MIT License - feel free to use and adapt for your team's needs!