l-text-fix-typos
Fix typos, problematic phrasing, and rule violations in the latest article using the text-fixer subagent.
Text Fix Typos Command
Fix typos and rule violations in the latest article using the text-fixer subagent.
Your Task
1. Find the Target Article
Find the article in /src/mdx/notes/. Use these strategies in order:
- Check current unstaged changes (PRIMARY) - Run
git diff --name-onlyto see files with unstaged changes. This is the most likely target since the user just edited the file. - Check recent commits - Run
git log --oneline -5 --name-onlyfor recently committed files - Check file modification times - Use
find src/mdx/notes -name "*.mdx" | xargs ls -lt | head -10
If unclear, use AskUserQuestion to let user choose from candidates.
2. Launch Typo Fixer
Use the Task tool with subagent_type: "text-fixer" and provide:
- The absolute file path to fix
Example prompt:
Fix typos and rule violations in this file:
/path/to/article.mdx
3. Show Results
After the subagent completes, show the user what was fixed.
Arguments
$ARGUMENTS - Optional: specific file path to fix