Code Foundations provides software engineering best practices from Code Complete and A Philosophy of Software Design. It helps developers write maintainable, scalable code. It integrates with Claude Code for automated code reviews, refactoring, and architecture planning.
git clone https://github.com/ryanthedev/code-foundations.gitCode Foundations provides software engineering best practices from Code Complete and A Philosophy of Software Design. It helps developers write maintainable, scalable code. It integrates with Claude Code for automated code reviews, refactoring, and architecture planning.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/ryanthedev/code-foundationsCopy 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 this [CODE_SNIPPET] for adherence to software engineering best practices. Identify any potential issues related to maintainability, scalability, or readability. Suggest specific improvements following the principles from Code Complete and A Philosophy of Software Design. Also, provide a brief explanation for each recommendation.
After reviewing the provided code snippet, here are my observations and recommendations: 1. **Function Length**: The `process_data` function is 120 lines long, which violates the Single Responsibility Principle. Break it down into smaller functions, each handling a specific task. This will improve readability and maintainability. 2. **Parameter List**: The `generate_report` function has 7 parameters. Consider using a configuration object or a builder pattern to reduce the number of parameters and make the function call more readable. 3. **Error Handling**: The code lacks proper error handling. Implement try-catch blocks to handle potential exceptions and provide meaningful error messages. 4. **Code Duplication**: There are several instances of duplicated code in the `validate_data` function. Extract the common logic into a separate function to adhere to the DRY (Don't Repeat Yourself) principle. 5. **Naming Conventions**: Some variable names are not descriptive enough. For example, `data` could be more specific, like `user_data` or `transaction_data`. Descriptive names improve code readability and understanding.
Shopify for Homebuilders
AI assistant built for thoughtful, nuanced conversation
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