[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DVPQCAP72H13SXAWSH96QY":3,"skill-same:01M6DVPQCAP72H13SXAWSH96QY":72},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M6DVPQCAP72H13SXAWSH96QY","grill-adversarial",null,"Opt-in adversarial plan-challenging pass for the goal workflow (invoked by \u002Fgoal:spec when functional gaps are suspected, or on explicit request). Composes the Pocock grill skills (grill-me, grill-with-docs) and goes much further, hunting the functional and technical holes that survive a normal grill — broken invariants and broken execution schemas — BEFORE the iterations are frozen, so the plan is coherent and executable exactly as specified. Highest value on a COMPLEX BEHAVIOUR, and equally on a SIMPLE CHANGE LANDING IN A DENSE ZONE — many invariants, many paths, many things to keep in sync — which is the case most often waved through, since a one-liner invites nobody to re-enumerate anything. ACTIVATE for 'grill adversarial', 'grille adversariale', 'challenge the plan', 'trous fonctionnels', 'incohérences', 'invariants', 'state machine', 'interaction coherence', 'front interactions', 'edge transitions', 'zone complexe', 'effets de bord'.","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\u002Fgoal\u002Fskills\u002Fgrill-adversarial\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"grill adversarial","grill","grill-me","interaction","as","transitions","me","coherence","activate","simple","workflow","landing","challenge","broken","technical","plan","execution","edge","state","change","2026-11-10 10:12:30",false,"---\nname: grill-adversarial\ndescription: Opt-in adversarial plan-challenging pass for the goal workflow (invoked by \u002Fgoal:spec when functional gaps are suspected, or on explicit request). Composes the Pocock grill skills (grill-me, grill-with-docs) and goes much further, hunting the functional and technical holes that survive a normal grill — broken invariants and broken execution schemas — BEFORE the iterations are frozen, so the plan is coherent and executable exactly as specified. Highest value on a COMPLEX BEHAVIOUR, and equally on a SIMPLE CHANGE LANDING IN A DENSE ZONE — many invariants, many paths, many things to keep in sync — which is the case most often waved through, since a one-liner invites nobody to re-enumerate anything. ACTIVATE for 'grill adversarial', 'grille adversariale', 'challenge the plan', 'trous fonctionnels', 'incohérences', 'invariants', 'state machine', 'interaction coherence', 'front interactions', 'edge transitions', 'zone complexe', 'effets de bord'.\n---\n\n## Host\n\n`\u003Croot>` is Claude Code's substituted `${CLAUDE_PLUGIN_ROOT}`. A host that leaves it literal\n(Copilot CLI) reads `\u003Croot>` as two levels above `Base directory for this skill:`.\nA host that injects no base-directory line and reads `SKILL.md` itself (Codex CLI) takes `\u003Croot>` as two levels\nabove that file's directory.\n`$ARGUMENTS` left literal is the text typed after the command (empty when none).\nUse `\u003Croot>` wherever a command below says `${CLAUDE_PLUGIN_ROOT}`.\n\nWhen `\u003Croot>\u002Fsrc\u002Fartifacts.ts` or a shared file this skill names is missing, print\n`cannot locate the goal plugin scripts`, the host, and the install commands, run nothing and write nothing:\n`copilot plugin marketplace add \u003Crepository>` then\n`copilot plugin install goal@fabien-claude-marketplace` under Copilot,\n`codex plugin marketplace add \u003Crepository>` then\n`codex plugin add goal@fabien-claude-marketplace` under Codex,\n`\u002Fplugin install goal@fabien-claude-marketplace` under Claude Code.\n\nThen read `\u003Croot>\u002Fshared\u002Fhost.md`.\n\n# Adversarial grill — challenge the plan until no functional hole is left\n\nA normal grill resolves the branches that are **raised**. This pass **generates**\nthe branches nobody raised. It exists because interface incoherence and usage\nincoherence come from **unmodelled invariants and unenumerated transitions**, not\nfrom missing business rules — and those are invisible to a Socratic grill.\n\nTake the **whole plan** and the domain docs. Nothing is out of bounds — including\nwhat was never defined, never discussed, and never questioned.\n\n## When to run \u002F when to skip\n\nValue is the **product of two quantities**, and neither of them is how interactive\nthe feature looks:\n\n- **how dense the zone already is** — how many invariants hold there, how many\n  paths reach it, how many things must stay in sync, how many abnormal states it\n  already names (degraded, expired, absent, disabled);\n- **how far the change reaches into it** — whether it adds an actor, a copy, a\n  path or a state, or only changes a value inside one path that already exists.\n\nA complex behaviour scores high on both. **A simple modification inside a dense\nzone scores high too — and that is the dangerous case**, because its author sees a\none-liner and nobody re-enumerates anything.\n\n### The test\n\nCounting beats adjectives: every zone feels normal to whoever works in it, so\n\"is this complex?\" is answered *yes* far too rarely by the person best placed to\nanswer it.\n\n1. **Count what the zone already guarantees** — invariants its contract states,\n   rules its checks assert, states its docs name. **If that count exceeds what can\n   be recited from memory, the zone is dense.**\n2. **Name what the change adds** to it: an actor, a copy, a path, a state. Each\n   one *multiplies* the space rather than extending it — the same states, crossed\n   with one more thing that can be in them.\n3. **Run the pass unless both come back small.**\n\n**Skip** only when the zone holds few invariants AND the change adds nothing to\nthem: a copy change, a rename with no new caller, a refactor whose tests already\npin the behaviour.\n\n### Two traps\n\n**The size of the diff is not the signal.** Neither is \"it is only a rename \u002F a\nsecond one of what already exists \u002F one config line\". Those describe the change;\nthe holes come from the zone.\n\n**\"The state space is inherited from the parent work\" is not a reason to skip** —\nit is a reason to run. An inherited space is a *measured* count for step 1, and\nanything the change adds crosses it. Observed: a pass argued against on exactly\nthose grounds surfaced three holes anyway, one of which became a new business\nrule — a newly added invocation path silently bypassed a guard the old one\nhonoured.\n\n**Front vs back is a matter of degree, not of kind.** On back, actions are coarser\nand server-owned, so the matrix is smaller — not absent. Walk it anyway; a small\nmatrix is cheap.\n\n## Method\n\n### 0. Compose the base grills\nIf installed, load and run these first — they cover what is *raised*:\n- **`pocock:grill-with-docs`** — challenge the plan against the domain model,\n  sharpen terminology, update `CONTEXT.md` \u002F ADRs inline.\n- **`pocock:grill-me`** — resolve every raised decision branch to shared\n  understanding.\nThen apply the steps below, which *generate* what was never raised.\n\n### 1. Enumerate the state space\nList the **finite states** the feature can be in (front: list view, one item\nediting, one item adding, N items, empty, loading, error…). Name each one. A state\nyou cannot name is a state you cannot reason about — and where incoherence hides.\n\n### 2. Extract the invariants — what must hold in EVERY state\nWrite them explicitly as `I1…In`. On front, systematically check for:\n- **exactly one valid selection at all times** — never zero, never on an\n  incomplete\u002Fempty entity;\n- **no incomplete \u002F unsaved entity** occupying a selectable or committed slot;\n- **at most one editor open**;\n- **mutual exclusion** (single default, single selected…);\n- **no orphan \u002F empty persisted item**;\n- **reset \u002F reload returns to a coherent state**.\nFor each invariant, name its **OWNER**. **Front-only rule:** if state is 100% front\nwith no backend, the **front owns every invariant** a backend would normally guard —\nyou may **not** defer them to a non-existent server (\"validation delegated to\nbackend\" is a contradiction for a front-only feature).\n\n### 3. Build the transition matrix (adversarial)\nFor every **(state × action)**, in **every order**, ask: what is the resulting\nstate, and which invariant could this transition break? Play the **hostile user**:\nout-of-order clicks, double actions, act-then-switch, cancel-an-add,\ndelete-the-selected, submit-incomplete, reload-mid-edit. Every cell must resolve to\n**allowed (and preserves all invariants)** or **explicitly blocked**. An unresolved\ncell is a functional hole.\n\n### 4. Hunt execution-schema breaks\nBeyond single transitions, chase **sequences** that break the intended flow\nend-to-end: add A then edit B; validate with required fields empty; reset an add;\ndelete while editing; two adds in parallel; selection landing on a pending item.\nEach break is a new rule.\n\n### 5. Turn every hole into a testable rule\nEach surfaced hole becomes a business rule \u002F invariant with:\n- an **owner iteration** (or marked **transverse** — re-verified at each\n  iteration's DoD), and\n- a **sequence test**: drive the series of actions, assert the invariant holds\n  **throughout** — never a mere presence assertion (\"a button exists\").\n\n### 6. Update the plan in place\nAdd \u002F refresh in the spec:\n```markdown\n## States, invariants & transitions\n- **States:** S1…Sk\n- **Invariants:** I1…In  (each with its owner; front-only ⇒ front owns it)\n- **Transition matrix:** (state × action) → resulting state \u002F blocked \u002F invariant preserved\n```\nFold the new rules into **Business rules** (each → a sequence test in the DoD) and\nassign them to iterations or mark them **transverse**. **Nothing is frozen** until\nevery cell is resolved and every invariant has an owner + a test.\n\n## Termination\nStop when every state is named, every invariant is written and owned, and a full pass over\nthe `(state, action)` matrix surfaces no new hole. Completeness is the target, not a fixed\ncell count: once two consecutive passes add nothing, the matrix has converged and the\nremaining cells are exercised at the DoD instead of hand-enumerated here. If a cell needs a\nhuman decision, **ASK** — never guess an invariant into place.\n\n## Output\nA challenged, updated plan the developer confirms — coherent and executable exactly\nas specified, ready for `\u002Fgoal:plan` to decompose (or refined in place if already\ndecomposed). Summarize: states found, invariants added, holes surfaced, and which\nplan cells changed.\n","## Host\n\n`\u003Croot>` is Claude Code's substituted `${CLAUDE_PLUGIN_ROOT}`. A host that leaves it literal\n(Copilot CLI) reads `\u003Croot>` as two levels above `Base directory for this skill:`.\nA host that injects no base-directory line and reads `SKILL.md` itself (Codex CLI) takes `\u003Croot>` as two levels\nabove that file's directory.\n`$ARGUMENTS` left literal is the text typed after the command (empty when none).\nUse `\u003Croot>` wherever a command below says `${CLAUDE_PLUGIN_ROOT}`.\n\nWhen `\u003Croot>\u002Fsrc\u002Fartifacts.ts` or a shared file this skill names is missing, print\n`cannot locate the goal plugin scripts`, the host, and the install commands, run nothing and write nothing:\n`copilot plugin marketplace add \u003Crepository>` then\n`copilot plugin install goal@fabien-claude-marketplace` under Copilot,\n`codex plugin marketplace add \u003Crepository>` then\n`codex plugin add goal@fabien-claude-marketplace` under Codex,\n`\u002Fplugin install goal@fabien-claude-marketplace` under Claude Code.\n\nThen read `\u003Croot>\u002Fshared\u002Fhost.md`.\n\n# Adversarial grill — challenge the plan until no functional hole is left\n\nA normal grill resolves the branches that are **raised**. This pass **generates**\nthe branches nobody raised. It exists because interface incoherence and usage\nincoherence come from **unmodelled invariants and unenumerated transitions**, not\nfrom missing business rules — and those are invisible to a Socratic grill.\n\nTake the **whole plan** and the domain docs. Nothing is out of bounds — including\nwhat was never defined, never discussed, and never questioned.\n\n## When to run \u002F when to skip\n\nValue is the **product of two quantities**, and neither of them is how interactive\nthe feature looks:\n\n- **how dense the zone already is** — how many invariants hold there, how many\n  paths reach it, how many things must stay in sync, how many abnormal states it\n  already names (degraded, expired, absent, disabled);\n- **how far the change reaches into it** — whether it adds an actor, a copy, a\n  path or a state, or only changes a value inside one path that already exists.\n\nA complex behaviour scores high on both. **A simple modification inside a dense\nzone scores high too — and that is the dangerous case**, because its author sees a\none-liner and nobody re-enumerates anything.\n\n### The test\n\nCounting beats adjectives: every zone feels normal to whoever works in it, so\n\"is this complex?\" is answered *yes* far too rarely by the person best placed to\nanswer it.\n\n1. **Count what the zone already guarantees** — invariants its contract states,\n   rules its checks assert, states its docs name. **If that count exceeds what can\n   be recited from memory, the zone is dense.**\n2. **Name what the change adds** to it: an actor, a copy, a path, a state. Each\n   one *multiplies* the space rather than extending it — the same states, crossed\n   with one more thing that can be in them.\n3. **Run the pass unless both come back small.**\n\n**Skip** only when the zone holds few invariants AND the change adds nothing to\nthem: a copy change, a rename with no new caller, a refactor whose tests already\npin the behaviour.\n\n### Two traps\n\n**The size of the diff is not the signal.** Neither is \"it is only a rename \u002F a\nsecond one of what already exists \u002F one config line\". Those describe the change;\nthe holes come from the zone.\n\n**\"The state space is inherited from the parent work\" is not a reason to skip** —\nit is a reason to run. An inherited space is a *measured* count for step 1, and\nanything the change adds crosses it. Observed: a pass argued against on exactly\nthose grounds surfaced three holes anyway, one of which became a new business\nrule — a newly added invocation path silently bypassed a guard the old one\nhonoured.\n\n**Front vs back is a matter of degree, not of kind.** On back, actions are coarser\nand server-owned, so the matrix is smaller — not absent. Walk it anyway; a small\nmatrix is cheap.\n\n## Method\n\n### 0. Compose the base grills\nIf installed, load and run these first — they cover what is *raised*:\n- **`pocock:grill-with-docs`** — challenge the plan against the domain model,\n  sharpen terminology, update `CONTEXT.md` \u002F ADRs inline.\n- **`pocock:grill-me`** — resolve every raised decision branch to shared\n  understanding.\nThen apply the steps below, which *generate* what was never raised.\n\n### 1. Enumerate the state space\nList the **finite states** the feature can be in (front: list view, one item\nediting, one item adding, N items, empty, loading, error…). Name each one. A state\nyou cannot name is a state you cannot reason about — and where incoherence hides.\n\n### 2. Extract the invariants — what must hold in EVERY state\nWrite them explicitly as `I1…In`. On front, systematically check for:\n- **exactly one valid selection at all times** — never zero, never on an\n  incomplete\u002Fempty entity;\n- **no incomplete \u002F unsaved entity** occupying a selectable or committed slot;\n- **at most one editor open**;\n- **mutual exclusion** (single default, single selected…);\n- **no orphan \u002F empty persisted item**;\n- **reset \u002F reload returns to a coherent state**.\nFor each invariant, name its **OWNER**. **Front-only rule:** if state is 100% front\nwith no backend, the **front owns every invariant** a backend would normally guard —\nyou may **not** defer them to a non-existent server (\"validation delegated to\nbackend\" is a contradiction for a front-only feature).\n\n### 3. Build the transition matrix (adversarial)\nFor every **(state × action)**, in **every order**, ask: what is the resulting\nstate, and which invariant could this transition break? Play the **hostile user**:\nout-of-order clicks, double actions, act-then-switch, cancel-an-add,\ndelete-the-selected, submit-incomplete, reload-mid-edit. Every cell must resolve to\n**allowed (and preserves all invariants)** or **explicitly blocked**. An unresolved\ncell is a functional hole.\n\n### 4. Hunt execution-schema breaks\nBeyond single transitions, chase **sequences** that break the intended flow\nend-to-end: add A then edit B; validate with required fields empty; reset an add;\ndelete while editing; two adds in parallel; selection landing on a pending item.\nEach break is a new rule.\n\n### 5. Turn every hole into a testable rule\nEach surfaced hole becomes a business rule \u002F invariant with:\n- an **owner iteration** (or marked **transverse** — re-verified at each\n  iteration's DoD), and\n- a **sequence test**: drive the series of actions, assert the invariant holds\n  **throughout** — never a mere presence assertion (\"a button exists\").\n\n### 6. Update the plan in place\nAdd \u002F refresh in the spec:\n```markdown\n## States, invariants & transitions\n- **States:** S1…Sk\n- **Invariants:** I1…In  (each with its owner; front-only ⇒ front owns it)\n- **Transition matrix:** (state × action) → resulting state \u002F blocked \u002F invariant preserved\n```\nFold the new rules into **Business rules** (each → a sequence test in the DoD) and\nassign them to iterations or mark them **transverse**. **Nothing is frozen** until\nevery cell is resolved and every invariant has an owner + a test.\n\n## Termination\nStop when every state is named, every invariant is written and owned, and a full pass over\nthe `(state, action)` matrix surfaces no new hole. Completeness is the target, not a fixed\ncell count: once two consecutive passes add nothing, the matrix has converged and the\nremaining cells are exercised at the DoD instead of hand-enumerated here. If a cell needs a\nhuman decision, **ASK** — never guess an invariant into place.\n\n## Output\nA challenged, updated plan the developer confirms — coherent and executable exactly\nas specified, ready for `\u002Fgoal:plan` to decompose (or refined in place if already\ndecomposed). Summarize: states found, invariants added, holes surfaced, and which\nplan cells changed.\n",{"name":5,"description":7},"main","479b264ec17cc5fafbf36287a1087472d3a386d3","plugins\u002Fgoal\u002Fskills\u002Fgrill-adversarial",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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add FabienSalles\u002Fclaude-marketplace --skill grill-adversarial",{"tool":58,"command":59},"bunx","bunx skills add FabienSalles\u002Fclaude-marketplace --skill grill-adversarial",{"tool":61,"command":62},"pnpm","pnpm dlx skills add FabienSalles\u002Fclaude-marketplace --skill grill-adversarial","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFabienSalles\u002Fclaude-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgoal\u002Fskills\u002Fgrill-adversarial\u002FSKILL.md",true,[66],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"STRATEGY.json","REFERENCE","参考文档",518,"https:\u002F\u002Fgithub.com\u002Fhefarica\u002Farbitragex-v2\u002Fblob\u002Fmain\u002Fskills\u002Farbitragex-ultra\u002Fstrategies\u002FMEV-09-012\u002FSTRATEGY.json",[73,98,114,135,156,173],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":39},"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",[],[80,81,82,83,84,85,86,29,87,88,89,90,91,27,92,93,94,95,96,97],"test","vitest","conventions","vitest test conventions","testing","writing","tdd","file","testing patterns","use","files","nestjs","do","project","tests","module","fn","testing principles",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"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",[],[86,29,105,81,106,85,107,87,108,109,89,110,90,27,92,111,93,94,112,113],"tdd workflow","vitest tdd workflow","dev","examples","fix","red-green-refactor","green","feature","app",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"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",[],[121,122,85,123,124,108,125,126,127,128,129,89,130,131,132,91,133,27,92,134],"refactoring","ts refactoring","typescript","code","refactor","simplify","Rules","node","redesign","up","general","clean","craft","patterns",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":39},"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",[],[142,143,144,80,145,146,89,147,148,91,149,27,92,150,151,152,23,153,154,155],"ports","ts ports adapters","memory","ddd","Composition","container","functions","Literal","dependency-injection","domain","tokens","type","id","adapter",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":39},"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",[],[163,164,165,123,145,108,166,167,121,127,168,89,169,133,27,92,170,171,172,23],"oop","ts oop","design","methodology","immutable","ask","refactoring methodology","objects","record","collections",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"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",[],[180,144,145,181,182,146,142,89,183,184,185,27,92,186,151,187,188,153,155,189],"ts layer boundaries","controller","boundary","router","only","endpoints","structure","cqrs","worker","import"]