CO

code-refactor-php-mediawiki

Improves PHP code structure in MediaWiki extensions using standardized clean-code practices.

Install

mkdir -p .claude/skills/code-refactor-php-mediawiki && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12241" && unzip -o skill.zip -d .claude/skills/code-refactor-php-mediawiki && rm skill.zip

Installs to .claude/skills/code-refactor-php-mediawiki

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Refactor PHP code in a MediaWiki extension without changing behaviour. Use when asked to improve structure, extract methods, rename classes, or apply clean-code improvements to PHP files in a MediaWiki context.
210 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Refactor PHP code without altering its behavior.
  • Improve code structure by extracting methods or renaming classes.
  • Apply clean-code improvements to PHP files.
  • Ensure functional consistency during refactoring.
  • Run pre-configured quality checks.

How it works

The skill applies refactoring patterns to PHP files within a MediaWiki extension, ensuring that the code's behavior remains unchanged while improving its structure and applying clean-code principles.

Inputs & outputs

You give it
PHP code in a MediaWiki extension.
You get back
Refactored PHP code with improved structure and clean-code improvements.

When to use code-refactor-php-mediawiki

  • Refactoring PHP methods
  • Improving code structure
  • Renaming classes

About code-refactor-php-mediawiki

Applies refactoring patterns to PHP files while ensuring functional consistency and running pre-configured quality checks.

>

When not to use it

  • When the refactoring is intended to change the behavior of the code.
  • When the code is not PHP or not within a MediaWiki context.

Limitations

  • The refactoring must not change the behavior of the code.
  • The skill is specific to PHP code in a MediaWiki extension.
  • The skill relies on pre-configured quality checks.

How it compares

This skill focuses on behavior-preserving refactoring within a specific MediaWiki PHP context, which is more constrained and specialized than general code refactoring.

Compared to similar skills

code-refactor-php-mediawiki side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
code-refactor-php-mediawiki (this skill)02moNo flagsIntermediate
php-best-practices151moNo flagsBeginner
php-pro134moNo flagsIntermediate
php-guidelines-from-spatie66moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry