一键导入
react19
React 19 conventions in ONE sites — client islands, @oneie/react hooks, no useEffect for ONE data. Invoke when editing .tsx components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
React 19 conventions in ONE sites — client islands, @oneie/react hooks, no useEffect for ONE data. Invoke when editing .tsx components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Astro 7 conventions for ONE sites — plugin wiring via one.config.ts, OneChat/OneTrack placement, Cloudflare SSR. Invoke when editing .astro files or astro.config.mjs.
Summarises any document to the requested length.
Use the ONE backend (@oneie/sdk) from this frontend via the plugin-backend wrapper. Invoke when reading/writing ONE data in API routes or SSR.
shadcn/ui under the ONE 6-token design system — CSS var tokens only, no hex, add components via the CLI. Invoke when editing src/components/ui/ or adding a primitive.
| name | react19 |
| description | React 19 conventions in ONE sites — client islands, @oneie/react hooks, no useEffect for ONE data. Invoke when editing .tsx components. |
React components are islands. A .tsx only runs in the browser when an .astro mounts it with a directive:
<Counter client:load /> <!-- hydrate immediately -->
<Chart client:visible /> <!-- hydrate when scrolled into view -->
A .tsx with no client:* directive renders to static HTML — no interactivity.
import { useSignal, useMark } from '@oneie/react'
function Likes({ pathId }: { pathId: string }) {
const strength = useSignal(pathId, 'strength')
const mark = useMark(pathId)
return <button onClick={() => mark()}>{strength} ♥</button>
}
Do not useEffect(() => fetch(...)) for ONE data — the hooks own subscription + the closed loop (mark/warn).
use() / transitions for async UI; avoid manual loading-state useState ladders.children are reserved slot content — never use children as a data prop on a client:only island (it silently renders nothing).useEffect — use @oneie/react hooks..tsx expecting interactivity without a client:* directive.