用途:为已有的 uxscii 组件补充交互状态,使其具备 hover、focus、disabled、active、error 等行为。适用于处理 .uxm 文件,或用户希望扩展组件交互时。
主要能力:从 ./fluxwing/components/ 与 ./fluxwing/library/ 读取组件,按组件类型自动添加标准状态(如 button 加 hover、active、disabled;input 加 focus、error、disabled),也支持用户指定只加某几个状态。会同时更新 .uxm 元数据与 .md ASCII 模板,保留原有元数据、变量、状态与 props,仅更新 modified 时间戳,并跳过重复状态。
使用方式:先定位组件,确认要添加的状态,读取 {component-name}.uxm 与 {component-name}.md,向 behavior.states 数组插入状态定义,在 .md 中追加对应 ASCII 段落,然后校验: uv run {SKILL_ROOT}/../uxscii-component-creator/scripts/quick_validate.py ./fluxwing/components/{component-name}.uxm {SKILL_ROOT}/../uxscii-component-creator/schemas/uxm-component.schema.json
适用场景:为按钮、输入框、复选框、下拉框、链接、卡片、弹窗、提示、徽章、导航、开关、滑块、标签页、列表、表格等组件补充交互状态。
限制:仅处理 uxscii 组件与 .uxm/.md 文件;不修改已有状态;组件不存在或写入失败时会报错;具体平台、收费与效果资料暂未提供。