Overview: Before calling `create_shader` or `update_shader`, load this skill. When updating, read every source URI returned by `get_shader` and treat those files as the current source of truth. Always include a `commitMessage` and use the complete replacement `main.ts` in the `files` array, not a diff or partial fragment.
Overview: Before calling `create_generative_plugin` or `update_generative_plugin`, ensure the skill is loaded. The user must provide a concise name, description, and `planKey` during creation. After `create_generative_plugin`, replace the scaffold with the requested experience. Always include a specific `commitMessage` during updates and ensure `versionDescription` and `versionDetail` are included when exposed in the schema.
Overview: Before calling `create_shader` or `update_shader`, load this skill. Identify the shader with `list_shaders`, then call `get_shader`. Use its `type` (`effect` or `fill`) as the required update kind. Read every source URI returned by `get_shader` before editing. If the client cannot read MCP resources, call it with `includeSource: true`. Treat those files as the current source of truth.
Overview: Before creating or updating a plugin, load this skill and ensure the user has provided a plan key or call `whoami` to resolve it. After `create_generative_plugin`, replace the scaffold with the requested experience and call `update_generative_plugin` with complete replacement content for `code.ts` and `ui.html` files.
Overview: Before starting, confirm the user's intended output (editable Design layers, runnable Code Layer, or standalone Code/Make). If the output is unclear, ask the user to specify and wait for their response before proceeding.
Overview: Before using commands, ensure you have access to the LobeHub CLI and a valid task ID. Use `lh task view <id>` to check task details before making changes. When adding comments, use `lh task comment <id> -m "..."` and mention users via `<mention name="Name" id="user_xxx" />` for notifications.
Overview: Ensure `APP_URL` and `QSTASH_TOKEN` are set in your environment before starting. Define payload types with TypeScript interfaces and create a workflow class with static trigger methods. Use dry-run mode to preview execution without processing actual items.
Overview: Before adding guards, parsing, normalization, timing, or JSON-safe helpers, search `packages/utils` and installed packages. Reuse `@lobechat/utils` or its relevant subpath instead of duplicating helpers across features. Assign `Date.now()` to a constant once and reuse for consistency.
Overview: Always use middleware to inject models into `ctx` instead of creating `new Model(ctx.serverDB, ctx.userId)` inside every procedure. Ensure that the router files are located in `apps/server/src/routers/lambda/<domain>.ts` and that the required imports are included.
Overview: Before running tests, ensure the correct Vitest configuration is in place. For database model tests, use `getTestDB()` and guard BM25/full-text-search blocks with `describe.skipIf(!isServerDB)`. When testing UI components, avoid hand-mocking `@lobehub/ui/base-ui` unless simplified DOM is required; use `~base-ui-stubs` for standard aria semantics.
Overview: Before starting, ensure the file has a real extraction boundary and a repeatable verification surface. Run the existing tests by explicit path and record the pass count. Use `git mv` to move the file and its tests together in a separate commit to keep the extraction diff reviewable on its own.
Overview: Before adding a new route, ensure the route group is selected from `(main)/`, `(mobile)/`, `(desktop)/`, or special flows like `onboarding/`, `share/`. Create only segment files under `src/routes/` and implement layout and page content in `src/features/` by domain. Use `desktopRouter.shared.tsx` for shared Web/Electron route definitions and avoid duplicating routes in platform adapters.