General
PromptBeginner5 minmarkdown
Untitled Skill
193
Source of truth for all registry items. Follows bundle-based architecture.
Loading actions...
Main instructions and any bundled files for this skill.
Source of truth for all registry items. Follows bundle-based architecture.
src/registry/
├── [bundle]/
│ ├── ui/ # Composable building blocks (registry:ui)
│ ├── components/ # Opinionated UI pieces (registry:component)
│ ├── blocks/ # Full sections/pages (registry:block)
│ ├── examples/ # Demos for ui/components (registry:example)
│ ├── hooks/ # Reusable hooks (registry:hook)
│ ├── styles/ # Semantic tokens (registry:style)
│ └── registry.ts # Bundle entrypoint, combines all items in the bundle into a single TypeScript registry object
└── index.ts # Main registry (combines all bundles, the real **source of truth**)
Bundles: pro-marketing
[bundle]/[type]/_registry.ts (alphabetical order)pnpm registry:buildFor full details: docs/REGISTRY.md
| File | Purpose |
|---|---|
index.ts | Main registry entrypoint |
[bundle]/registry.ts | Bundle entrypoint |
[bundle]/[type]/_registry.ts | Type-specific item definitions |
Use namespaced keys for registry items depending on other items:
import { getNamespacedRegistryDependency, getNamespacedRegistryDependencies } from "@/utils/registry"
registryDependencies: [
"button", // shadcn default
getNamespacedRegistryDependency("announcement"), // → @shadcraft/announcement
...getNamespacedRegistryDependencies("chip", "tagline"), // → @shadcraft/chip, @shadcraft/tagline
]
pnpm registry:build
| File | Generated By |
|---|---|
__index__.tsx | pnpm registry:build |
registry.json (root) | pnpm registry:build |
public/r/*.json | pnpm registry:build |
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
risks