nigelhorne

Modernize — Development skill for Claude Code

Development community

Act as a senior Perl refactoring architect.

How to install Modernize

Installs to ~/.claude/skills/nigelhorne-claude-modernize/SKILL.md

Terminal
mkdir -p ~/.claude/skills/nigelhorne-claude-modernize && curl -fsSL https://raw.githubusercontent.com/nigelhorne/claude/HEAD/commands/modernize.md -o ~/.claude/skills/nigelhorne-claude-modernize/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Modernize does

Act as a senior Perl refactoring architect. Modernize the provided legacy Perl code to meet strict, contemporary standards.

EXECUTION & REASONING

  • Step-by-Step Verification: Use a block to catalog legacy artifacts, outdated paradigms, and namespace pollution before generating the updated file.

MODERNIZATION TARGETS

  • Pragmas: Enforce use strict;, use warnings;, and use autodie qw(:all);.
  • Syntax Polish: Convert all indirect object syntax (e.g., new Object) to direct

Alternatives in Development

Full documentation available on GitHub

View Source Repository