astro
Astro 7 conventions for ONE sites — plugin wiring via one.config.ts, OneChat/OneTrack placement, Cloudflare SSR. Invoke when…
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.
$ npx -y skills add one-ie/one --skill sdk --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sdkContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: sdk description: 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.
The ONE backend is reached through **`oneClient()`** from `@oneie/plugin-backend` — never the bare `@oneie/sdk` barrel.
// src/pages/api/things.ts
import { oneClient } from '@oneie/plugin-backend'
export async function GET() {
const client = await oneClient() // lazy — reads ONE_API_KEY at call time
const things = await client.list('thing')
return Response.json(things)
}`oneClient()` lazy-imports `@oneie/sdk` inside the factory. **Never** `import '@oneie/sdk'` at module top-level in a route — the SDK runs telemetry at import and that crashes the Cloudflare Worker on init.
The substrate is signal-based. Read via the client; do not poll. Writes return a closed loop (`mark`/`warn`) — never a silent value.
Make Your Ideas Real. Build Apps, Websites and AI Agents with Plain English with Astro, React, Shadcn and Cloudflare
Astro 7 conventions for ONE sites — plugin wiring via one.config.ts, OneChat/OneTrack placement, Cloudflare SSR. Invoke when…
React 19 conventions in ONE sites — client islands, @oneie/react hooks, no useEffect for ONE data. Invoke when editing .tsx…
shadcn/ui under the ONE 6-token design system — CSS var tokens only, no hex, add components via the CLI. Invoke when editing…
Give this workspace a resource type — products, lessons, tickets, whatever the business actually tracks — by writing one TOML…
Put words on this site — a blog post, a docs page, a product, or a live page from ONE's editor. Knows which of the four surfaces…
Take money on this site — a crypto payment link that needs no backend and no account, or a card charge through Stripe. Knows…