框架核心工程师-路由事件与扩展

Framework core engineer skill for routing, events, hooks, extends, and extension-point contract design.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "框架核心工程师-路由事件与扩展" with this command: npx skills add aiweline/core-routing-extension

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.md
  • CLAUDE.md
  • dev/ai/skills/weline-routing/SKILL.md
  • dev/ai/skills/extension-points/SKILL.md
  • dev/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

  1. Confirm whether the task belongs to routing, eventing, hooks, or extends contracts.
  2. Read AI-ENTRY.md and the relevant diagrams before inspecting code.
  3. For routes, update the owning controller and module env configuration.
  4. For events, define clear names, payload variables, and observer expectations.
  5. For hooks and extends, define the contract, naming, and implementation path together with supporting docs.
  6. Run route or framework registration commands when required.
  7. 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 --route after 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 --route when 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Use Case Catalog

Comprehensive catalog of what people are doing with OpenClaw. Covers 15+ categories with real examples, sources, and inspiration. Use when asked about OpenCl...

Registry SourceRecently Updated
General

miso

Telegramでマルチエージェント進捗をリアルタイム表示し、ステータス反映・リアクション・ピン連動でミッションの全過程を可視化します。

Registry SourceRecently Updated
General

Horse Sticker Maker

Create and deploy a festive Chinese New Year (Year of the Horse 2026) animated GIF sticker maker web app. Use when the user wants to generate custom horse-th...

Registry SourceRecently Updated
7930jiafar
General

polymarket-sdk

Interact with Polymarket US prediction markets. Use when the user wants to: browse/search prediction markets, check market prices and odds, view portfolio po...

Registry SourceRecently Updated