Salta ai contenuti
PHP Ecosystem
Explore

AI assistance

Questi contenuti non sono ancora disponibili nella tua lingua.

The canonical source is skills/yii2-frankenphp-worker/SKILL.md. It guides factory binding, native worker setup, bridge finalization, and request isolation.

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.

Terminal window
composer install
composer skills:show

With 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.

For the optional npx workflow, list the source before copying its skill:

Terminal window
npx skills@1.7.2 add ./vendor/yii2-extensions/franken-php --list
npx skills@1.7.2 add ./vendor/yii2-extensions/franken-php \
--skill yii2-frankenphp-worker --agent claude-code codex opencode

The 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:

ClientProject pathExplicit 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.

  • 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.

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.

$yii2-frankenphp-worker
Review a FrankenPHP worker entry point using the installed PSR Bridge. Show factory bindings and exactly one
finalization 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.
Two visitors share a long-lived FrankenPHP worker. How can I verify that a missing session cookie or second request
without an upload does not inherit the previous visitor state?

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.

Back to documentation