From hone-skills
Surfaces magic numbers, unexplained string literals, hardcoded URLs, configuration values buried in code, and other "magical" values that should be named constants or config entries. Use when you want a weekly sweep for unnamed literals. Do NOT use for style or formatting audits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hone-skills:magic-number-huntThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scans source files for literal values that lack explanatory names:
Scans source files for literal values that lack explanatory names: numeric magic numbers, unexplained string constants, hardcoded URLs, embedded credentials patterns, timeout/retry values, threshold values, and configuration buried inline. Produces a prioritized list of findings with file paths, line numbers, the offending literal, and a suggested named constant or config key.
vendor/, node_modules/, .git/,
third_party/), generated files, and binary assets.foo(true, false)
where the meaning is unclear without a named parameter.high (likely config leak or unexplained
threshold), medium (unnamed numeric/string constant), or low
(borderline case, may be intentional).MAX_RETRY_ATTEMPTS = 3 in config module").Produce a Markdown report with:
src/http/client.ts into a config
object").MAGIC_NUMBER_1).low severity rather than omitting or inflating.npx claudepluginhub ckorhonen/hone-skillsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.