patch-replace-all-pitfalls
CommunityPrevent code corruption from bulk regex replacements
Software Engineering#typescript#regex#patch#code safety#syntax verification#replace_all#bulk replacement
Authorfreedomw1987
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Using the patch tool's replace_all feature on source code files with short, reusable tokens like user.role or user.id can corrupt parentheses balance, create malformed expressions, and introduce hard-to-spot syntax errors that break builds.
Core Features & Use Cases
- Safety guardrails for bulk code edits: Explicit rules to avoid dangerous replace_all usage on code files with short tokens.
- Post-replacement verification guidance: Step-by-step instructions to run TypeScript compiler checks to catch syntax errors immediately after bulk replacements.
- Use case: When updating user permission references across a large TypeScript codebase, this skill prevents broken conditional expressions and unbalanced parentheses that would otherwise cause runtime failures.
Quick Start
Use the patch-replace-all-pitfalls skill to safely update all references to user.role in your TypeScript project without introducing syntax errors.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: patch-replace-all-pitfalls Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#patch-replace-all-pitfalls Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.