AGENT SKILL
component-composition
Use before building UI with local components, Storybook, shadcn, Radix, a private registry, or another component library; verifies available components, props, states, and composition choices.
- License 许可
- Apache-2.0
- 最近更新
- 2026-08-14
- Stars
- ★ 19
- Forks
- 2
01 前言 Front Matter
- name
- component-composition
- description
- Use before building UI with local components, Storybook, shadcn, Radix, a private registry, or another component library; verifies available components, props, states, and composition choices.
03 SKILL.md 正文
Component Composition
Use this skill before introducing new UI primitives or composing a page from an existing component system.
Workflow
- Inspect project-local components, Storybook stories, docs, exports, and examples.
- Identify the smallest set of components needed for the surface and states.
- Verify props, variants, accessibility behavior, and styling conventions from source or docs.
- Use shadcn or registry components only when the project stack and ownership model support them.
- Use Radix-like primitives as behavior references when local components need accessible interaction patterns.
- Avoid broad new UI-library recommendations when the target project already has a component system.
Output
Return:
- component inventory used
- composition plan
- missing component or state gaps
- prop/API assumptions verified from source
- implementation notes
Do not invent props or import paths from component names.
04 同仓库更多 Skills
example-skill
暂无简介
★ 19
su-status
从 docs 人读真相源与 .ccb 协调件读取当前项目、Requirement 或子任务状态。
★ 19
su-revise-breakdown
根据用户反馈重写 Requirement breakdown draft。
★ 19
su-review
审查执行回执、diff 和验证证据,决定通过、返工、replan 或升级用户。
★ 19
su-resume
从 docs 人读真相源与 .ccb 协调件恢复 paused/deferred/in-progress 主体的上下文。
★ 19
su-reconcile
AI-native 自检 docs 人读真相源、.ccb 协调件与 Console 投影漂移,并按审批结果执行修复。
★ 19