config-extractor

Community

Centralize hardcoded values, simplify maintenance.

AuthorMichael0520
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Hardcoded values, magic numbers, and scattered business rules make code difficult to maintain, update, and understand. This Skill automates the extraction of these values into centralized, type-safe configuration files.

Core Features & Use Cases

  • Magic Number & String Detection: Automatically identifies numeric constants, hardcoded strings, and repeated conditional logic.
  • Config-Driven Patterns: Transforms identified values into structured configuration objects for business constants, permission mappings, validation rules, and feature flags.
  • Type Safety with as const: Ensures extracted configurations are type-safe, improving code reliability and developer experience.
  • Use Case: You're reviewing a piece of code with if (attempts > 3) or if (role === 'admin'). Activate this Skill by saying "extract hardcoded values" to move these into a config/auth.config.ts or config/permissions.config.ts file.

Quick Start

Say "extract hardcoded values" when reviewing code with magic numbers or hardcoded strings.

Dependency Matrix

Required Modules

None required

Components

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: config-extractor
Download link: https://github.com/Michael0520/milo-claude/archive/main.zip#config-extractor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.