refactoring-workflow

Refactor legacy PHP-Nuke modules into an interface-driven Repository/Service/View pattern.

1|Updated Jan 26, 2020
One-click install
npx skills add https://github.com/a-jay85/IBL5 --skill refactoring-workflow-a-jay85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactoring-workflow
Source: https://github.com/a-jay85/IBL5/tree/main/.claude/skills/refactoring-workflow
Command: npx skills add https://github.com/a-jay85/IBL5 --skill refactoring-workflow-a-jay85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of refactoring outdated PHP-Nuke modules into a modern, maintainable architecture, improving code quality and developer efficiency.

Core Features & Use Cases

  • Interface-Driven Architecture: Guides the transformation of legacy modules to a Repository/Service/View pattern.
  • Structured Refactoring Steps: Provides a clear, nine-step process from analysis to production validation.
  • Use Case: You have a legacy PHP-Nuke application with many modules that need to be updated to a modern PHP standard. Use this Skill to guide the refactoring of one of these modules.

Quick Start

Use the refactoring-workflow skill to refactor the legacy player module into the modern interface-driven architecture.

Frequently Asked Questions about refactoring-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy PHP-Nuke modules into a modern architecture?

To refactor legacy PHP-Nuke modules, you follow a structured nine-step workflow that transforms outdated code into a modern interface-driven Repository/Service/View pattern. This enforces strict type declarations and PHPDoc standards to improve maintainability.

What is the Repository and Service pattern for PHP code modernization?

The Repository and Service pattern for PHP code modernization separates data access from business logic by using interface-driven architectures. Database access is handled via a BaseMysqliRepository using prepared statements, while services manage the application's core operations.

How do I migrate legacy PHP database queries to prepared statements?

You migrate legacy PHP database queries to prepared statements by implementing a BaseMysqliRepository during the refactoring workflow. This enforces secure database access patterns while transitioning modules into the modern Repository/Service/View structure.

Can I use this refactoring workflow for PHP applications that are not PHP-Nuke?

This refactoring workflow specifically targets legacy PHP-Nuke modules, guiding their transformation into a modern PHP structure. While the interface-driven Repository/Service/View pattern is broadly applicable, the workflow's nine steps are tailored to PHP-Nuke modernization.

What are the steps to enforce strict type declarations in legacy PHP code?

Enforcing strict type declarations in legacy PHP code occurs within a defined nine-step refactoring workflow that analyzes, restructures, and validates modules into a modern interface-driven architecture. This process ensures production readiness and maintainability.