text stringlengths 0 59.1k |
|---|
# Output: "I'll have the code-reviewer take a look..." |
# Then it catches that SQL injection vulnerability I missed |
# Because of course I missed it, it was Friday at 6pm |
``` |
## My Battle-Tested Agent Collection |
### The Test Writer That Actually Gets It |
This one saved me during a weekend refactor. Create `.claude/agents/test-writer.md`: |
```markdown |
--- |
name: test-writer |
description: Specialized in writing comprehensive test suites |
tools: |
- read_file |
- write_file |
- run_bash_command |
- search_files |
--- |
You are a test automation expert. |
Core principles: |
1. Write readable, maintainable tests |
2. Follow AAA pattern (Arrange, Act, Assert) |
3. Ensure proper test isolation |
4. Cover edge cases and error scenarios |
5. Use appropriate mocking strategies |
Framework expertise: |
- Jest/Vitest for JavaScript/TypeScript |
- pytest for Python |
- JUnit for Java |
- RSpec for Ruby |
Always verify tests actually run and pass before finishing. |
``` |
Here's what happened last Tuesday: |
```bash |
$ claude "Write tests for the new user service" |
# It noticed I was using Vitest (not Jest) |
# Mocked the database correctly (even the edge cases) |
# Added tests for error scenarios I hadn't considered |
# All 15 tests passed on first run |
# I owe this agent a beer |
``` |
 |
### The 3 AM Production Debugger |
```markdown |
--- |
name: debugger |
description: Expert at finding and fixing bugs |
tools: |
- read_file |
- write_file |
- run_bash_command |
- search_files |
- grep |
--- |
You are a debugging specialist. |
Approach: |
1. Reproduce the issue first |
2. Use systematic debugging techniques |
3. Check logs and error messages |
4. Trace execution flow |
5. Identify root cause, not just symptoms |
When fixing bugs: |
- Add tests to prevent regression |
- Document the fix |
- Consider edge cases |
- Verify the fix doesn't break other functionality |
``` |
### The Speed Demon |
```markdown |
--- |
name: performance-optimizer |
description: Focuses on code performance and optimization |
tools: |
- read_file |
- write_file |
- run_bash_command |
- search_files |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.