Fix Errors
Fix all ESLint and TypeScript errors by breaking them into areas and processing in parallel.
Workflow
- DISCOVER COMMANDS: Check
package.jsonfor exact script names
- Look for: lint, typecheck, type-check, tsc, eslint, prettier, format
- RUN DIAGNOSTICS:
- Run pnpm run lint (or equivalent) - Run pnpm run typecheck or tsc --noEmit - Capture all error output
- ANALYZE ERRORS:
- Extract file paths from error messages - Group errors by file location - Count total errors and affected files
- CREATE ERROR AREAS:
- MAX 5 FILES PER AREA - Group related files together (same directory/feature) - Example: Area 1: [file1, file2, file3, file4, file5]
- PARALLEL PROCESSING: Launch snipper agents for each area
- Use Task tool with multiple agents simultaneously - Each agent processes one area (max 5 files) - Provide specific error details for each file
- VERIFICATION: Re-run diagnostics after fixes
- Wait for all agents to complete - Re-run lint and typecheck - Report remaining errors
- FORMAT CODE: Apply Prettier (if available)
- Run pnpm run format or equivalent
Snipper Agent Instructions
Fix all ESLint and TypeScript errors in these files:
[list of files with their specific errors]
Focus only on these files. Make minimal changes to fix errors while preserving functionality.Rules
- ALWAYS check package.json first for correct commands
- ONLY fix linting and TypeScript errors
- NO feature additions - minimal fixes only
- PARALLEL ONLY - use Task tool for concurrent processing
- Every error must be assigned to an area
User: $ARGUMENTS