rustor-rule-creator

Generate Rust rule scaffolds from PHP refactoring patterns with tests and registration.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/borisyanez/rustor --skill rustor-rule-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rustor-rule-creator
Source: https://github.com/borisyanez/rustor/tree/main/.claude/skills/rustor-rule-creator
Command: npx skills add https://github.com/borisyanez/rustor --skill rustor-rule-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts PHP refactoring patterns into Rust rule scaffolds, enabling automation of rule generation, tests, and integration within the Rustor project.

Core Features & Use Cases

  • Generate Rust rule files from PHP patterns, including before/after code samples.
  • Scaffold tests, register rules, and validate builds with cargo test to accelerate rule development.
  • Use when implementing new refactoring rules, modernizing PHP syntax, or adding transformations in rustor.

Quick Start

Run the Rustor Rule Creator to generate a new Rust-based PHP rule, including its tests and registration scaffolding.

Frequently Asked Questions about rustor-rule-creator

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

FAQPage Schema
How do I generate Rust rules for PHP refactoring patterns?

You can generate Rust rules for PHP refactoring patterns by providing before and after code samples, which automatically scaffolds the Rust source files, test suites, and registration code needed for the transformation.

Can I automate converting PHP patterns to array_find, array_any, or array_all in Rust?

Yes, automating the conversion of PHP patterns to array_find, array_any, and array_all is supported by generating the corresponding Rust-based refactoring rules and their integrated test scaffolds.

Does the rule generator handle test scaffolding and cargo test validation for new PHP refactors?

The rule generator handles test scaffolding and cargo test validation by automatically creating test suites for new rules and validating the build integration through cargo test.

What is the best way to modernize PHP syntax using Rust rule generation?

The best way to modernize PHP syntax is to use automated Rust rule generation to define the transformation logic, generate the source files, and scaffold the necessary tests for the syntax upgrade.

Do I need to manually register newly created refactoring rules in the rustor project?

No, you do not need to manually register newly created refactoring rules because the generation process includes automatic rule registration scaffolding within the rustor project build.

What PHP syntax transformations are supported by the Rust rule generator?

Supported PHP syntax transformations include modernizing syntax and converting specific patterns to array_find, array_any, and array_all functions through generated Rust rules.