Skip to main content

registry

Add or change simple-ai registry items. Dual generate (GitHub + hosted /r), generate:check, mocked gallery and chat-page, ui/_registry.ts + examples, block folders. Load before editing packages/registry or apps/docs/public/r.

Jump to install

Source facts

Repository
Alwurts/simple-ai
Last source activity
September 14, 2026 at 22:38
Detected SKILL.md language
English
Stars
759
Forks
84

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
registry
description
Add or change simple-ai registry items. Dual generate (GitHub + hosted /r), generate:check, mocked gallery and chat-page, ui/_registry.ts + examples, block folders. Load before editing packages/registry or apps/docs/public/r.
# Registry ## Generate After changing anything under `packages/registry/registry/`: ```bash pnpm --filter @workspace/registry generate pnpm --filter @workspace/registry generate:check ``` Commit all of: `registry.json`, `packages/registry/src/generated.ts`, `apps/docs/public/r`. Do not hand-edit those outputs. `generate:check` diffs all three and parses items with `registryItemSchema` from `shadcn/schema`. ## Item source - **UI** — one file in `packages/registry/registry/ui/<name>.tsx` and a row in `ui/_registry.ts`. `item.files[].path` is relative to `ui/`. - **Demos** — `packages/registry/registry/examples/<name>-demo.tsx`. Docs only. Point at them with `preview` (extensionless path under `registry/`). Do not add demos to `registry.json`. - **Blocks** — `packages/registry/registry/blocks/<name>/` with `item.ts`. `item.files[].path` is relative to that directory. `preview` is the extensionless file inside the block folder. If the item has `docs` or `envVars`, keep them aligned with `apps/docs/content/docs/installation.mdx`. ## Catalog `apps/docs/content/docs/components/meta.json` is the public list. Items not on that list can still exist as registry internals (`shell`, `reasoning` for `chat-page`). Do not add docs pages for internals just because the item exists. ## Gallery stays mocked `chat-page` and the blocks gallery use the scripted mock. Do not point the docs site at a live `/api/chat`. A consumer app can switch `chat-transport.ts` after add; that is outside this repo's gallery. ## Checks before a PR ```bash pnpm --filter @workspace/registry generate pnpm --filter @workspace/registry generate:check pnpm typecheck pnpm lint:check ```
View on GitHub