AI assistance
این محتوا هنوز به زبان شما در دسترس نیست.
The canonical source is skills/yii2-frankenphp-worker/SKILL.md. It guides
factory binding, native worker setup, bridge finalization, and request isolation.
Install in an application
Section titled “Install in an application”Automatic Composer installation
Section titled “Automatic Composer installation”Complete the
one-time application setup to enable
llm/skills and set auto-sync to true in skills.json. Approve yii2-extensions/franken-php explicitly in
dependencies.composer.trusted. The installed package must include its skill bundle; its extra.skills.source declares
the directory.
composer installcomposer skills:showWith auto-sync enabled, later dependency installs and updates synchronize the skill automatically; no per-skill
installer is required. If auto-sync is false, run composer skills:update after dependency installation or updates.
Optional npx installation
Section titled “Optional npx installation”For the optional npx workflow, list the source before copying its skill:
npx skills@1.7.2 add ./vendor/yii2-extensions/franken-php --listnpx skills@1.7.2 add ./vendor/yii2-extensions/franken-php \ --skill yii2-frankenphp-worker --agent claude-code codex opencodeThe source can also be an absolute checkout path. To use GitHub, replace the source with yii2-extensions/franken-php
and list first to confirm the selected revision contains the skill. Keep project scope; --copy creates a snapshot that
must be refreshed when the package is upgraded.
Composer installation alone does not expose skills under vendor/ to clients opened at the application root. For manual
setup, copy or link the complete skills/yii2-frankenphp-worker/ directory to a client discovery path:
| Client | Project path | Explicit activation |
|---|---|---|
| Claude Code | .claude/skills/yii2-frankenphp-worker/SKILL.md | /yii2-frankenphp-worker |
| Codex | .agents/skills/yii2-frankenphp-worker/SKILL.md | $yii2-frankenphp-worker or the skill picker |
| OpenCode | .opencode/skills/yii2-frankenphp-worker/SKILL.md or .agents/skills/ | Ask it to load yii2-frankenphp-worker |
The installer uses .agents/skills/ for Codex and OpenCode, and .claude/skills/ for Claude Code. Keep one editable
source. This checkout’s discovery links point to skills/; avoid duplicate installations in a client’s search paths.
Verify installation and use
Section titled “Verify installation and use”- Installation: verify the directory and YAML frontmatter at the selected client path.
- Discovery: open a fresh client session at the application root and check the skill list or picker.
- Activation: invoke the skill and verify that its body was loaded. Automatic activation is model-dependent.
- Consultation: read the relevant package guide or source signature; avoid loading an entire API catalog.
- Functional result: run the migration checks through FrankenPHP.
Installer --list proves installer discovery only. It does not prove native client activation or runtime success.
Example prompts
Section titled “Example prompts”Start a fresh client session at the application root. The explicit example uses Codex’s $skill-name notation; use
/yii2-frankenphp-worker in Claude Code or the installed client’s native skill mechanism. Do not paste the skill body
and count that as native activation. These are tasks to execute and verify, not claims that an evaluation has passed.
Explicit invocation
Section titled “Explicit invocation”$yii2-frankenphp-workerReview a FrankenPHP worker entry point using the installed PSR Bridge. Show factory bindings and exactly onefinalization after emission, with correct GET/HEAD handling and no request-sensitive persistent components.Inspect the installed revision first. Do not install dependencies or change files without authorization.Natural selection
Section titled “Natural selection”Two visitors share a long-lived FrankenPHP worker. How can I verify that a missing session cookie or second requestwithout an upload does not inherit the previous visitor state?Verify the outcome
Section titled “Verify the outcome”Check finalization count and request isolation with fixtures, then distinguish those results from an actual FrankenPHP server run. Record native loading evidence separately from configuration review, executable checks and browser/runtime results. For a negative selection control, ask an unrelated question in a fresh session and confirm this package skill is not loaded. Keep evaluation traces private; report unavailable checks rather than treating discovery as execution.