[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M759C2KKCVR2JYQ5S1S8BC3H":3,"skill-same:01M759C2KKCVR2JYQ5S1S8BC3H":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M759C2KKCVR2JYQ5S1S8BC3H","component-states",null,"State matrix for interactive UI. Use when building or reviewing buttons, links, inputs, tabs, toggles, menus, cards, or controls that need hover, focus, active, disabled, loading, selected, error, keyboard, or ARIA states.","KyaniteLabs\u002Ftastecheck","KyaniteLabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272754061?v=4","01M759BC53CBP4G855GKYWBT57","01M759BC62WJEEKS1TJRVKCE14",12,"MIT","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fcomponent-states\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: component-states\ndescription: >-\n  State matrix for interactive UI. Use when building or reviewing buttons, links,\n  inputs, tabs, toggles, menus, cards, or controls that need hover, focus, active,\n  disabled, loading, selected, error, keyboard, or ARIA states.\n---\n\n# Component States\n\nAn interactive control is a lifecycle, not a resting style. Map applicable states to\nsemantics, visible treatment, and recovery.\n\n## Decision order and evidence\n\n1. Name role, interaction model, owner, and applicable states.\n2. Give each state ARIA\u002FDOM mapping, visible non-color treatment, trigger, and recovery.\n3. Test keyboard, focus-visible, contrast, reduced motion, and async completion.\n\nReport one evidence row per state; `n\u002Fa` needs a subject-absence reason. Hand field validation\nto `form-ux`, emptiness to `empty-states`, and missing tokens back as gaps, never fallbacks.\n\n## Async\u002Fdestructive controls\n\nName one semantic owner; visual states only present its lifecycle.\n\n| State \u002F event | Guard and observable contract |\n|---|---|\n| `ready` \u002F invoke | Click, Enter, Space, and script use one route; accepted work creates a request key. |\n| `confirming` | Use only for irreversible\u002Fbroad\u002Fcascading work; name consequence, move focus in, restore invoker on cancel. |\n| `submitting` | Create key before dispatch; reject duplicates; expose disabled\u002Fbusy and working label. |\n| matching completion | Only matching key settles work; stale results cannot clear busy, alter target, or move focus. |\n| success \u002F failure | Record data first; confirm locally and choose focus, or retain context with nearby error\u002Fretry\u002Fcancel. |\n\nTest real and stale\u002Ffailed completion. If success empties a region, hand it to `empty-states`.\n\n## State matrix\n\nAccount for these states where applicable:\n\n| State | Trigger | Must communicate | CSS |\n|-------|---------|------------------|-----|\n| **Default** | rest | \"this is here \u002F interactive\" | base styles |\n| **Hover** | pointer over | \"you can interact\" (pointer devices only) | `:hover` |\n| **Focus** | keyboard tab \u002F programmatic | \"this is where you are\" (keyboard) | `:focus-visible` |\n| **Active \u002F pressed** | during click\u002Ftap | \"your action registered\" | `:active` |\n| **Disabled** | not available | \"not available, and why\" | `:disabled` \u002F `[aria-disabled]` |\n| **Loading** | async in progress | \"working, wait\" | a `data-loading` \u002F `aria-busy` class |\n| **Selected \u002F current** | chosen \u002F active page | \"this is the active one\" | `[aria-selected]`\u002F`[aria-current]` |\n| **Error \u002F invalid** | failed validation | \"something's wrong here\" | `[aria-invalid]` |\n\nThe first five baseline *any* control; add selected and error where applicable.\n\n## Non-negotiables\n\n- Never ship default-only: applicable states need semantics and non-color signals.\n- Never remove a focus outline without an equally visible replacement; hover is not focus.\n- Explain unavailability; a silent disabled submit is a `form-ux` failure.\n- Async controls prevent duplicate dispatch, expose busy state, and preserve contrast\n  (≥3:1 UI, ≥4.5:1 text); feedback is fast and reduced-motion-safe.\n\n## Implementation starter\n\nRead `assets\u002Fstates-starter.css` for tokenized CSS\u002Freduced-motion details. A missing token is\na gap, never a fallback hex; add the request guard before styling async work.\n\n## State by component\n\n- **Button\u002Flink:** default, hover, focus-visible, active, disabled\u002Floading as applicable;\n  toggles use `aria-pressed`; links retain non-color\u002Fvisited cues.\n- **Toggle \u002F switch:** use `role=\"switch\"` (not `role=\"checkbox\"`) with `aria-checked`;\n  Space toggles, Tab moves focus. Example: `\u003Cbutton role=\"switch\" aria-checked=\"true\">Notifications\u003C\u002Fbutton>`.\n  Screen readers announce \"switch, on\u002Foff\" instead of \"checkbox, checked.\"\n- **Fields:** focus, disabled, filled\u002Freadonly, error, selected\u002Fopen\u002Fchecked states; style a\n  correctly labelled focusable input (`form-ux` owns validation).\n- **Navigation\u002Flist\u002Fmenu:** current\u002Fselected uses `aria-current`\u002F`aria-selected`; pointer\n  and keyboard focus are equally legible.\n- **Overlays:** model open\u002Fclosed and entry\u002Fexit; prefer native Popover\u002F`\u003Cdialog>`; toasts\n  use `role=\"status\"`; hover-only content remains focus-reachable.\n\n## Reference files\n\n- `references\u002Fstates.md` — state semantics, pitfalls, ARIA pairings.\n- `references\u002Fdecision-records.md` — novel-case ADR rules.\n\n## Self-check (per interactive element)\n\nFor each applicable state, confirm visible focus, semantics, non-color contrast, and\nreduced-motion behavior. For async\u002Fdestructive work confirm owner, guard, justified\nconfirmation, duplicate prevention, recovery, and final focus; exercise real and stale\u002F\nfailed completion separately. Do not collapse controls into one checkmark.\n\n## How to deliver\n\nDeliver applicable matrix and lifecycle evidence. Pair with `form-ux`, `empty-states`,\n`micro-motion`, `a11y-pass`, and `color-system` at their boundaries.\n\n\u003C!-- contract:v1:start -->\n## Contract (generated)\n\nCanonical detail: [contract.json](contract.json).\n\n- Route: A control has interaction states missing or inconsistent with its semantics. (+1 in contract.json); avoid: The request is only about form copy or validation timing. (+1 in contract.json)\n- Exclude: Do not invent page-level empty states or validation policy. (+2 in contract.json)\n- Stop \u002F handoff: Stop when the component semantics or interactive states cannot be identified. (+2 in contract.json); receives [design-system-interview, empty-states, improve-existing-website, responsive-layout, spacing-system, tasteroll, theming] -> sends [form-ux, empty-states, a11y-pass, micro-motion, tastecheck-pass]\n- Output: component lifecycle contract and implementation guidance\n- Evidence: `table_with_evidence` with `status`, `reason`, `remediation`, `evidence`, `provenance`.\n\u003C!-- contract:v1:end -->\n","# Component States\n\nAn interactive control is a lifecycle, not a resting style. Map applicable states to\nsemantics, visible treatment, and recovery.\n\n## Decision order and evidence\n\n1. Name role, interaction model, owner, and applicable states.\n2. Give each state ARIA\u002FDOM mapping, visible non-color treatment, trigger, and recovery.\n3. Test keyboard, focus-visible, contrast, reduced motion, and async completion.\n\nReport one evidence row per state; `n\u002Fa` needs a subject-absence reason. Hand field validation\nto `form-ux`, emptiness to `empty-states`, and missing tokens back as gaps, never fallbacks.\n\n## Async\u002Fdestructive controls\n\nName one semantic owner; visual states only present its lifecycle.\n\n| State \u002F event | Guard and observable contract |\n|---|---|\n| `ready` \u002F invoke | Click, Enter, Space, and script use one route; accepted work creates a request key. |\n| `confirming` | Use only for irreversible\u002Fbroad\u002Fcascading work; name consequence, move focus in, restore invoker on cancel. |\n| `submitting` | Create key before dispatch; reject duplicates; expose disabled\u002Fbusy and working label. |\n| matching completion | Only matching key settles work; stale results cannot clear busy, alter target, or move focus. |\n| success \u002F failure | Record data first; confirm locally and choose focus, or retain context with nearby error\u002Fretry\u002Fcancel. |\n\nTest real and stale\u002Ffailed completion. If success empties a region, hand it to `empty-states`.\n\n## State matrix\n\nAccount for these states where applicable:\n\n| State | Trigger | Must communicate | CSS |\n|-------|---------|------------------|-----|\n| **Default** | rest | \"this is here \u002F interactive\" | base styles |\n| **Hover** | pointer over | \"you can interact\" (pointer devices only) | `:hover` |\n| **Focus** | keyboard tab \u002F programmatic | \"this is where you are\" (keyboard) | `:focus-visible` |\n| **Active \u002F pressed** | during click\u002Ftap | \"your action registered\" | `:active` |\n| **Disabled** | not available | \"not available, and why\" | `:disabled` \u002F `[aria-disabled]` |\n| **Loading** | async in progress | \"working, wait\" | a `data-loading` \u002F `aria-busy` class |\n| **Selected \u002F current** | chosen \u002F active page | \"this is the active one\" | `[aria-selected]`\u002F`[aria-current]` |\n| **Error \u002F invalid** | failed validation | \"something's wrong here\" | `[aria-invalid]` |\n\nThe first five baseline *any* control; add selected and error where applicable.\n\n## Non-negotiables\n\n- Never ship default-only: applicable states need semantics and non-color signals.\n- Never remove a focus outline without an equally visible replacement; hover is not focus.\n- Explain unavailability; a silent disabled submit is a `form-ux` failure.\n- Async controls prevent duplicate dispatch, expose busy state, and preserve contrast\n  (≥3:1 UI, ≥4.5:1 text); feedback is fast and reduced-motion-safe.\n\n## Implementation starter\n\nRead `assets\u002Fstates-starter.css` for tokenized CSS\u002Freduced-motion details. A missing token is\na gap, never a fallback hex; add the request guard before styling async work.\n\n## State by component\n\n- **Button\u002Flink:** default, hover, focus-visible, active, disabled\u002Floading as applicable;\n  toggles use `aria-pressed`; links retain non-color\u002Fvisited cues.\n- **Toggle \u002F switch:** use `role=\"switch\"` (not `role=\"checkbox\"`) with `aria-checked`;\n  Space toggles, Tab moves focus. Example: `\u003Cbutton role=\"switch\" aria-checked=\"true\">Notifications\u003C\u002Fbutton>`.\n  Screen readers announce \"switch, on\u002Foff\" instead of \"checkbox, checked.\"\n- **Fields:** focus, disabled, filled\u002Freadonly, error, selected\u002Fopen\u002Fchecked states; style a\n  correctly labelled focusable input (`form-ux` owns validation).\n- **Navigation\u002Flist\u002Fmenu:** current\u002Fselected uses `aria-current`\u002F`aria-selected`; pointer\n  and keyboard focus are equally legible.\n- **Overlays:** model open\u002Fclosed and entry\u002Fexit; prefer native Popover\u002F`\u003Cdialog>`; toasts\n  use `role=\"status\"`; hover-only content remains focus-reachable.\n\n## Reference files\n\n- `references\u002Fstates.md` — state semantics, pitfalls, ARIA pairings.\n- `references\u002Fdecision-records.md` — novel-case ADR rules.\n\n## Self-check (per interactive element)\n\nFor each applicable state, confirm visible focus, semantics, non-color contrast, and\nreduced-motion behavior. For async\u002Fdestructive work confirm owner, guard, justified\nconfirmation, duplicate prevention, recovery, and final focus; exercise real and stale\u002F\nfailed completion separately. Do not collapse controls into one checkmark.\n\n## How to deliver\n\nDeliver applicable matrix and lifecycle evidence. Pair with `form-ux`, `empty-states`,\n`micro-motion`, `a11y-pass`, and `color-system` at their boundaries.\n\n\u003C!-- contract:v1:start -->\n## Contract (generated)\n\nCanonical detail: [contract.json](contract.json).\n\n- Route: A control has interaction states missing or inconsistent with its semantics. (+1 in contract.json); avoid: The request is only about form copy or validation timing. (+1 in contract.json)\n- Exclude: Do not invent page-level empty states or validation policy. (+2 in contract.json)\n- Stop \u002F handoff: Stop when the component semantics or interactive states cannot be identified. (+2 in contract.json); receives [design-system-interview, empty-states, improve-existing-website, responsive-layout, spacing-system, tasteroll, theming] -> sends [form-ux, empty-states, a11y-pass, micro-motion, tastecheck-pass]\n- Output: component lifecycle contract and implementation guidance\n- Evidence: `table_with_evidence` with `status`, `reason`, `remediation`, `evidence`, `provenance`.\n\u003C!-- contract:v1:end -->\n",{"name":5,"description":7},"main","efc101f149536adbe242f840fc52894fb8508ebb","skills\u002Fcomponent-states",8,"https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck","https:\u002F\u002Fkyanitelabs.github.io\u002Ftastecheck\u002F","https:\u002F\u002Fgithub.com\u002FKyaniteLabs","https:\u002F\u002Fkyanitelabs.tech","Open-source AI tools, MCP servers, creative coding systems, living website engines, and domain software for workflows that need proof.","2026-11-12 08:05:40",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add KyaniteLabs\u002Ftastecheck --skill component-states",{"tool":39,"command":40},"bunx","bunx skills add KyaniteLabs\u002Ftastecheck --skill component-states",{"tool":42,"command":43},"pnpm","pnpm dlx skills add KyaniteLabs\u002Ftastecheck --skill component-states","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fcomponent-states\u002FSKILL.md",true,[47,53,59,63],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"assets\u002Fstates-starter.css","ASSET","资产文件",5358,"https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fcomponent-states\u002Fassets\u002Fstates-starter.css",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"contract.json","REFERENCE","参考文档",2863,"https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fcomponent-states\u002Fcontract.json",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fdecision-records.md",2787,"https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fcomponent-states\u002Freferences\u002Fdecision-records.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fstates.md",4900,"https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fcomponent-states\u002Freferences\u002Fstates.md",[68,74,81,88,95,102],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M759E0JPD1CXC7VAMAZYMWQ8","example","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Ftools\u002Frelease\u002Ffixtures\u002Feffectiveness-claims\u002Funsupported\u002Fskills\u002Fexample\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M759DVS0AZF9VD4K0ED8801X","web-typography","Use when a web product needs a contextual type system, resilient font loading, multilingual glyph or wrap coverage, or readable hierarchy across operational and editorial surfaces.","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M759DSJGNST26622W65WTM23","theming","Use when semantic roles must map coherently across light, dark, forced-colors, or saved theme preferences without contrast or no-flash regressions.","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Ftheming\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M759DN2E1Y29MHXCRNGY8MHA","tasteroll","Rapid prototyping through constrained randomness. Audits what exists, fixes what is broken, generates fresh design candidates from context, then rolls the dice between valid alternatives. Lock what works, re-roll what doesn't, converge on a direction. Use for design exploration, rapid prototyping, or when a user wants surprise within guardrails.","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Ftasteroll\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M759DG7NZW3M9HC7M7A5GABJ","tastecheck-pass","Use when finished frontend work needs an honest SHIP or HOLD — a fast evidence pass by one agent in minutes, or a fail-closed deterministic release gate when stakes justify machinery. Verdict first, from the real rendered artifact; checkmarks are not execution evidence.","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Ftastecheck-pass\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M759DCA404KFKP4CYC5ZPPA3","spacing-system","Use when layout rhythm, density, or gaps feel arbitrary or inconsistent, or when one product needs different reading pressures without splitting into unrelated spacing systems.","https:\u002F\u002Fgithub.com\u002FKyaniteLabs\u002Ftastecheck\u002Fblob\u002Fmain\u002Fskills\u002Fspacing-system\u002FSKILL.md",[],[]]