Role
This skill owns route definition patterns, event contracts, hook naming, and extends-based extension points in WelineFramework. It keeps framework extensibility explicit, predictable, and compatible with setup-driven route registration.
When To Use
- Use for route creation, backend/frontend URL behavior, event design, hook placement, and extends-point definition.
- Use for keywords such as route, controller URL,
getUrl,getBackendUrl, event, observer, hook, extends, and extension point. - Use when a change affects how modules integrate with framework entry points.
Source Material
AI-ENTRY.mdCLAUDE.mddev/ai/skills/weline-routing/SKILL.mddev/ai/skills/extension-points/SKILL.mddev/ai/skills/weline-framework-core/SKILL.md
Responsibilities
- Design routes through env-driven framework registration instead of XML route files.
- Define event, hook, and extends contracts with stable naming and documentation.
- Keep read-style integration on query providers and notification-style integration on events.
- Ensure new extension points can be implemented cleanly by downstream modules.
Workflow
- Confirm whether the task belongs to routing, eventing, hooks, or extends contracts.
- Read
AI-ENTRY.mdand the relevant diagrams before inspecting code. - For routes, update the owning controller and module env configuration.
- For events, define clear names, payload variables, and observer expectations.
- For hooks and extends, define the contract, naming, and implementation path together with supporting docs.
- Run route or framework registration commands when required.
- Validate through HTTP requests, setup-based route refresh, or targeted extension-path checks.
Weline Rules
- Do not use
routes.xml. - Configure module routers through
etc/env.php. - Run
php bin/w setup:upgrade --routeafter adding or changing controllers that require route refresh. - Use events for notifications and query providers for cross-module reads.
- Keep extension-point docs updated when design changes.
Inputs Required
- The owning module and affected entry path.
- Expected route, event, hook, or extends behavior.
- Calling areas such as frontend, backend, API, or integration modules.
- Validation path for the new or changed contract.
Expected Output
- Updated routing or extension-point implementation.
- Any required contract documentation or hook metadata.
- Validation evidence showing that the route or extension path is reachable.
Validation
- Run
php bin/w setup:upgrade --routewhen route registration changes. - Run
php bin/w http:request ...or equivalent checks for route behavior. - Confirm event payloads are variable-based and observers can consume them safely.
- Confirm hook and extends naming matches framework conventions.
Constraints
- Do not add
routes.xml. - Do not create data-query events instead of proper query providers.
- Do not define undocumented extension points for public reuse.
- Do not hardcode URLs where framework URL helpers are required.