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.zipInstalls 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.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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-refactor-php-mediawiki (this skill) | 0 | 2mo | No flags | Intermediate |
| php-best-practices | 15 | 1mo | No flags | Beginner |
| php-pro | 13 | 4mo | No flags | Intermediate |
| php-guidelines-from-spatie | 6 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
php-best-practices
HoangNguyen0403
PHP best practices, PSR standards, and code quality guidelines.
php-pro
sickn33
Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications.
php-guidelines-from-spatie
freekmurze
Describes PHP and Laravel guidelines provided by Spatie. These rules result in more maintainable, and readable code.
laravel-best-practices
binotaliu
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strateg
check-method-length
dykyi-roman
Analyzes PHP code for method length issues. Detects methods exceeding 30 lines, single responsibility violations, extract method opportunities.
woocommerce-code-review
woocommerce
Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality.