Skip to content

Instantly share code, notes, and snippets.

@llbbl
Created December 1, 2025 23:58
Show Gist options
  • Select an option

  • Save llbbl/a02f04b84a1f1cd070b66c9e22782f88 to your computer and use it in GitHub Desktop.

Select an option

Save llbbl/a02f04b84a1f1cd070b66c9e22782f88 to your computer and use it in GitHub Desktop.
suggest code improvements
## Suggest Code Improvements
Analyze the codebase and suggest improvements to code quality, performance, and maintainability:
1. **Scan the codebase** to understand:
- Project structure and architecture
- Coding patterns and conventions
- Dependencies and technologies used
- Recent changes or areas of active development
2. **Identify improvement opportunities** across:
- Code quality (readability, complexity, duplication)
- Performance bottlenecks
- Security vulnerabilities or best practice violations
- Error handling and edge case coverage
- Type safety and null/undefined handling
- Deprecated API usage
- Missing documentation or unclear naming
- Architectural issues or design patterns
3. **Prioritize suggestions** by:
- Impact vs. effort ratio
- Bug risk or security concerns
- Performance gains
- Maintainability improvements
- Alignment with modern best practices
4. **For each suggestion, provide**:
- Clear explanation of the issue
- Why it matters (impact)
- Specific code changes or refactoring steps
- Before/after examples where helpful
- Any trade-offs or considerations
5. **Respect project conventions**:
- Match existing code style and patterns
- Don't break existing APIs without good reason
- Consider backward compatibility
- Stay within the project's tech stack
6. **Group related improvements** (e.g., "TypeScript strictness improvements", "Error handling patterns")
Focus on practical improvements that make the code more robust, maintainable, and efficient—not just stylistic preferences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment