AI assistance
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
The package owns php-forge-coding-standard, a skill for selecting and verifying shared ECS and Rector configurations against a consumer’s minimum PHP version.
Install in an application
Section titled “Install in an application”Automatic Composer installation
Section titled “Automatic Composer installation”Install php-forge/coding-standard as described in the README. Complete the
one-time application setup for
llm/skills, enable auto-sync in skills.json, and explicitly trust php-forge/coding-standard in
dependencies.composer.trusted. The installed package must contain the skill bundle declared by extra.skills.source.
composer installcomposer skills:showWith auto-sync disabled, run composer skills:update after installing or updating dependencies. Installing this package
alone does not register its skill at the application root. Check the synchronizer’s output; Composer success alone does
not prove synchronization or activation.
Optional npx installation
Section titled “Optional npx installation”From the application root, list and install from a checkout containing the skill:
npx skills@1.7.2 add /absolute/path/to/coding-standard --listnpx skills@1.7.2 add /absolute/path/to/coding-standard \ --skill php-forge-coding-standard --agent claude-code codex opencodeAn installed ./vendor/php-forge/coding-standard may be used when that revision contains the bundle. Inspect a remote
source before assuming it is published. Keep project scope and refresh copied skills after upgrades.
Native discovery and activation
Section titled “Native discovery and activation”| Client | Project directory | Explicit invocation |
|---|---|---|
| Codex | .agents/skills/php-forge-coding-standard/ | $php-forge-coding-standard or the skill picker |
| Claude Code | .claude/skills/php-forge-coding-standard/ | /php-forge-coding-standard |
| OpenCode | .agents/skills/php-forge-coding-standard/ | Request the skill through the client’s skill tool |
The checkout links both discovery paths to the canonical directory. Open a fresh session at the application root and check the available skills. Source listing, native discovery, activation and successful task behavior are separate checks; manually reading the skill or supplying its body does not prove native activation.
Example prompts
Section titled “Example prompts”Explicit invocation
Section titled “Explicit invocation”$php-forge-coding-standardPrepare ECS and Rector wrappers for a PHP 8.1 consumer using the installed package. Preserve src and tests paths.Show non-mutating commands and check that the running PHP version does not change the target. Do not installdependencies.Natural selection
Section titled “Natural selection”My project supports PHP 8.1 but runs tools on PHP 8.5. Configure ECS and Rector using the installedphp-forge/coding-standard package, preserve src and tests paths, and show non-mutating checks.Verify the outcome
Section titled “Verify the outcome”Inspect the installed revision and the selected entrypoints. Confirm the ECS builder and Rector closure are used in the correct wrappers, and run the proposed commands against disposable fixtures. Cover an unsupported target and check that dry runs do not modify inputs. Capture native load evidence and the selected source path separately from executable results. As a negative selection control, ask an unrelated question in a fresh session without loading package skills.