php-structured-edit

Installation
SKILL.md

PHP Structured Edit

Use php-ast-edit for PHP writes while this skill is active. PHP snippets are construction input: the tool parses them, changes the AST, and prints the result. Do not fall back to text mutation after a rejected transaction; inspect the error and correct its cause.

First use

Resolve the executable once: repository bin/php-ast-edit, project vendor/bin/php-ast-edit, installed php-ast-edit, or this skill's scripts/php-ast-edit wrapper. Run help if needed. A missing parser requires installing the engine, not repeated edit attempts.

Existing files use format-preserving printing by default. No normalization is needed to start. doctor explains optional canonical configuration; it is not a prerequisite for every edit. Read the formatting reference only when formatting setup is part of the task.

Workflow

Installs
2
First Seen
Aug 19, 2026