[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EKCEY34CWET70J2863P80W":3,"skill-same:01M7EKCEY34CWET70J2863P80W":68},{"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":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7EKCEY34CWET70J2863P80W","component-specification",null,"raillen\u002Fdaisy-code-editor","raillen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50306048?v=4","01M7EKBDVVBSPF21PBPVJYMNYR","Raillen Santos","01M7EKBDWD12A1K9N9Y638FGX9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Component Specification\n\n## Purpose\nWrite implementation-ready component specifications: typed props API, variant and size matrices, controlled\u002Funcontrolled state contracts, slot\u002Fevent surfaces, and keyboard\u002FARIA behavior — so engineers build exactly what design intended with zero ambiguity.\n\n## Use when\n- Specifying a new or changed UI component (props, variants, states, events).\n- Defining keyboard interaction, focus management, and ARIA contracts for a component.\n- Enumerating the state matrix (default, loading, empty, error, disabled) and responsive breakpoints.\n- Freezing a component API before implementation or design-system release.\n\n## Do not use when\n- Exploring open-ended UX directions (use `design-research`).\n- Auditing whole screens for WCAG conformance (use `accessibility`).\n- Theming tokens or global styles rather than per-component contracts (use `wireframe-styleguide`).\n\n## Required context\n- Component inventory: names, usage contexts, and design-token dependencies.\n- Prop\u002Fstate matrix requirements: variants, sizes, controlled vs uncontrolled states.\n- Keyboard and screen-reader interaction contracts per component.\n\n## Procedure\n1. **Fix Identity & Scope**: Name the component, its single responsibility, and explicit non-goals. Example: `DataTable` owns tabular display, sorting, and row selection; it does not own pagination controls (separate `Paginator`).\n2. **Type the Props API**: List every prop with name, type, required\u002Foptional, default, and constraints (e.g., `density: 'compact' | 'comfortable' = 'comfortable'`). Mark which props are controlled (parent-owned) vs uncontrolled (internal state with `default*` initializer).\n3. **Enumerate Variants & States**: Build the variant × state matrix: variants (primary\u002Fsecondary\u002Fdanger), sizes (sm\u002Fmd\u002Flg), states (default, hover, focus, active, loading, empty, error, disabled). Every cell must have a defined visual and behavior; `N\u002FA` cells need a reason.\n4. **Contract Keyboard & ARIA**: Specify the full keyboard map (e.g., `ArrowUp\u002FDown` move, `Home\u002FEnd` jump, `Type-ahead` filters), focus trap\u002Freturn rules for overlays, roving-tabindex vs aria-activedescendant choice, and required roles\u002Fattributes (`role=\"dialog\"`, `aria-modal=\"true\"`, labelledby\u002Fdescribedby wiring).\n5. **Define Slots & Events**: List named slots (header, footer, empty-state) and emitted events with payloads (e.g., `onSortChange({ columnId, direction })`). Events carry data, never DOM nodes.\n6. **Verify**: Run `scripts\u002Fverify.sh`. Confirm every prop is typed with defaults, every matrix cell resolved, keyboard map complete, and ARIA wiring explicit.\n\n## Decision rules\n- **No Untyped Props**: `any`-typed or undocumented props are forbidden; every prop has type, default, and constraint.\n- **Controlled Clarity**: Each piece of state is declared controlled or uncontrolled — never both, never ambiguous.\n- **Keyboard Completeness**: If a mouse user can do it, the spec defines the keyboard equivalent or explicitly justifies the exception.\n- **Matrix Closure**: No `TBD` cells in the variant × state matrix at sign-off; unknowns become tracked follow-ups with owners.\n\n## Evidence required\n- Component spec sheet with typed props, variants, and state contracts.\n- Keyboard\u002FARIA contract with focus-management rules.\n- State-matrix fixtures covering default\u002Floading\u002Fempty\u002Ferror\u002Fdisabled.\n- Passing execution log from `scripts\u002Fverify.sh`.\n\n## Output contract\n- Component specification sheets with typed props, variants, and state contracts.\n- Keyboard\u002FARIA contract per component with focus-management rules.\n- State-matrix test fixtures covering default\u002Floading\u002Fempty\u002Ferror\u002Fdisabled.\n\n## Stop conditions\n- All components specified with props, variants, and keyboard contracts plus state fixtures.\n- Matrix fully closed; exceptions justified in writing.\n- Token budget exhausted.\n\n## Escalation rules\n- Escalate to design-system lead if a component's scope overlaps another component's contract (ownership decision).\n- Escalate immediately if accessibility requirements conflict with the requested visual design (needs product-level tradeoff).\n",{},"main","2e465213b972294984c8c9515a47f811e4b358da",".agents\u002Fskills\u002Fcomponent-specification","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor","https:\u002F\u002Fgithub.com\u002Fraillen","https:\u002F\u002Fraillen.com","\u003C\u003CMarketing & IT>>\r\n\r\n@poppy-team\r\n@wasd-lat ","2026-10-16 09:17:52",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add raillen\u002Fdaisy-code-editor --skill component-specification",{"tool":36,"command":37},"bunx","bunx skills add raillen\u002Fdaisy-code-editor --skill component-specification",{"tool":39,"command":40},"pnpm","pnpm dlx skills add raillen\u002Fdaisy-code-editor --skill component-specification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002FSKILL.md",true,[44,50,54,58,64],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"checks\u002Fcomponent-specification-checklist.md","REFERENCE","参考文档",1413,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002Fchecks\u002Fcomponent-specification-checklist.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"manifest.json",1732,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002Fmanifest.json",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fcomponent-specification-guide.md",2167,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002Freferences\u002Fcomponent-specification-guide.md",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fverify.sh","SCRIPT","脚本",3788,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002Fscripts\u002Fverify.sh",{"path":65,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":66,"sourceHtmlUrl":67},"templates\u002Fwireframe-spec.md",1835,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcomponent-specification\u002Ftemplates\u002Fwireframe-spec.md",[69,75,81,88,95,102],{"skillNo":70,"name":71,"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":72,"categories":73,"keywords":74,"publishedAt":18},"01M7EKQYSDAX3SGSCRF873Z8E2","zoom-reflow","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"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":78,"categories":79,"keywords":80,"publishedAt":18},"01M7EKQX0MWJNQD482GGZPGES4","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7EKQS57FS6JYE6KWW6X5ADJ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7EKQMFR7651NVH100P5781Z","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7EKQG3NVX6DPCYS6Q4PA71V","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"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":105,"categories":106,"keywords":107,"publishedAt":18},"01M7EKQEJ993JGC72FE2KFY3ZZ","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]