1.2 KiB
1.2 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| add-to-registry | Add a component to the registry system for AI tooling | true |
Add to Registry
Add component to registry: $ARGUMENTS
Process
-
Identify component props
- Read the component's TypeScript interface
- Note required vs optional props
- Note default values
-
Update registry.json
- Add full entry with constraints, propsSchema, usage example
- Include textRules for text props (min/max chars)
- Include do/dont guidelines
-
Create component config
- Create
registry/components/[Name].json - Match structure of existing component configs
- Create
-
Create schema file
- Create
registry/schemas/[Name].schema.json - Include name and propsSchema
- Use
?suffix for optional props - Include
(default: 'value')for defaults
- Create
-
Update index.json
- Add entry with category, intent, bestFor, avoidWhen
- Include requires array and import path
-
Update intents.json
- Add component to relevant intent arrays
-
Verify consistency
- Props in schema match component interface exactly
- Optional props marked with
? - Default values documented
Output
Report all updated registry files and confirm props match component.