AI assistance
Ce contenu n’est pas encore disponible dans votre langue.
Use the package-owned yii2-localeurls-configuration skill for language URL configuration, canonical redirects,
persistence, and request isolation. Use the guides directly for ordinary reading; translation writing and unrelated
routers do not need this skill.
The canonical source is
skills/yii2-localeurls-configuration/SKILL.md. The
.agents/skills/ and .claude/skills/ entries point to that source for local discovery.
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/localeurls 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”From the application root, list the source before installing:
npx skills@1.7.2 add yii2-extensions/localeurls --listnpx skills@1.7.2 add yii2-extensions/localeurls --skill yii2-localeurls-configurationSelect Codex, Claude Code, or OpenCode in the installer as appropriate. Installation, discovery, native loading, and successful configuration are different outcomes: verify each one before reporting it. An installed skill does not install Composer dependencies.
Prefer this checkout’s configuration guide and installed source at the same revision. When a hosted guide is unavailable, say so and use the local guide; do not guess an API endpoint. Run the relevant package checks after changes. Keep session/CSRF/cookie validation and application routes intact, and distinguish direct manager tests from an actual worker or browser run.
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-localeurls-configuration 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-localeurls-configurationConfigure a language alias and explicit default language for the installed locale URL manager. Show checks for twosuccessive request objects, an uncoded URL and a canonical redirect while retaining query parameters correctly.Inspect the installed revision first. Do not install dependencies or change files without authorization.Natural selection
Section titled “Natural selection”After a French request, an ignored URL keeps the wrong language in my long-lived application. How can I test defaultlanguage reset and ensure that processed Request instances are not reused?Verify the outcome
Section titled “Verify the outcome”Assert route, language, generated URL and redirect target for separate request objects. Direct parsing does not prove browser cookie exchange. 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.