·rector-developer
{}

rector-developer

Build Rector PHP rules that transform PHP code via AST. Use when asked to create, modify, or explain Rector rules for PHP code transformations. Rector rules use the PHP-Parser AST and PHPStan type analysis. Triggers on requests like "write a Rector rule to...", "create a Rector rule that...", "add a Rector rule for...", or when working in a rector-src or rector-based project and asked to implement code transformation logic.

9Installs·0Trend·@peterfox

Installation

$npx skills add https://github.com/peterfox/agent-skills --skill rector-developer

How to Install rector-developer

Quickly install rector-developer AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/peterfox/agent-skills --skill rector-developer
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: peterfox/agent-skills.

SKILL.md

View raw

Rector transforms PHP code by traversing the PHP-Parser AST, matching node types, and returning modified nodes from refactor().

| null | No change, continue traversal | | $node (modified) | Replace with modified node | | Node[] (non-empty) | Replace with multiple nodes | | NodeVisitor::REMOVENODE | Delete the node |

Rules live at: rules/[Category]/Rector/[NodeType]/[RuleName]Rector.php Tests live at: rules-tests/[Category]/Rector/[NodeType]/[RuleName]Rector/

Build Rector PHP rules that transform PHP code via AST. Use when asked to create, modify, or explain Rector rules for PHP code transformations. Rector rules use the PHP-Parser AST and PHPStan type analysis. Triggers on requests like "write a Rector rule to...", "create a Rector rule that...", "add a Rector rule for...", or when working in a rector-src or rector-based project and asked to implement code transformation logic. Source: peterfox/agent-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/peterfox/agent-skills --skill rector-developer
Category
{}Data Analysis
Verified
First Seen
2026-03-10
Updated
2026-03-10

Browse more skills from peterfox/agent-skills

Quick answers

What is rector-developer?

Build Rector PHP rules that transform PHP code via AST. Use when asked to create, modify, or explain Rector rules for PHP code transformations. Rector rules use the PHP-Parser AST and PHPStan type analysis. Triggers on requests like "write a Rector rule to...", "create a Rector rule that...", "add a Rector rule for...", or when working in a rector-src or rector-based project and asked to implement code transformation logic. Source: peterfox/agent-skills.

How do I install rector-developer?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/peterfox/agent-skills --skill rector-developer Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/peterfox/agent-skills

Details

Category
{}Data Analysis
Source
skills.sh
First Seen
2026-03-10