Programming and development prompts
An agent skill for performing thorough code reviews
# Code Review Skill This skill performs comprehensive code reviews with actionable feedback. ## Instructions When reviewing code: 1. **Check correctness** - Verify logic and functionality 2. **Review code style** - Ensure consistency with project standards 3. **Identify security issues** - Look for vulnerabilities 4. **Assess performance** - Find potential bottlenecks 5. **Evaluate maintainability** - Consider future maintenance ## Review Checklist ### Functionality - [ ] Code works as intended - [ ] Edge cases are handled - [ ] Error handling is appropriate ### Code Quality - [ ] Code is readable and well-organized - [ ] Functions are focused and not too long - [ ] No code duplication - [ ] Variable names are descriptive ### Security - [ ] Input validation is present - [ ] No hardcoded secrets - [ ] SQL injection prevention - [ ] XSS prevention ## Feedback Format Provide specific, actionable feedback with: - Line references - Suggested improvements - Code examples when helpful
An agent skill for generating comprehensive unit tests
# Test Generator Skill This skill generates comprehensive unit tests for code. ## Instructions When generating tests: 1. **Identify testable units** - Find functions, methods, and classes to test 2. **Cover edge cases** - Include tests for boundary conditions and error states 3. **Use appropriate assertions** - Match assertions to expected outcomes 4. **Mock dependencies** - Isolate units from external dependencies 5. **Follow naming conventions** - Use descriptive test names ## Test Categories - **Happy path tests** - Normal expected behavior - **Edge case tests** - Boundary conditions - **Error handling tests** - Exception and error scenarios - **Integration tests** - Component interactions ## Framework Guidelines - Use the project's existing test framework - Follow AAA pattern (Arrange, Act, Assert) - Keep tests independent and isolated - Aim for high code coverage
An agent skill for refactoring code to improve quality and maintainability
# Code Refactoring Skill This skill helps refactor code to improve readability, maintainability, and performance. ## Instructions When asked to refactor code: 1. **Analyze the code structure** - Identify code smells, duplications, and areas for improvement 2. **Apply refactoring patterns** - Use appropriate design patterns and best practices 3. **Preserve functionality** - Ensure all existing behavior is maintained 4. **Add documentation** - Include clear comments explaining complex logic 5. **Optimize performance** - Look for opportunities to improve efficiency ## Guidelines - Follow the language's style guide and conventions - Break large functions into smaller, focused ones - Use meaningful variable and function names - Remove dead code and unused imports - Add type annotations where applicable ## Output Format Provide the refactored code with explanations of changes made.
Systematic debugging help
Debug this issue:
Error: {{error}}
Code: {{code}}
Tried: {{attempts}}
Explain the error, root cause, fix, and prevention.Turn AI into a domain expert
You are an expert {{role}} with {{years}} years of experience in {{domain}}. Be precise, professional, and provide actionable insights.