implement-page-or-components
Implement a new page in the project
📖 中文导读:Implement a new page in the project 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: implement-page-or-components description: Implement a new page in the project license: MIT compatibility: opencode
What I do
- read and understand the plan in provided file carefully.
- ask unclear questions.
- implement svelte kit page with lastest rune api. For example:
import type { PageProps } from "./$types";const { params, data }: PageProps = $props();let isInviteDialogOpen = $state(false); - import necessary shad cn components from
@repo/ui. For exampleimport * as Card from "@repo/ui/card". Components are already installed so no need to reinstall and check exist or not. - use the
@tanstack/svelte-querylatest api to make api calls if necessary. - use full import of lucide icons import. For example
import UserPlusIcon from "@lucide/svelte/icons/user-plus"; - use data table with
@tanstack/table-coreif need to implement table. Also check out tables fromapps/website/src/lib/components/tablesfor reference. - use
@tanstack/svelte-formif need to implement form. - follow Refactoring UI book design guidelines to implement the UI.
When to use me
Use this when you are going to design and write code to implement page or components. Ask clarifying questions if the you are unclear about features or necessary actions.