[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C9MWPHCA58EVYPQBYV2MQK":3,"skill-same:01M7C9MWPHCA58EVYPQBYV2MQK":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"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":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7C9MWPHCA58EVYPQBYV2MQK","principle-ui-craft",null,"NickDabizaz\u002Fskills","NickDabizaz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F94162428?v=4","01M7C9GBYFDJ5SPS3HTM528ATS","Nick","01M7C9GBZ2NQ6YYQN9TJB9E1ZG",0,"MIT","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fprinciple-ui-craft\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: principle-ui-craft\ndescription: The invisible details that make an interface feel right: press feedback, entrance scale, origin-aware popovers, tooltip timing, interruptible transitions, blur to mask crossfades, and stagger. Use when building or reviewing any interactive component.\n---\n\n# UI Craft\n\nMost details users never consciously notice. That is the point. When a feature behaves exactly as someone assumes it should, they proceed without a second thought.\n\n## Component rules\n\n- **Buttons must feel responsive.** Add `transform: scale(0.97)` on `:active` with a short `ease-out` transition. Apply to any pressable element; keep the scale subtle (0.95-0.98).\n- **Never animate from `scale(0)`.** Nothing in the real world appears from nothing. Start from `scale(0.9-0.97)` plus `opacity: 0`.\n- **Make popovers origin-aware.** Popovers, dropdowns, menus, and tooltips scale in from their trigger, not from center. Set `transform-origin` to the trigger. Modals are the exception: they stay centered because they are not anchored to a trigger.\n- **Tooltips: skip delay and animation on subsequent hovers.** Delay the first appearance to avoid accidental activation, then open adjacent tooltips instantly with no animation.\n- **Use transitions over keyframes for interruptible UI.** Transitions retarget mid-animation; keyframes restart from zero.\n- **Use blur to mask imperfect crossfades.** When two states swap and the crossfade looks off, a subtle `filter: blur(2px)` during the transition blends them so the eye reads one transformation. Keep blur under 20px; heavy blur is expensive.\n- **Animate enter states with `@starting-style`** where supported, so entry needs no JavaScript.\n- **Stagger group entrances** with 30-80ms between items. Stagger is decorative; never block interaction while it plays.\n- **Asymmetric timing.** Slow where the user is deciding (a hold), snappy where the system responds (release).\n\n## Performance\n\n- Animate `transform` and `opacity` only. They skip layout and paint and run on the GPU. Animating `width`, `height`, `margin`, `padding`, or `top` triggers all three.\n- Do not drive a child's transform from a CSS variable on the parent; it recalculates styles for every child. Set `transform` on the element directly.\n- Shorthand animation properties in some libraries are not hardware-accelerated under load; use the full `transform` string.\n\n## Accessibility\n\n- Honor `prefers-reduced-motion` with a gentler variant, not zero: keep opacity and color, drop movement.\n- Gate hover motion behind `@media (hover: hover) and (pointer: fine)`; touch fires false hovers.\n\n## Review checklist\n\n| Issue | Fix |\n| --- | --- |\n| `transition: all` | Name the exact properties |\n| `scale(0)` entry | `scale(0.95)` + `opacity: 0` |\n| `ease-in` on UI | `ease-out` or a strong custom curve |\n| `transform-origin: center` on a trigger-anchored popover | Set it to the trigger (modals exempt) |\n| Animation on a keyboard action | Remove it |\n| UI duration over 300ms | Reduce to 150-250ms |\n| Ungated hover motion | Add the hover and pointer media query |\n| Keyframes on a rapidly-triggered element | Use transitions |\n| Everything entering at once | Add a 30-80ms stagger |\n","# UI Craft\n\nMost details users never consciously notice. That is the point. When a feature behaves exactly as someone assumes it should, they proceed without a second thought.\n\n## Component rules\n\n- **Buttons must feel responsive.** Add `transform: scale(0.97)` on `:active` with a short `ease-out` transition. Apply to any pressable element; keep the scale subtle (0.95-0.98).\n- **Never animate from `scale(0)`.** Nothing in the real world appears from nothing. Start from `scale(0.9-0.97)` plus `opacity: 0`.\n- **Make popovers origin-aware.** Popovers, dropdowns, menus, and tooltips scale in from their trigger, not from center. Set `transform-origin` to the trigger. Modals are the exception: they stay centered because they are not anchored to a trigger.\n- **Tooltips: skip delay and animation on subsequent hovers.** Delay the first appearance to avoid accidental activation, then open adjacent tooltips instantly with no animation.\n- **Use transitions over keyframes for interruptible UI.** Transitions retarget mid-animation; keyframes restart from zero.\n- **Use blur to mask imperfect crossfades.** When two states swap and the crossfade looks off, a subtle `filter: blur(2px)` during the transition blends them so the eye reads one transformation. Keep blur under 20px; heavy blur is expensive.\n- **Animate enter states with `@starting-style`** where supported, so entry needs no JavaScript.\n- **Stagger group entrances** with 30-80ms between items. Stagger is decorative; never block interaction while it plays.\n- **Asymmetric timing.** Slow where the user is deciding (a hold), snappy where the system responds (release).\n\n## Performance\n\n- Animate `transform` and `opacity` only. They skip layout and paint and run on the GPU. Animating `width`, `height`, `margin`, `padding`, or `top` triggers all three.\n- Do not drive a child's transform from a CSS variable on the parent; it recalculates styles for every child. Set `transform` on the element directly.\n- Shorthand animation properties in some libraries are not hardware-accelerated under load; use the full `transform` string.\n\n## Accessibility\n\n- Honor `prefers-reduced-motion` with a gentler variant, not zero: keep opacity and color, drop movement.\n- Gate hover motion behind `@media (hover: hover) and (pointer: fine)`; touch fires false hovers.\n\n## Review checklist\n\n| Issue | Fix |\n| --- | --- |\n| `transition: all` | Name the exact properties |\n| `scale(0)` entry | `scale(0.95)` + `opacity: 0` |\n| `ease-in` on UI | `ease-out` or a strong custom curve |\n| `transform-origin: center` on a trigger-anchored popover | Set it to the trigger (modals exempt) |\n| Animation on a keyboard action | Remove it |\n| UI duration over 300ms | Reduce to 150-250ms |\n| Ungated hover motion | Add the hover and pointer media query |\n| Keyframes on a rapidly-triggered element | Use transitions |\n| Everything entering at once | Add a 30-80ms stagger |\n",{},"master","51ae6656d3d7922a9936dbec1141eabbaebd95ba","skills\u002Fprinciple-ui-craft","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills","https:\u002F\u002Fgithub.com\u002FNickDabizaz","Software Engineer","2026-10-11 18:38:24",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add NickDabizaz\u002Fskills --skill principle-ui-craft",{"tool":36,"command":37},"bunx","bunx skills add NickDabizaz\u002Fskills --skill principle-ui-craft",{"tool":39,"command":40},"pnpm","pnpm dlx skills add NickDabizaz\u002Fskills --skill principle-ui-craft","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fprinciple-ui-craft\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"agents\u002Fopenai.yaml","REFERENCE","参考文档",209,"https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fprinciple-ui-craft\u002Fagents\u002Fopenai.yaml",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7C9R9N4GN60KJVQQ31WPST7","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C9R63ZKDQXGV52K28SPDN2","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7C9R12DH4ME1R65C2Y2MDJY","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7C9QY62QQB3EBC8RSPMD8QF","wayfinder","Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7C9QW7VA5BEN6DFK2ZBKPEK","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7C9QPDH4FGSMFTFN3P9BQ2M","triage","Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002FNickDabizaz\u002Fskills\u002Fblob\u002Fmaster\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]