fix-grammar
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFix 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:
- the file completely
Read - Apply grammar and spelling corrections
- to update file with corrections
Edit
-
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
-
解析文件:将参数拆分为单独的文件路径
- 如果未指定文件则停止 - 询问用户提供文件路径
-
确定处理策略:
- 单个文件:直接处理
- 多个文件:启动并行的fix-grammar agents
-
单个文件模式:
- 完整文件内容
读取 - 应用语法和拼写修正
- 文件以更新修正内容
编辑
-
多个文件模式:
- 使用Task工具为每个文件启动fix-grammar agent
- 同时处理所有文件
- 等待所有agents完成处理
-
报告:显示已处理的文件并确认修正完成
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)
- 仅修复拼写和语法错误
- 不得更改语义或词序
- 不得进行任何翻译
- 不得修改特殊标签(MDX、自定义语法、代码块)
- 保留:所有格式、结构、专业术语
- 如果存在标记则移除
""" - 保持每个句子使用的语言不变
- 处理多语言内容(保留外来词、专业术语)
Output Format
输出格式
✓ Fixed grammar in [filename]
- [number] corrections made✓ Fixed grammar in [filename]
- [number] corrections madeRules
规则
- 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
- 仅进行拼写和语法修正
- 多文件并行处理
- 保留所有内容:格式、结构、专业术语
- 最小化修改 - 仅修正错误,不做优化
- 切勿在文件内容中添加解释或评论
用户:$ARGUMENTS