mass-remediate-pattern
Installation
SKILL.md
Mass Remediate Pattern
Safe, project-wide remediation of a dangerous or incorrect code pattern using structured search and replace (grep + sed/replace).
Input
- Target Pattern: The dangerous code pattern to find (e.g.,
jsonify({'error': str(e)})). - Replacement Pattern: The safe replacement (e.g.,
jsonify({'error': 'Internal Server Error'})). - Scope: Directories or file types to target.
Process
Phase 1: Discovery
- Use
grep_searchto identify all occurrences of the pattern across the codebase. - Log the total count and list of unique files affected.
- Present a sample of the matches to the user to confirm the pattern is correctly identified.