[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CA7ATPBWP2G65S9NT5889N":3,"skill-same:01M7CA7ATPBWP2G65S9NT5889N":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CA7ATPBWP2G65S9NT5889N","domfx-typescript-engineering",null,"Write, refactor, or review TypeScript in domfx with clear module ownership, safe types, explicit lifecycles, and behavior-based verification. Use for TypeScript implementation, API design, package organization, architecture decisions, and requests for engineering best practices or system design patterns in this repository.","G0m1namm\u002Fdomfx","G0m1namm","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37153701?v=4","01M7CA61NRW719YJSERZXMBM2X","Jherson Martelo Medina","01M7CA61PJCM9FE6QM8KMYXP3P",1,"MIT","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomfx-typescript-engineering\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: domfx-typescript-engineering\ndescription: Write, refactor, or review TypeScript in domfx with clear module ownership, safe types, explicit lifecycles, and behavior-based verification. Use for TypeScript implementation, API design, package organization, architecture decisions, and requests for engineering best practices or system design patterns in this repository.\n---\n\n# TypeScript engineering for domfx\n\n## 1. Establish the contract\n\n- Read `AGENTS.md`, `README.md`, `CONTRIBUTING.md`, `GLOSSARY.md`, and\n  `workspace-boundaries.mjs` at the repository root. They override this skill.\n- Read the affected package exports, TypeScript configuration, nearby implementation,\n  and tests. Work with the installed TypeScript version and existing tools.\n- Use the linked issue for scope and acceptance criteria. If none exists, use the\n  user's request and state the observable acceptance checks; do not invent an issue.\n- State assumptions and a short implementation\u002Fverification plan. Resolve ambiguous\n  capture, rendering, compositing, or animation contracts before changing behavior.\n- For a design decision, identify the owner, inputs, outputs, invariants, resource\n  lifetime, and failure behavior. Keep this proportional to the change.\n\n## 2. Keep ownership and dependencies clear\n\n- Put DOM\u002Fframework\u002FGPU-independent contracts and computation in core. Put browser\n  capture and GPU implementation in the browser package. Follow the boundary file\n  for other packages; never scaffold planned packages merely because they appear there.\n- Keep domain computation separate from DOM, GPU, timing, and I\u002FO effects so it can\n  be verified without a browser. Inject a small function or interface at a real\n  external boundary when needed; do not introduce a dependency-injection framework.\n- Group code by responsibility and what changes together. Split a module when it has\n  unrelated responsibilities, not to satisfy an arbitrary line or function limit.\n- Use exported package entry points across workspaces. Keep internal helpers private;\n  do not expose implementation types or create catch-all utils\u002Fservices modules.\n- Prefer straightforward functions and composition. Use a class when it makes state\n  ownership or resource lifetime clearer, not as a default container for functions.\n\n## 3. Make TypeScript express the real contract\n\n- Preserve strict checking. Use inference locally and explicit types at public\n  boundaries where they clarify and stabilize the contract.\n- Treat untrusted input as `unknown` and validate where it enters. Type assertions\n  do not perform runtime validation. Do not repeat validation on already trusted data.\n- Narrow with runtime checks and discriminated unions. Model mutually exclusive\n  states as variants when optional fields or independent flags allow invalid states.\n  Use exhaustive handling with `never` where all variants must be addressed.\n- Avoid `any`, double assertions, non-null assertions, and suppression comments as\n  shortcuts. If an external library requires an escape hatch, isolate it at the\n  adapter, explain the invariant, and verify that boundary.\n- Use generics only to express an actual relationship between inputs and outputs.\n  Prefer readable concrete types to elaborate conditional types without a caller need.\n- Use `readonly` to communicate ownership where useful; it is not runtime freezing.\n  Avoid blanket cloning or immutability rules in performance-sensitive GPU paths.\n- Follow the repository's named exports, type-only imports, ESM conventions, and\n  naming rules. Do not change compiler settings or formatting tools as incidental cleanup.\n\n## 4. Choose patterns for a concrete pressure\n\n| Pressure in the requested change | Smallest useful approach | Avoid |\n| --- | --- | --- |\n| Browser or library behavior must be isolated | Adapter with a narrow contract | A universal backend\u002Fplugin framework |\n| Multiple existing algorithms are interchangeable | Strategy function with the same input\u002Foutput contract | A hierarchy for one implementation |\n| Lifecycle combinations or transitions are invalid | Discriminated union and explicit transition logic | Unrelated booleans or a new state-machine dependency by default |\n| Computation is difficult to test because of I\u002FO | Pure calculation plus an effect-owning wrapper | Splitting every expression into a layer |\n| Several resources share a lifetime | One clear owner with cleanup | Global singletons or hidden shared mutable state |\n\n- Before adding a pattern, explain which present requirement it solves and why a\n  plain function\u002Fmodule is insufficient. No requirement means no new abstraction.\n- Apply single responsibility, dependency inversion, and information hiding through\n  these decisions; do not impose enterprise folders, repositories, CQRS, or event buses.\n- Extract shared code when callers share meaning and a reason to change. Similar\n  syntax alone is insufficient; a little duplication can be clearer than coupling.\n\n## 5. Make lifecycle and failure behavior observable\n\n- Identify who creates and disposes listeners, observers, animation work, and GPU\n  resources. Match the agreed contract for repeated disposal and partial setup failure.\n- For async capture or refresh changes, specify how obsolete work is cancelled or\n  ignored and how completion after disposal is handled. Verify out-of-order completion\n  when concurrent requests are possible; do not silently choose a refresh policy.\n- Handle expected environmental failures at the adapter boundary. Keep the original\n  target usable when an effect is unavailable. Preserve useful error context rather\n  than swallowing errors or reporting success after failure.\n- Keep time\u002Fanimation behavior compatible with the agreed seek and reverse contract.\n  Measure performance changes against a relevant scenario; do not claim GPU correctness\n  or performance from a typecheck or numerical unit test.\n\n## 6. Verify and hand off a small change\n\n- For a bug, add a regression that fails for the original behavior. For a feature,\n  verify observable acceptance criteria, including applicable failure\u002Flifecycle cases.\n  For a refactor, preserve the behavior checks before and after.\n- Test public behavior and invariants, not private call sequences or copied algorithms.\n  Use independent numerical expectations for numerical work. Mock external boundaries\n  only when needed; use browser checks for actual browser\u002FGPU behavior.\n- Follow `CONTRIBUTING.md` for formatting and linting; review any automatic fixes.\n  Run `pnpm check` and `pnpm build:demo` before proposing code changes. For capture\u002FGPU\n  changes, also perform the documented development and preview browser checks.\n- If a check cannot run, report the specific blocker and what remains unverified.\n  Never substitute a passing build for a missing rendering check.\n- Review the diff for scope, accidental public exports, dependency direction, and\n  abstractions without current callers. Remove only unused code created by this change.\n- Report the resulting behavior, the design choice if material, verification evidence,\n  and remaining limitations. Follow release guidance for consumer-facing changes.\n\n## Sources\n\nConsult these primary sources when the relevant language or design detail is uncertain.\nUse the project's installed version when current documentation describes newer features.\n\n- [TypeScript narrowing](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002F2\u002Fnarrowing.html):\n  runtime guards, discriminated unions, and exhaustive handling.\n- [TypeScript generics](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002F2\u002Fgenerics.html):\n  relationships between types at function and API boundaries.\n- [TypeScript modules](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fmodules\u002Ftheory.html):\n  module behavior and resolution; preserve the repository's existing configuration.\n- [YAGNI](https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FYagni.html): defer speculative capability\n  while maintaining code that can be changed safely.\n","# TypeScript engineering for domfx\n\n## 1. Establish the contract\n\n- Read `AGENTS.md`, `README.md`, `CONTRIBUTING.md`, `GLOSSARY.md`, and\n  `workspace-boundaries.mjs` at the repository root. They override this skill.\n- Read the affected package exports, TypeScript configuration, nearby implementation,\n  and tests. Work with the installed TypeScript version and existing tools.\n- Use the linked issue for scope and acceptance criteria. If none exists, use the\n  user's request and state the observable acceptance checks; do not invent an issue.\n- State assumptions and a short implementation\u002Fverification plan. Resolve ambiguous\n  capture, rendering, compositing, or animation contracts before changing behavior.\n- For a design decision, identify the owner, inputs, outputs, invariants, resource\n  lifetime, and failure behavior. Keep this proportional to the change.\n\n## 2. Keep ownership and dependencies clear\n\n- Put DOM\u002Fframework\u002FGPU-independent contracts and computation in core. Put browser\n  capture and GPU implementation in the browser package. Follow the boundary file\n  for other packages; never scaffold planned packages merely because they appear there.\n- Keep domain computation separate from DOM, GPU, timing, and I\u002FO effects so it can\n  be verified without a browser. Inject a small function or interface at a real\n  external boundary when needed; do not introduce a dependency-injection framework.\n- Group code by responsibility and what changes together. Split a module when it has\n  unrelated responsibilities, not to satisfy an arbitrary line or function limit.\n- Use exported package entry points across workspaces. Keep internal helpers private;\n  do not expose implementation types or create catch-all utils\u002Fservices modules.\n- Prefer straightforward functions and composition. Use a class when it makes state\n  ownership or resource lifetime clearer, not as a default container for functions.\n\n## 3. Make TypeScript express the real contract\n\n- Preserve strict checking. Use inference locally and explicit types at public\n  boundaries where they clarify and stabilize the contract.\n- Treat untrusted input as `unknown` and validate where it enters. Type assertions\n  do not perform runtime validation. Do not repeat validation on already trusted data.\n- Narrow with runtime checks and discriminated unions. Model mutually exclusive\n  states as variants when optional fields or independent flags allow invalid states.\n  Use exhaustive handling with `never` where all variants must be addressed.\n- Avoid `any`, double assertions, non-null assertions, and suppression comments as\n  shortcuts. If an external library requires an escape hatch, isolate it at the\n  adapter, explain the invariant, and verify that boundary.\n- Use generics only to express an actual relationship between inputs and outputs.\n  Prefer readable concrete types to elaborate conditional types without a caller need.\n- Use `readonly` to communicate ownership where useful; it is not runtime freezing.\n  Avoid blanket cloning or immutability rules in performance-sensitive GPU paths.\n- Follow the repository's named exports, type-only imports, ESM conventions, and\n  naming rules. Do not change compiler settings or formatting tools as incidental cleanup.\n\n## 4. Choose patterns for a concrete pressure\n\n| Pressure in the requested change | Smallest useful approach | Avoid |\n| --- | --- | --- |\n| Browser or library behavior must be isolated | Adapter with a narrow contract | A universal backend\u002Fplugin framework |\n| Multiple existing algorithms are interchangeable | Strategy function with the same input\u002Foutput contract | A hierarchy for one implementation |\n| Lifecycle combinations or transitions are invalid | Discriminated union and explicit transition logic | Unrelated booleans or a new state-machine dependency by default |\n| Computation is difficult to test because of I\u002FO | Pure calculation plus an effect-owning wrapper | Splitting every expression into a layer |\n| Several resources share a lifetime | One clear owner with cleanup | Global singletons or hidden shared mutable state |\n\n- Before adding a pattern, explain which present requirement it solves and why a\n  plain function\u002Fmodule is insufficient. No requirement means no new abstraction.\n- Apply single responsibility, dependency inversion, and information hiding through\n  these decisions; do not impose enterprise folders, repositories, CQRS, or event buses.\n- Extract shared code when callers share meaning and a reason to change. Similar\n  syntax alone is insufficient; a little duplication can be clearer than coupling.\n\n## 5. Make lifecycle and failure behavior observable\n\n- Identify who creates and disposes listeners, observers, animation work, and GPU\n  resources. Match the agreed contract for repeated disposal and partial setup failure.\n- For async capture or refresh changes, specify how obsolete work is cancelled or\n  ignored and how completion after disposal is handled. Verify out-of-order completion\n  when concurrent requests are possible; do not silently choose a refresh policy.\n- Handle expected environmental failures at the adapter boundary. Keep the original\n  target usable when an effect is unavailable. Preserve useful error context rather\n  than swallowing errors or reporting success after failure.\n- Keep time\u002Fanimation behavior compatible with the agreed seek and reverse contract.\n  Measure performance changes against a relevant scenario; do not claim GPU correctness\n  or performance from a typecheck or numerical unit test.\n\n## 6. Verify and hand off a small change\n\n- For a bug, add a regression that fails for the original behavior. For a feature,\n  verify observable acceptance criteria, including applicable failure\u002Flifecycle cases.\n  For a refactor, preserve the behavior checks before and after.\n- Test public behavior and invariants, not private call sequences or copied algorithms.\n  Use independent numerical expectations for numerical work. Mock external boundaries\n  only when needed; use browser checks for actual browser\u002FGPU behavior.\n- Follow `CONTRIBUTING.md` for formatting and linting; review any automatic fixes.\n  Run `pnpm check` and `pnpm build:demo` before proposing code changes. For capture\u002FGPU\n  changes, also perform the documented development and preview browser checks.\n- If a check cannot run, report the specific blocker and what remains unverified.\n  Never substitute a passing build for a missing rendering check.\n- Review the diff for scope, accidental public exports, dependency direction, and\n  abstractions without current callers. Remove only unused code created by this change.\n- Report the resulting behavior, the design choice if material, verification evidence,\n  and remaining limitations. Follow release guidance for consumer-facing changes.\n\n## Sources\n\nConsult these primary sources when the relevant language or design detail is uncertain.\nUse the project's installed version when current documentation describes newer features.\n\n- [TypeScript narrowing](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002F2\u002Fnarrowing.html):\n  runtime guards, discriminated unions, and exhaustive handling.\n- [TypeScript generics](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002F2\u002Fgenerics.html):\n  relationships between types at function and API boundaries.\n- [TypeScript modules](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fmodules\u002Ftheory.html):\n  module behavior and resolution; preserve the repository's existing configuration.\n- [YAGNI](https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FYagni.html): defer speculative capability\n  while maintaining code that can be changed safely.\n",{"name":5,"description":7},"main","4c689a819d96446e075fe0f2be2021174e54dac7",".agents\u002Fskills\u002Fdomfx-typescript-engineering",0,"https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx","https:\u002F\u002Fdomfx.dev","https:\u002F\u002Fgithub.com\u002FG0m1namm","2026-11-15 02:46:16",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add G0m1namm\u002Fdomfx --skill domfx-typescript-engineering",{"tool":38,"command":39},"bunx","bunx skills add G0m1namm\u002Fdomfx --skill domfx-typescript-engineering",{"tool":41,"command":42},"pnpm","pnpm dlx skills add G0m1namm\u002Fdomfx --skill domfx-typescript-engineering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomfx-typescript-engineering\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",275,"https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomfx-typescript-engineering\u002Fagents\u002Fopenai.yaml",[53,60,68,76,84,92],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7CA9VM3MZP7J5EY28MEFF6B","domfx","Add or troubleshoot domfx effects in an application, including effect choice, automatic animation, GSAP sequences, teardown, capture refresh and unavailable output. Use for consuming @domfx\u002Fbrowser and the optional @domfx\u002Fgsap helpers, not for developing domfx internals.","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002Fskills\u002Fdomfx\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":64,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CA9QSY6X25RZ2FDTST5WT4","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CA9JG7RS8RCRG7GDHB0ZGX","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\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwizard\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwizard\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CA9F95ZB0MAYVKV8NS7WZG","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\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwayfinder\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwayfinder\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CA9DGPAEESWY2N1WYEM7JB","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwait-what\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7CA9AFBGZEDZ52ZFW057S2S","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\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftriage\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FG0m1namm\u002Fdomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftriage\u002FSKILL.md",[],[]]