Automates code reviews using Clean Code, Clean Architecture, and Pragmatic Programmer principles. Benefits developers and engineering teams by enforcing best practices. Integrates with Python projects and connects to Claude agents for automated workflows.
git clone https://github.com/Zhen-Bo/pragmatic-clean-code-reviewer.gitAutomates code reviews using Clean Code, Clean Architecture, and Pragmatic Programmer principles. Benefits developers and engineering teams by enforcing best practices. Integrates with Python projects and connects to Claude agents for automated workflows.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/Zhen-Bo/pragmatic-clean-code-reviewerCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Review the following Python code for adherence to Clean Code, Clean Architecture, and Pragmatic Programmer principles. Focus on [COMPANY]'s specific coding standards. Provide actionable feedback for improvement. Code: ```python [CODE] ```
# Code Review Report ## Clean Code Principles - **Function Length**: The `process_data()` function is 50 lines long. Consider breaking it into smaller functions with single responsibilities. - **Meaningful Names**: Variable `x` should be renamed to something descriptive like `user_input_data`. - **Comments**: Add comments explaining the purpose of the complex data transformation logic. ## Clean Architecture Violations - **Database Access**: The `UserRepository` class directly accesses the database in the `get_user()` method. Move this to a separate data access layer. - **Dependency Inversion**: The `ReportGenerator` class directly depends on `PDFRenderer`. Introduce an interface for rendering. ## Pragmatic Programmer Recommendations - **DRY Principle**: The data validation logic in `validate_user()` is duplicated in `validate_admin()`. Extract to a shared validation function. - **Error Handling**: Add specific exception handling for network timeouts in the API calls. ## Actionable Improvements 1. Refactor `process_data()` into smaller, focused functions 2. Implement dependency injection for rendering services 3. Create a shared validation module for user and admin validation 4. Add comprehensive error handling for all external API calls
AI assistant built for thoughtful, nuanced conversation
We help brands & institutions organize data, gain insight, engage customers, improve workflow, get more done.
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan