state-machine
在一个临时页面上渲染你所选组件的每个状态,配有模拟数据和切换器,便于你逐个状态进行开发。
机器翻译查看英文原文
Renders every state of a component you choose on a throwaway page, with mock data and a switcher, so you can work on each state.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- State machine
- 1. Scope one component
- 2. Find the states in the code
- 3. Build the throwaway page
- 4. Feed each state at the data boundary
- 5. Add the switcher
- 6. Confirm every state renders, then hand over
- Re-check every state after each change
This skill takes one component and renders it on a throwaway page in every state it can be in. Mock data feeds each state, a switcher flips between them and the page is deleted in one step when you are done. It is a workbench, not a review. The page stays up while the user works on the visuals, one state on screen and every other a keypress away. Stacking hostile scenarios on one page for a single look is break, exploring alternative designs is variant and reviewing finished work is interface-review. One component per run: the audit log table, the network panel, the billing card. "The settings page" spans several, so list them and ask which one. Restate it in one sentence: what the component shows, where it renders in production and where its data comes from. The states are the branches the component already has. Read it and its data hooks for every one: | Kind | States | | --- | --- | | Data | Loading, empty, error, one item, a typical set, a set long enough to scroll or paginate, some requests resolved and others pending, stale data refetching | | Account | Plan tier, role and permission checks, an owner versus a member | | Feature | Flags, trials, limits reached, a disabled or l
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- jakubkrehel/skills
- 源文件
- skills/state-machine/SKILL.md
- 固定版本
- 8b254eb75dadf3615a6abce87aed28e1b6e4d77c
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Jakub Krehel Skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T14:00:45.082Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。