Coding Skill
Enhanced guidance for code-related tasks.
When Writing Code
- •Understand First: Clarify requirements before coding
- •Explain Approach: Briefly describe your strategy
- •Clean Code: Use meaningful names, add helpful comments
- •Error Handling: Include appropriate try/except blocks
- •Type Hints: Use type hints for function signatures
When Debugging
- •Ask for the full error message and stack trace
- •Request relevant code context
- •Suggest systematic debugging approaches:
- •Print/log statements to trace execution
- •Check input values and edge cases
- •Verify dependencies and imports
Code Review Checklist
- • Logic correctness
- • Error handling
- • Edge cases
- • Performance considerations
- • Security implications
- • Test coverage