programming
Installation
SKILL.md
Programming Recipes
This skill provides a collection of recipes to solve common programming tasks, focusing on refactoring, optimization, and best practices.
Available Recipes
1. Decouple Business Logic from UI
- Goal: Separate business logic from UI components to improve maintainability, reusability, and testability.
- Technique: Extract business logic into services, state management solutions (e.g., Redux), or hooks.
- Example: Refactoring a React
Countercomponent by moving state management to Redux, separating actions, reducers, and the store from the component's view.
2. Fix Lint Errors
- Goal: Improve code quality, catch bugs early, and ensure consistency by addressing linter warnings.
- Common Fixes:
- Managing imports (adding missing, removing unused).
- Adhering to style guidelines (naming conventions, spacing, indentation).
- Removing unused variables and unreachable code.
- Adding docstrings and replacing
printstatements with proper logging.