centralize-config
CommunityCentralize duplicated config into one source.
Software Engineering#typescript#tdd#refactoring#grep#test verification#hardcoded values#config centralization
Authorluyzkk
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It removes configuration sprawl by finding duplicated or hardcoded values and migrating them into a single, canonical source of truth to prevent inconsistent behavior and missed updates.
Core Features & Use Cases
- Detects scattered configuration: searches for a provided string or pattern across code to locate hardcoded occurrences.
- Maps and validates before changing: inspects nearby context for each match and asks for confirmation so only truly equivalent configs are centralized.
- Performs safe, targeted substitution: replaces occurrences with imports of a constant (typically TypeScript/JS) one by one to avoid broken syntax.
- Verifies via grep and tests: checks that the original literals are gone and runs the test suite to ensure the refactor didn’t break behavior.
Quick Start
Ask it to centralize a value by running: /anti-vibe-coding:centralize-config claude-sonnet-4-5
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: centralize-config Download link: https://github.com/luyzkk/Anti-Vibe-Coding/archive/main.zip#centralize-config 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 471,000+ vetted skills library on demand.