[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F8FCFK0RNTH0CGTR1S47F":3,"skill-same:01M78F8FCFK0RNTH0CGTR1S47F":69},{"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":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M78F8FCFK0RNTH0CGTR1S47F","editor-tooling",null,"poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Editor Tooling & UI\n\n## Purpose\nBuild deterministic, undo-safe desktop editor tooling: scene\u002Fdocument inspectors, viewport gizmos and overlays, multi-viewport coordination, command-based undo\u002Fredo, and stable serialization — all within frame budget and without leaking editor state into runtime builds.\n\n## Use when\n- Implementing scene inspectors, property editors, asset browsers, or outliner trees.\n- Adding viewport gizmos (translate\u002Frotate\u002Fscale), snapping, overlays, or multi-viewport sync.\n- Designing undo\u002Fredo stacks, selection models, or document serialization for editor files.\n- Auditing editor frame budget, interaction latency, or runtime\u002Feditor code separation.\n\n## Do not use when\n- Building end-user application UI rather than developer-facing editors (use `component-specification`).\n- Implementing the runtime simulation itself (use `game-runtime`, `game-engine-architecture`).\n- Authoring editor visual themes rather than editor behavior and data flow.\n\n## Required context\n- Editor surface inventory: inspectors, viewports, gizmos, and asset browsers in scope.\n- Scene\u002Fdocument model schemas and undo-redo granularity requirements.\n- Frame-budget and interaction-latency ceilings for editor operations.\n\n## Procedure\n1. **Model the Document**: Define the scene\u002Fdocument schema with stable IDs for every entity. All editor operations mutate this model — never the rendered view directly. Example: moving an object edits `transform.position` on entity `e-1042`; the viewport re-renders from the model.\n2. **Command-ify Every Mutation**: Wrap each user action in a command object (`do`\u002F`undo`, label, merge policy). Drag operations coalesce into one undo step on pointer-up; text edits commit per pause-group. The undo stack is bounded (e.g., 200 entries) with memory accounting.\n3. **Build Inspectors from Schema**: Generate property editors from the same schema the runtime validates, so the editor cannot author invalid documents. Custom editors are registered per type; unknown types fall back to a read-only raw view, never a crash.\n4. **Gizmos with Snapping Math**: Implement translate\u002Frotate\u002Fscale gizmos in viewport space with explicit snapping (e.g., 0.25 m, 15°), axis locking via modifier keys, and numeric-entry override. Overlay rendering uses depth-tested lines with an on-top pass for the active handle only.\n5. **Isolate Editor from Runtime**: Editor-only code compiles behind a feature flag and never ships in runtime builds; verify by symbol scan. Selection, hover, and overlay state live in editor session objects, never in the document model.\n6. **Verify**: Run `scripts\u002Fverify.sh`. Prove undo\u002Fredo round-trips (100 random ops, model hash equal), serialization determinism (save→load→save byte-stable), and gizmo drags land on snapped values within interaction-latency budget.\n\n## Decision rules\n- **Model First**: No direct view mutation; every change flows through a command into the document model.\n- **Undo Is Total**: Any user-visible mutation without an undo path is a defect — including selection-driven and bulk operations.\n- **Schema Single Source**: Inspector widgets and runtime validators read the same schema; divergence is a release blocker.\n- **Editor Never Ships**: Runtime binaries contain zero editor symbols; verified by automated scan per build.\n\n## Evidence required\n- Undo\u002Fredo fuzz log: random-op sequences with model-hash equality proof.\n- Serialization determinism log: save→load→save byte-stability.\n- Gizmo precision and interaction-latency measurements vs budget.\n- Passing execution log from `scripts\u002Fverify.sh`.\n\n## Output contract\n- Editor tooling implementation with inspector\u002Fgizmo\u002Fviewport behaviors.\n- Undo-redo and serialization conformance with deterministic fixtures.\n- Interaction-latency benchmark evidence within frame budget.\n\n## Stop conditions\n- Editor interactions deterministic and within budget with undo-safe serialization.\n- Editor\u002Fruntime separation verified by symbol scan.\n- Token budget exhausted.\n\n## Escalation rules\n- Escalate to lead architect if undo granularity conflicts with collaborative\u002Fmulti-user editing requirements (needs CRDT\u002FOT decision).\n- Escalate immediately if editor actions can corrupt documents without recovery path.\n",{},"main","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".agents\u002Fskills\u002Feditor-tooling",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add poppyTM\u002Foride --skill editor-tooling",{"tool":37,"command":38},"bunx","bunx skills add poppyTM\u002Foride --skill editor-tooling",{"tool":40,"command":41},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill editor-tooling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002FSKILL.md",true,[45,51,55,59,65],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"checks\u002Feditor-tooling-invariants.md","REFERENCE","参考文档",1360,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002Fchecks\u002Feditor-tooling-invariants.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"manifest.json",1773,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002Fmanifest.json",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Feditor-tooling-guide.md",2012,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002Freferences\u002Feditor-tooling-guide.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fverify.sh","SCRIPT","脚本",3715,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002Fscripts\u002Fverify.sh",{"path":66,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":67,"sourceHtmlUrl":68},"templates\u002Feditor-tooling-template.md",2208,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feditor-tooling\u002Ftemplates\u002Feditor-tooling-template.md",[70,76,82,89,96,103],{"skillNo":71,"name":72,"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":73,"categories":74,"keywords":75,"publishedAt":18},"01M78FHQN254KEH0DETXT5JM29","zoom-reflow","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"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":79,"categories":80,"keywords":81,"publishedAt":18},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M78FHE53D8DD0QVRY5C37DA4","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\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M78FHBJ1KXFF734GFE509TBJ","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\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"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":106,"categories":107,"keywords":108,"publishedAt":18},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]