[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DVQKVFV7V0WJDS9DTYE807":3,"skill-same:01M6DVQKVFV7V0WJDS9DTYE807":79},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6DVQKVFV7V0WJDS9DTYE807","jquery",null,"ACTIVATE when writing or modifying jQuery code — any file using `$(...)`, `$el.find(...)`, `$(document).ready(...)`, or a new feature whose page interaction will be handled by jQuery. ACTIVATE for 'jQuery', 'jQuery module', 'js- selector', 'init function', 'event delegation', 'toggleClass', 'show hide pair', 'reset to original value'. Covers: one ES module per feature with exported init, `js-*` selector classes (never form IDs, never `data-*` for hooks), per-block scoping via `.each()` + `find()`, original state captured in closure (not lazily in DOM), symmetric `toggleClass` over swap helpers, jQuery state mutations (`.val()`, `.attr()`, `.removeAttr()`). DO NOT use for: vanilla JS without jQuery, React\u002FVue\u002FAstro components, TypeScript-specific patterns, or build-tool \u002F template-engine wiring (those belong with the backend framework's frontend skill).","FabienSalles\u002Fclaude-marketplace","FabienSalles","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F937901?v=4","01M6DVJBD31CJKRB382FQFZ5FH","Fabien Salles","01M6DVJBQNY8Q18KJD1ESAD6TX",9,"MIT","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fjquery\u002Fskills\u002Fjquery\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"astro","interaction","reset","activate","show","hooks","ready","never","template","frontend","ids","data","delegation","code","init","react","components","typescript","writing","2026-11-10 10:12:30",false,"---\nname: jquery\ndescription: \"ACTIVATE when writing or modifying jQuery code — any file using `$(...)`, `$el.find(...)`, `$(document).ready(...)`, or a new feature whose page interaction will be handled by jQuery. ACTIVATE for 'jQuery', 'jQuery module', 'js- selector', 'init function', 'event delegation', 'toggleClass', 'show hide pair', 'reset to original value'. Covers: one ES module per feature with exported init, `js-*` selector classes (never form IDs, never `data-*` for hooks), per-block scoping via `.each()` + `find()`, original state captured in closure (not lazily in DOM), symmetric `toggleClass` over swap helpers, jQuery state mutations (`.val()`, `.attr()`, `.removeAttr()`). DO NOT use for: vanilla JS without jQuery, React\u002FVue\u002FAstro components, TypeScript-specific patterns, or build-tool \u002F template-engine wiring (those belong with the backend framework's frontend skill).\"\n---\n\n# jQuery Conventions\n\n> Framework-agnostic. The companion concerns (where the JS file lives in the project tree, how it's bundled, how the template loads it) belong to the backend framework's frontend skill.\n\n## Module Structure\n\nOne ES module per feature. Selector constants on top, exported `init\u003CFeature>()`, side-effect binding at the bottom.\n\n```js\nimport '.\u002Fmy-feature.scss';\n\nconst BLOCK_SELECTOR = '.js-my-feature-block';\nconst TRIGGER_SELECTOR = '.js-my-feature-trigger';\nconst CONTENT_SELECTOR = '.js-my-feature-content';\n\nexport const initMyFeature = () => {\n    $(BLOCK_SELECTOR).each(function () {\n        const $block = $(this);\n        const $trigger = $block.find(TRIGGER_SELECTOR);\n        const $content = $block.find(CONTENT_SELECTOR);\n\n        $trigger.on('click', () => $content.toggleClass('d-none'));\n    });\n};\n\n$(document).ready(() => initMyFeature());\n```\n\n> For a full skeleton (multiple buttons, restore-original pattern, event delegation), see [references\u002Fmodule-template.md](references\u002Fmodule-template.md).\n\n## Selectors — `js-*` only\n\nEvery JS hook is a CSS class prefixed `js-`. Renaming the hook is then one edit, and grepping `js-` finds every place JS touches the DOM.\n\n| ✅ Use                     | ❌ Avoid                       | Why avoid                                                |\n|---------------------------|-------------------------------|----------------------------------------------------------|\n| `.js-edit-trigger`         | `#someform_field_id`           | Server-generated IDs change when the parent form changes |\n| `.js-edit-trigger`         | `[data-action=\"edit\"]`         | `data-*` is for state, not for hooking handlers          |\n| `.js-edit-trigger`         | `.btn-primary`                 | Styling classes get refactored without warning           |\n| `.js-edit-trigger`         | `.col-md-6:nth-child(2)`       | Structural selectors break on the smallest markup edit   |\n\n`data-*` is fine for **state** (e.g. `data-original-value=\"...\"`), never for **hooks**.\n\n## Scoping — `.each()` + `find()`\n\nWhen the same block repeats on a page, each block is its own state unit. Bind handlers inside `.each()` on a scoped wrapper. Don't bind global handlers and `closest()` your way back to the block.\n\n```js\n\u002F\u002F ✅ Each block carries its own $textarea reference\n$(BLOCK_SELECTOR).each(function () {\n    const $block = $(this);\n    const $trigger = $block.find(TRIGGER_SELECTOR);\n    const $textarea = $block.find(TEXTAREA_SELECTOR);\n\n    $trigger.on('click', () => $textarea.removeAttr('readonly'));\n});\n```\n\n```js\n\u002F\u002F ❌ Global handler must navigate up at every click\n$(document).on('click', TRIGGER_SELECTOR, function () {\n    const $textarea = $(this).closest(BLOCK_SELECTOR).find(TEXTAREA_SELECTOR);\n    $textarea.removeAttr('readonly');\n});\n```\n\nUse event delegation (`$block.on('click', SELECTOR, …)`) **only** when the inner content is inserted dynamically (AJAX, collection types).\n\n## Capture Original State in Closure\n\nIf the feature can restore a previous value (reset, cancel), capture it **once at init**, in the closure. Don't lazy-store it in a `data-*` the first time the user clicks.\n\n```js\n\u002F\u002F ✅ Original lives in closure, captured at init\n$(BLOCK_SELECTOR).each(function () {\n    const $textarea = $(this).find(TEXTAREA_SELECTOR);\n    const originalValue = $textarea.val();\n\n    $resetButton.on('click', () => $textarea.val(originalValue));\n});\n```\n\n```js\n\u002F\u002F ❌ Lazy storage in DOM — what if the user clicks Reset before Edit?\n$editButton.on('click', () => {\n    if ($textarea.data('original') === undefined) {\n        $textarea.data('original', $textarea.val());\n    }\n});\n```\n\nThe DOM holds the *current* state. Closures hold the *initial* state. Don't blur the two.\n\n## Symmetric `toggleClass` over Swap Helpers\n\nWhen two elements swap visibility, one `toggleClass` on the pair beats an `addClass`\u002F`removeClass` helper that knows \"which to show, which to hide\".\n\n```js\n\u002F\u002F ✅ Symmetric — the toggle is the truth\nconst $buttons = $block.find(`${EDIT_SELECTOR}, ${RESET_SELECTOR}`);\n\n$editButton.on('click', () => {\n    $textarea.removeAttr('readonly').trigger('focus');\n    $buttons.toggleClass('d-none');\n});\n\n$resetButton.on('click', () => {\n    $textarea.val(originalValue).attr('readonly', 'readonly');\n    $buttons.toggleClass('d-none');\n});\n```\n\n```js\n\u002F\u002F ❌ Helper that carries illusory logic\nconst swapButtons = ($shown, $hidden) => {\n    $shown.addClass('d-none');\n    $hidden.removeClass('d-none');\n};\n$editButton.on('click', () => swapButtons($editButton, $resetButton));\n```\n\nBoth visibilities are mirror-images, so encoding \"which to hide\" is encoding the same fact twice.\n\n## jQuery for DOM Mutations\n\nUse jQuery for state mutations on jQuery wrappers (consistent API, chainable). Don't mix vanilla and jQuery on the same element.\n\n| State                  | jQuery                                            |\n|------------------------|---------------------------------------------------|\n| Set value              | `$textarea.val(value)`                            |\n| Clear value            | `$textarea.val('')`                               |\n| Make read-only         | `$textarea.attr('readonly', 'readonly')`          |\n| Make editable          | `$textarea.removeAttr('readonly')`                |\n| Toggle visibility      | `$el.toggleClass('d-none')`                       |\n| Toggle a state class   | `$el.toggleClass('is-active')`                    |\n| Focus                  | `$el.trigger('focus')` (preferred over `.focus()`)|\n\nChain when it reads naturally: `$textarea.val(originalValue).attr('readonly', 'readonly')`.\n\n> For mistakes that look reasonable but break in production (vanilla `document.querySelectorAll` mixed with jQuery, hardcoded form IDs, FormType-injected classes used as JS hooks, polluting `data-*`), see [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md).\n\n## Quick Reference\n\n| Situation                                | Approach                                                   |\n|------------------------------------------|------------------------------------------------------------|\n| New feature                              | One ES module, exports `init\u003CFeature>()`                   |\n| Hook a DOM element from JS               | `js-*` class — never ID, never `data-*`, never styling     |\n| Block repeats on the page                | Scope inside `.each()` + `find()`                          |\n| Inner content mutates (AJAX, collection) | Event delegation: `$block.on('click', SELECTOR, …)`        |\n| Need to restore initial value            | Capture in closure at init, not lazily in `data-*`         |\n| Two elements swap visibility             | `$pair.toggleClass('d-none')` in both handlers             |\n| Make textarea editable                   | `$el.removeAttr('readonly').trigger('focus')`              |\n| Make textarea read-only                  | `$el.attr('readonly', 'readonly')`                         |\n| Full module skeleton                     | See [references\u002Fmodule-template.md](references\u002Fmodule-template.md) |\n| Common mistakes and rewrites             | See [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md)     |\n","# jQuery Conventions\n\n> Framework-agnostic. The companion concerns (where the JS file lives in the project tree, how it's bundled, how the template loads it) belong to the backend framework's frontend skill.\n\n## Module Structure\n\nOne ES module per feature. Selector constants on top, exported `init\u003CFeature>()`, side-effect binding at the bottom.\n\n```js\nimport '.\u002Fmy-feature.scss';\n\nconst BLOCK_SELECTOR = '.js-my-feature-block';\nconst TRIGGER_SELECTOR = '.js-my-feature-trigger';\nconst CONTENT_SELECTOR = '.js-my-feature-content';\n\nexport const initMyFeature = () => {\n    $(BLOCK_SELECTOR).each(function () {\n        const $block = $(this);\n        const $trigger = $block.find(TRIGGER_SELECTOR);\n        const $content = $block.find(CONTENT_SELECTOR);\n\n        $trigger.on('click', () => $content.toggleClass('d-none'));\n    });\n};\n\n$(document).ready(() => initMyFeature());\n```\n\n> For a full skeleton (multiple buttons, restore-original pattern, event delegation), see [references\u002Fmodule-template.md](references\u002Fmodule-template.md).\n\n## Selectors — `js-*` only\n\nEvery JS hook is a CSS class prefixed `js-`. Renaming the hook is then one edit, and grepping `js-` finds every place JS touches the DOM.\n\n| ✅ Use                     | ❌ Avoid                       | Why avoid                                                |\n|---------------------------|-------------------------------|----------------------------------------------------------|\n| `.js-edit-trigger`         | `#someform_field_id`           | Server-generated IDs change when the parent form changes |\n| `.js-edit-trigger`         | `[data-action=\"edit\"]`         | `data-*` is for state, not for hooking handlers          |\n| `.js-edit-trigger`         | `.btn-primary`                 | Styling classes get refactored without warning           |\n| `.js-edit-trigger`         | `.col-md-6:nth-child(2)`       | Structural selectors break on the smallest markup edit   |\n\n`data-*` is fine for **state** (e.g. `data-original-value=\"...\"`), never for **hooks**.\n\n## Scoping — `.each()` + `find()`\n\nWhen the same block repeats on a page, each block is its own state unit. Bind handlers inside `.each()` on a scoped wrapper. Don't bind global handlers and `closest()` your way back to the block.\n\n```js\n\u002F\u002F ✅ Each block carries its own $textarea reference\n$(BLOCK_SELECTOR).each(function () {\n    const $block = $(this);\n    const $trigger = $block.find(TRIGGER_SELECTOR);\n    const $textarea = $block.find(TEXTAREA_SELECTOR);\n\n    $trigger.on('click', () => $textarea.removeAttr('readonly'));\n});\n```\n\n```js\n\u002F\u002F ❌ Global handler must navigate up at every click\n$(document).on('click', TRIGGER_SELECTOR, function () {\n    const $textarea = $(this).closest(BLOCK_SELECTOR).find(TEXTAREA_SELECTOR);\n    $textarea.removeAttr('readonly');\n});\n```\n\nUse event delegation (`$block.on('click', SELECTOR, …)`) **only** when the inner content is inserted dynamically (AJAX, collection types).\n\n## Capture Original State in Closure\n\nIf the feature can restore a previous value (reset, cancel), capture it **once at init**, in the closure. Don't lazy-store it in a `data-*` the first time the user clicks.\n\n```js\n\u002F\u002F ✅ Original lives in closure, captured at init\n$(BLOCK_SELECTOR).each(function () {\n    const $textarea = $(this).find(TEXTAREA_SELECTOR);\n    const originalValue = $textarea.val();\n\n    $resetButton.on('click', () => $textarea.val(originalValue));\n});\n```\n\n```js\n\u002F\u002F ❌ Lazy storage in DOM — what if the user clicks Reset before Edit?\n$editButton.on('click', () => {\n    if ($textarea.data('original') === undefined) {\n        $textarea.data('original', $textarea.val());\n    }\n});\n```\n\nThe DOM holds the *current* state. Closures hold the *initial* state. Don't blur the two.\n\n## Symmetric `toggleClass` over Swap Helpers\n\nWhen two elements swap visibility, one `toggleClass` on the pair beats an `addClass`\u002F`removeClass` helper that knows \"which to show, which to hide\".\n\n```js\n\u002F\u002F ✅ Symmetric — the toggle is the truth\nconst $buttons = $block.find(`${EDIT_SELECTOR}, ${RESET_SELECTOR}`);\n\n$editButton.on('click', () => {\n    $textarea.removeAttr('readonly').trigger('focus');\n    $buttons.toggleClass('d-none');\n});\n\n$resetButton.on('click', () => {\n    $textarea.val(originalValue).attr('readonly', 'readonly');\n    $buttons.toggleClass('d-none');\n});\n```\n\n```js\n\u002F\u002F ❌ Helper that carries illusory logic\nconst swapButtons = ($shown, $hidden) => {\n    $shown.addClass('d-none');\n    $hidden.removeClass('d-none');\n};\n$editButton.on('click', () => swapButtons($editButton, $resetButton));\n```\n\nBoth visibilities are mirror-images, so encoding \"which to hide\" is encoding the same fact twice.\n\n## jQuery for DOM Mutations\n\nUse jQuery for state mutations on jQuery wrappers (consistent API, chainable). Don't mix vanilla and jQuery on the same element.\n\n| State                  | jQuery                                            |\n|------------------------|---------------------------------------------------|\n| Set value              | `$textarea.val(value)`                            |\n| Clear value            | `$textarea.val('')`                               |\n| Make read-only         | `$textarea.attr('readonly', 'readonly')`          |\n| Make editable          | `$textarea.removeAttr('readonly')`                |\n| Toggle visibility      | `$el.toggleClass('d-none')`                       |\n| Toggle a state class   | `$el.toggleClass('is-active')`                    |\n| Focus                  | `$el.trigger('focus')` (preferred over `.focus()`)|\n\nChain when it reads naturally: `$textarea.val(originalValue).attr('readonly', 'readonly')`.\n\n> For mistakes that look reasonable but break in production (vanilla `document.querySelectorAll` mixed with jQuery, hardcoded form IDs, FormType-injected classes used as JS hooks, polluting `data-*`), see [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md).\n\n## Quick Reference\n\n| Situation                                | Approach                                                   |\n|------------------------------------------|------------------------------------------------------------|\n| New feature                              | One ES module, exports `init\u003CFeature>()`                   |\n| Hook a DOM element from JS               | `js-*` class — never ID, never `data-*`, never styling     |\n| Block repeats on the page                | Scope inside `.each()` + `find()`                          |\n| Inner content mutates (AJAX, collection) | Event delegation: `$block.on('click', SELECTOR, …)`        |\n| Need to restore initial value            | Capture in closure at init, not lazily in `data-*`         |\n| Two elements swap visibility             | `$pair.toggleClass('d-none')` in both handlers             |\n| Make textarea editable                   | `$el.removeAttr('readonly').trigger('focus')`              |\n| Make textarea read-only                  | `$el.attr('readonly', 'readonly')`                         |\n| Full module skeleton                     | See [references\u002Fmodule-template.md](references\u002Fmodule-template.md) |\n| Common mistakes and rewrites             | See [references\u002Fanti-patterns.md](references\u002Fanti-patterns.md)     |\n",{"name":5,"description":7},"main","479b264ec17cc5fafbf36287a1087472d3a386d3","plugins\u002Fjquery\u002Fskills\u002Fjquery",2,"https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace","https:\u002F\u002Fgithub.com\u002FFabienSalles","https:\u002F\u002Ffabiensalles.com","2026-10-13 04:33:22",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add FabienSalles\u002Fclaude-marketplace --skill jquery",{"tool":57,"command":58},"bunx","bunx skills add FabienSalles\u002Fclaude-marketplace --skill jquery",{"tool":60,"command":61},"pnpm","pnpm dlx skills add FabienSalles\u002Fclaude-marketplace --skill jquery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fjquery\u002Fskills\u002Fjquery\u002FSKILL.md",true,[65,71,75],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fanti-patterns.md","REFERENCE","参考文档",6516,"https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fjquery\u002Fskills\u002Fjquery\u002Freferences\u002Fanti-patterns.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fmodule-template.md",4574,"https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fjquery\u002Fskills\u002Fjquery\u002Freferences\u002Fmodule-template.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"STRATEGY.json",506,"https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002Fskills\u002Farbitragex-ultra\u002Fstrategies\u002FMEV-09-017\u002FSTRATEGY.json",[80,105,121,140,162,179],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":38},"01M6DW2YS1MGF65JNS1QQ15QHS","vitest-test-conventions","ACTIVATE when writing Vitest tests, creating test files, using vi.fn()\u002Fvi.mock()\u002Fvi.spyOn(), or test factories. ACTIVATE for 'Vitest', 'it.each', 'NestJS testing module', 'supertest', 'vi.fn', 'vi.mock', 'spyOn'. Provides Vitest\u002FNestJS-specific testing patterns; cross-language testing principles (DAMP, AAA, spy over mock, what NOT to test) live in craft:testing-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), TDD workflow\u002Fiterations (see vitest:vitest-tdd-workflow), PHP\u002FPHPUnit tests (see phpunit:php-test-conventions).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvitest\u002Fskills\u002Fvitest-test-conventions\u002FSKILL.md",[],[87,88,89,90,91,37,92,93,94,95,96,97,98,22,99,100,101,102,103,104],"test","vitest","conventions","vitest test conventions","testing","tdd","workflow","file","testing patterns","use","files","nestjs","do","project","tests","module","fn","testing principles",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":38},"01M6DW2VFE6NPFCGQKQ68P1MVZ","vitest-tdd-workflow","ACTIVATE when building new features, endpoints, or user stories using TDD with Vitest in a TypeScript\u002FNestJS context. ACTIVATE for '\u002Ffeature-tdd-dev', 'TDD', 'red-green-refactor' in TS context. Provides Vitest\u002FNestJS-specific TDD examples and commands; cross-language TDD workflow (cross-layer iterations, RED-GREEN-REFACTOR, working app, bug-fix-first-test, mocks-hiding-bugs) lives in craft:tdd-workflow-principles. DO NOT use for: node:test files (a file importing node:test) or a project whose tests run under node --test (see node-test:node-test-conventions), test writing conventions (see vitest:vitest-test-conventions), PHP TDD (see phpunit:php-tdd-workflow).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fvitest\u002Fskills\u002Fvitest-tdd-workflow\u002FSKILL.md",[],[92,93,112,88,113,37,114,94,115,116,96,117,97,22,99,118,100,101,119,120],"tdd workflow","vitest tdd workflow","dev","examples","fix","red-green-refactor","green","feature","app",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":38},"01M6DW2RGMQE10D8C5Z5MA2RMY","ts-refactoring","ACTIVATE when refactoring TypeScript code. ACTIVATE for 'refactor', 'extract', 'redesign', 'simplify', or 'clean up' in a TypeScript \u002F Node \u002F NestJS context. This skill provides TS-specific examples for the cross-language refactoring rules defined in craft:refactoring-principles. DO NOT use for: writing new features from scratch, general OOP patterns (see ts-oop).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-refactoring\u002FSKILL.md",[],[128,129,37,36,32,115,130,131,132,133,134,96,135,136,137,98,138,22,99,139],"refactoring","ts refactoring","refactor","simplify","Rules","node","redesign","up","general","clean","craft","patterns",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":38},"01M6DW2MHYXNBBVYEGB058Y48J","ts-ports-adapters","ACTIVATE when a TypeScript codebase with no dependency-injection container has to declare a port and wire its adapter — a repository, a clock, an id generator, an event dispatcher the domain depends on. ACTIVATE for 'port', 'adapter', 'SPI', 'dependency inversion' or 'composition root' in a codebase that wires its dependencies by hand. Covers: the port as a type of functions in the domain layer, the adapter as an object literal annotated with it, the handler that takes its dependencies first and its data second, the composition root in the infrastructure layer, and the in-memory stub that substitutes for the adapter in a unit test. DO NOT use for: NestJS, or any container-based DI with decorators and tokens (see nest-ddd-conventions), aggregate operations and smart constructors (see ddd-ts-fp), the Result type itself (see ts-functional).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-ports-adapters\u002FSKILL.md",[],[147,148,149,87,150,151,96,152,153,98,154,22,99,155,156,157,158,159,160,161],"ports","ts ports adapters","memory","ddd","Composition","container","functions","Literal","dependency-injection","domain","tokens","as","type","id","adapter",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":38},"01M6DW2GRXZFYT05HEDB26C9B8","ts-oop","ACTIVATE when designing TypeScript classes, and the value objects or collections modelled as classes, or when the user asks about object design, encapsulation, Tell Don't Ask, or Symbol.iterator. Provides TS-specific examples for the cross-language OOP rules defined in craft:oop-principles, plus TS-specific patterns (Symbol.iterator, branded types for primitive identifiers). DO NOT use for: a value object or an aggregate modelled as an immutable record rather than a class (see ddd-ts-fp), refactoring methodology (see ts-refactoring).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-oop\u002FSKILL.md",[],[169,170,171,36,150,115,172,173,128,132,174,96,175,138,22,99,176,177,178,158],"oop","ts oop","design","methodology","immutable","ask","refactoring methodology","objects","record","collections",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":38},"01M6DW2D26XG5MJMTP9MSE43S2","ts-layer-boundaries","ACTIVATE when wiring a Worker entry point, a Router, a controller, or a domain event consumer in a TypeScript CQRS codebase, or when deciding where a port belongs. ACTIVATE for 'composition root', 'layer boundary', 'ESLint zones', 'domain must not import infrastructure'. Covers: the *Worker.ts composition root, the curried consumer, Router wiring of command endpoints, the five-gesture controller, the domain-to-infrastructure import boundary enforced by ESLint, infrastructure-only ports, in-memory doubles for every port, the read-can-reach-write asymmetry, and read endpoints going through a domain handler. DO NOT use for: the port's own shape and adapter binding (see ts-ports-adapters), the Result type (see ts-functional), domain event structure (see ts-ddd-events).","https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Ftypescript\u002Fskills\u002Fts-layer-boundaries\u002FSKILL.md",[],[186,149,150,187,188,151,147,96,189,190,191,22,99,192,156,193,194,159,161,195],"ts layer boundaries","controller","boundary","router","only","endpoints","structure","cqrs","worker","import"]