ab-test-analysis
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes…
Modernize and improve legacy codebases while maintaining functionality. Use when you need to refactor old code, reduce technical debt, modernize deprecated patterns, or improve code maintainability without breaking existing behavior.
$ npx -y skills add aj-geddes/useful-ai-prompts --skill refactor-legacy-code --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/refactor-legacy-codeContext preview
The summary Claude sees to decide when to auto-load this skill.
Modernize and improve legacy codebases while maintaining functionality. Use when you need to refactor old code, reduce technical debt, modernize deprecated patterns, or improve code maintainability without breaking existing behavior.
name: refactor-legacy-code description: > Modernize and improve legacy codebases while maintaining functionality. Use when you need to refactor old code, reduce technical debt, modernize deprecated patterns, or improve code maintainability without breaking existing behavior.
This skill helps you systematically refactor legacy code to improve maintainability, readability, and performance while preserving existing functionality. It follows industry best practices for safe refactoring with comprehensive testing.
First, analyze the legacy code to understand:
# Review the codebase structure tree -L 3 -I 'node_modules|dist|build' # Check for outdated dependencies npm outdated # or pip list --outdated, composer outdated, etc. # Identify code complexity hotspots # Use tools like: # - SonarQube for code smells # - eslint for JavaScript # - pylint for Python # - RuboCop for Ruby
Detailed implementations in the `references/` directory:
| Guide | Contents | |---|---| | [Code Assessment](references/code-assessment.md) | Code Assessment | | [Establish Safety Net](references/establish-safety-net.md) | Establish Safety Net | | [Incremental Refactoring](references/incremental-refactoring.md) | Incremental Refactoring | | [Modernize Patterns](references/modernize-patterns.md) | Modernize Patterns | | [Reduce Dependencies](references/reduce-dependencies.md) | Reduce Dependencies, Documentation | | [Complete Refactoring Example](references/complete-refactoring-example.md) | Complete Refactoring Example | | [Benefits Achieved](references/benefits-achieved.md) | Benefits Achieved |
488 production-ready AI prompts, all following a standardized template with validated quality gates. Transform ChatGPT, Claude, and other AI assistants into expert consultants.
Repo: aj-geddes/useful-ai-prompts
Design and analyze A/B tests, calculate statistical significance, and determine sample sizes…
Implement Role-Based Access Control (RBAC), permissions management, and authorization…
Implement WCAG 2.1/2.2 accessibility standards, screen reader compatibility, keyboard…
Test web applications for WCAG compliance and ensure usability for users with disabilities.…
Plan and execute effective sprints using Agile methodologies. Define sprint goals, estimate…
Implement comprehensive alert management with PagerDuty, escalation policies, and incident…