Fix Grammar
Fix grammar and spelling errors in files while preserving formatting and meaning.
Workflow
- •
PARSE FILES: Split arguments into individual file paths
- •STOP if no files specified - ask user for file paths
- •
DETERMINE STRATEGY:
- •Single file: Process directly
- •Multiple files: Launch parallel fix-grammar agents
- •
SINGLE FILE MODE:
- •
Readthe file completely - •Apply grammar and spelling corrections
- •
Editto update file with corrections
- •
- •
MULTIPLE FILES MODE:
- •Use Task tool to launch fix-grammar agent for each file
- •Process all files simultaneously
- •Wait for all agents to complete
- •
REPORT: Show files processed and confirm corrections
Correction Rules
- •Fix ONLY spelling and grammar errors
- •DO NOT change meaning or word order
- •DO NOT translate anything
- •DO NOT modify special tags (MDX, custom syntax, code blocks)
- •PRESERVE: All formatting, structure, technical terms
- •Remove any
"""markers if present - •Keep the same language used in each sentence
- •Handle multilingual content (keep anglicisms, technical terms)
Output Format
code
✓ Fixed grammar in [filename] - [number] corrections made
Rules
- •ONLY spelling and grammar corrections
- •PARALLEL processing for multiple files
- •PRESERVE everything: formatting, structure, technical terms
- •MINIMAL changes - corrections only, no improvements
- •Never add explanations or commentary to file content
User: $ARGUMENTS