[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BD97N8KADBZ4ZGVCR256R":3,"skill-same:01M69BD97N8KADBZ4ZGVCR256R":85},{"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":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M69BD97N8KADBZ4ZGVCR256R","lsp-node-protocol-consistency",null,"Keeps the Language Server Protocol specification and the vscode-languageserver-node TypeScript implementation aligned. Use when adding, changing, reviewing, or auditing LSP requests, notifications, capabilities, registration options, wire types, proposed or final status, since tags, meta-model data, or related documentation across microsoft\u002Flanguage-server-protocol and microsoft\u002Fvscode-languageserver-node.","microsoft\u002Flanguage-server-protocol","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BD7B5HKR2WMV2QKR988V3",13082,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Flanguage-server-protocol\u002Fblob\u002Fgh-pages\u002F.github\u002Fskills\u002Flsp-node-protocol-consistency\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,9],"consistency","lsp node protocol consistency","protocol","lsp","node","ruby","when","types","local","across","options","specification","language server","model","typescript","Meta","server","notifications","capabilities","documentation","status","vscode","2026-11-10 10:12:30",false,"---\nname: lsp-node-protocol-consistency\ndescription: Keeps the Language Server Protocol specification and the vscode-languageserver-node TypeScript implementation aligned. Use when adding, changing, reviewing, or auditing LSP requests, notifications, capabilities, registration options, wire types, proposed or final status, since tags, meta-model data, or related documentation across microsoft\u002Flanguage-server-protocol and microsoft\u002Fvscode-languageserver-node.\nlicense: MIT\ncompatibility: Requires local checkouts of microsoft\u002Flanguage-server-protocol and microsoft\u002Fvscode-languageserver-node, plus Node.js, npm, and git. Ruby and Bundler are optional for building the specification site.\nmetadata:\n  author: microsoft\n  version: \"1.0\"\n---\n\n# LSP Node and specification consistency\n\nMaintain one coherent LSP wire contract across the normative specification and\nthe Node implementation. Do not equate textual similarity with compatibility:\nTypeScript aliases, interfaces, intersections, helper namespaces, and factories\ncan differ while describing the same wire shape.\n\n## Establish the scope\n\n1. Locate both repository roots instead of assuming fixed directory names:\n   - The specification root contains `_data\u002Fspecifications.yml`.\n   - The Node root contains `protocol\u002Fpackage.json`, `types\u002Fsrc\u002Fmain.ts`, and\n     `tools\u002Fsrc\u002FmetaModel.ts`.\n2. Read `git status --short --branch` in both repositories before editing.\n   Preserve unrelated changes. If task files already have conflicting edits,\n   ask how to proceed.\n3. Read `_data\u002Fspecifications.yml` to identify the current LSP version unless\n   the user named a version. Do not update previous versions unless the task is\n   explicitly a historical correction.\n4. Determine whether the task is:\n   - an audit or review,\n   - a specification-first protocol change,\n   - an implementation correction, or\n   - synchronization of an already agreed contract.\n5. Identify the exact methods, capability paths, types, properties, enum\n   values, and documentation affected. Search both repositories for all of\n   them before changing files.\n\nIf the intended wire behavior is ambiguous or the repositories disagree in a\nway the task does not resolve, stop and ask which behavior is intended.\n\n## Apply source-of-truth rules\n\n- The specification prose defines normative protocol behavior.\n- However the implementation is the point of truth of the actual behavior. The\n  protocol should follow the implementation if not noted otherwise.\n- The Node TypeScript sources define the Node API and generate the meta model.\n- The specification's `metaModel.json`, `metaModel.ts`, and\n  `metaModel.schema.json` are mirrors of artifacts from the Node repository.\n- Never resolve a disagreement by blindly copying one side. Establish the\n  intended contract, update the authoritative source for each concern, and\n  then synchronize derived artifacts.\n\nRead [the consistency checklist](references\u002Fconsistency-checklist.md) for the\nsurface map and the invariants that must be checked.\n\n## Build a contract matrix\n\nFor every affected request, notification, or type, record and compare:\n\n- method string and message direction;\n- parameter, result, error data, partial result, and registration types;\n- client and server capability paths;\n- static and dynamic registration behavior;\n- property names, optionality, nullability, arrays, maps, unions, and literals;\n- numeric or string enum values;\n- `@since`, deprecation, and proposed\u002Ffinal status;\n- behavioral requirements stated only in prose;\n- public exports and, where applicable, client\u002Fserver feature wiring.\n\nTreat these distinctions as wire-significant:\n\n- omitted versus present with `null`;\n- optional versus required;\n- integer versus decimal;\n- an array versus a single value;\n- a literal value versus a general primitive;\n- client-to-server versus server-to-client versus both;\n- static capability advertisement versus dynamic registration.\n\n## Make coordinated changes\n\nWhen the task calls for edits, use an analogous completed feature as a pattern\nand update every applicable surface.\n\n### Specification repository\n\nUpdate the current version under `_specifications\u002Flsp\u002F\u003Cversion>\u002F`:\n\n- the feature or shared-type Markdown;\n- `specification.md` when a new topic must be included;\n- `_data\u002Fspecification-\u003Cmajor>-\u003Cminor>-toc.yml` when navigation changes;\n- versioned message includes when the change affects shared messages;\n- the change log when the protocol version gains a user-visible feature.\n\nKeep prose examples and TypeScript snippets semantically aligned. Preserve\nanchors and links when moving or renaming content.\n\n### Node repository\n\nUpdate only the layers required by the change:\n\n- `types\u002Fsrc\u002Fmain.ts` for serializable LSP data types and their public helpers;\n- `protocol\u002Fsrc\u002Fcommon\u002Fprotocol.ts` for shared protocol types, capabilities,\n  imports, and exports;\n- `protocol\u002Fsrc\u002Fcommon\u002Fprotocol.\u003Cfeature>.ts` for feature-specific messages;\n- `protocol\u002Fsrc\u002Fcommon\u002Fapi.ts` for public API exposure when needed;\n- `client\u002Fsrc\u002Fcommon\u002F` for client capability, registration, conversion, and\n  middleware support;\n- `server\u002Fsrc\u002Fcommon\u002F` for typed server handlers and feature exposure;\n- focused unit or integration tests for changed runtime behavior.\n\nNot every wire change requires client or server feature code. Explain why a\nlayer is not applicable rather than adding empty plumbing.\n\n## Regenerate and synchronize the meta model\n\nAfter changing Node protocol or type sources:\n\n1. Compile the affected Node workspaces.\n2. From the Node `protocol` workspace, run `npm run compile:metaModelTool`.\n3. From the Node repository root, run:\n   - `npm run generate:metaModel`\n   - `npm run generate:metaModelSchema`\n4. Inspect the generated diff. Unexpected additions, omissions, reordered\n   declarations, or lost documentation usually indicate an implementation or\n   generator-modeling error; fix the source instead of hand-editing generated\n   JSON.\n5. Copy the intended generated artifacts to the current specification:\n   - `protocol\u002FmetaModel.json` to\n     `_specifications\u002Flsp\u002F\u003Cversion>\u002FmetaModel\u002FmetaModel.json`;\n   - `tools\u002Fsrc\u002FmetaModel.ts` to\n     `_specifications\u002Flsp\u002F\u003Cversion>\u002FmetaModel\u002FmetaModel.ts`;\n   - `protocol\u002FmetaModel.schema.json` to\n     `_specifications\u002Flsp\u002F\u003Cversion>\u002FmetaModel\u002FmetaModel.schema.json`.\n6. Run the bundled comparison from the specification root:\n\n   `node .github\u002Fskills\u002Flsp-node-protocol-consistency\u002Fscripts\u002Fcompare-meta-model.mjs --node-repo \u003Cnode-repository-root>`\n\nThe comparison is read-only. It compares JSON semantically so irrelevant\nobject-key ordering does not create false failures, while array ordering and\nall values remain significant.\n\nMeta-model equality is necessary but not sufficient. It does not prove that\nnormative prose, examples, client\u002Fserver behavior, or runtime helpers agree.\n\n## Validate\n\nUse the smallest existing commands that cover the changed layers, escalating\nonly when needed:\n\n- Node type changes: `npm run compile:types`, then the `types` lint and tests.\n- Protocol changes: `npm run compile:protocol`, then the `protocol` lint and\n  Node tests.\n- Server changes: compile, lint, and test the `server` workspace.\n- Client changes: compile and lint `client`; run the focused\n  `client-node-tests` integration tests that exercise the feature.\n- Specification Markdown, includes, or navigation: run\n  `bundle exec jekyll build` when the repository's Ruby dependencies are\n  available.\n- Both repositories: run `git diff --check`.\n- Always rerun the bundled meta-model comparison after synchronization.\n\nDo not install or upgrade dependencies merely to complete an audit. If a\nrequired existing tool is unavailable, report the exact validation that could\nnot run.\n\n## Report the result\n\nState:\n\n- the two repository roots, branches, and target LSP version;\n- the contract surfaces checked;\n- files changed in each repository;\n- generated artifacts synchronized;\n- validation commands and outcomes;\n- any unresolved divergence or validation gap.\n\nFor audits, report each mismatch with the specification evidence, Node\nevidence, wire or API impact, and the recommended authoritative fix. Do not\nclaim consistency when only the meta-model files were compared.\n","# LSP Node and specification consistency\n\nMaintain one coherent LSP wire contract across the normative specification and\nthe Node implementation. Do not equate textual similarity with compatibility:\nTypeScript aliases, interfaces, intersections, helper namespaces, and factories\ncan differ while describing the same wire shape.\n\n## Establish the scope\n\n1. Locate both repository roots instead of assuming fixed directory names:\n   - The specification root contains `_data\u002Fspecifications.yml`.\n   - The Node root contains `protocol\u002Fpackage.json`, `types\u002Fsrc\u002Fmain.ts`, and\n     `tools\u002Fsrc\u002FmetaModel.ts`.\n2. Read `git status --short --branch` in both repositories before editing.\n   Preserve unrelated changes. If task files already have conflicting edits,\n   ask how to proceed.\n3. Read `_data\u002Fspecifications.yml` to identify the current LSP version unless\n   the user named a version. Do not update previous versions unless the task is\n   explicitly a historical correction.\n4. Determine whether the task is:\n   - an audit or review,\n   - a specification-first protocol change,\n   - an implementation correction, or\n   - synchronization of an already agreed contract.\n5. Identify the exact methods, capability paths, types, properties, enum\n   values, and documentation affected. Search both repositories for all of\n   them before changing files.\n\nIf the intended wire behavior is ambiguous or the repositories disagree in a\nway the task does not resolve, stop and ask which behavior is intended.\n\n## Apply source-of-truth rules\n\n- The specification prose defines normative protocol behavior.\n- However the implementation is the point of truth of the actual behavior. The\n  protocol should follow the implementation if not noted otherwise.\n- The Node TypeScript sources define the Node API and generate the meta model.\n- The specification's `metaModel.json`, `metaModel.ts`, and\n  `metaModel.schema.json` are mirrors of artifacts from the Node repository.\n- Never resolve a disagreement by blindly copying one side. Establish the\n  intended contract, update the authoritative source for each concern, and\n  then synchronize derived artifacts.\n\nRead [the consistency checklist](references\u002Fconsistency-checklist.md) for the\nsurface map and the invariants that must be checked.\n\n## Build a contract matrix\n\nFor every affected request, notification, or type, record and compare:\n\n- method string and message direction;\n- parameter, result, error data, partial result, and registration types;\n- client and server capability paths;\n- static and dynamic registration behavior;\n- property names, optionality, nullability, arrays, maps, unions, and literals;\n- numeric or string enum values;\n- `@since`, deprecation, and proposed\u002Ffinal status;\n- behavioral requirements stated only in prose;\n- public exports and, where applicable, client\u002Fserver feature wiring.\n\nTreat these distinctions as wire-significant:\n\n- omitted versus present with `null`;\n- optional versus required;\n- integer versus decimal;\n- an array versus a single value;\n- a literal value versus a general primitive;\n- client-to-server versus server-to-client versus both;\n- static capability advertisement versus dynamic registration.\n\n## Make coordinated changes\n\nWhen the task calls for edits, use an analogous completed feature as a pattern\nand update every applicable surface.\n\n### Specification repository\n\nUpdate the current version under `_specifications\u002Flsp\u002F\u003Cversion>\u002F`:\n\n- the feature or shared-type Markdown;\n- `specification.md` when a new topic must be included;\n- `_data\u002Fspecification-\u003Cmajor>-\u003Cminor>-toc.yml` when navigation changes;\n- versioned message includes when the change affects shared messages;\n- the change log when the protocol version gains a user-visible feature.\n\nKeep prose examples and TypeScript snippets semantically aligned. Preserve\nanchors and links when moving or renaming content.\n\n### Node repository\n\nUpdate only the layers required by the change:\n\n- `types\u002Fsrc\u002Fmain.ts` for serializable LSP data types and their public helpers;\n- `protocol\u002Fsrc\u002Fcommon\u002Fprotocol.ts` for shared protocol types, capabilities,\n  imports, and exports;\n- `protocol\u002Fsrc\u002Fcommon\u002Fprotocol.\u003Cfeature>.ts` for feature-specific messages;\n- `protocol\u002Fsrc\u002Fcommon\u002Fapi.ts` for public API exposure when needed;\n- `client\u002Fsrc\u002Fcommon\u002F` for client capability, registration, conversion, and\n  middleware support;\n- `server\u002Fsrc\u002Fcommon\u002F` for typed server handlers and feature exposure;\n- focused unit or integration tests for changed runtime behavior.\n\nNot every wire change requires client or server feature code. Explain why a\nlayer is not applicable rather than adding empty plumbing.\n\n## Regenerate and synchronize the meta model\n\nAfter changing Node protocol or type sources:\n\n1. Compile the affected Node workspaces.\n2. From the Node `protocol` workspace, run `npm run compile:metaModelTool`.\n3. From the Node repository root, run:\n   - `npm run generate:metaModel`\n   - `npm run generate:metaModelSchema`\n4. Inspect the generated diff. Unexpected additions, omissions, reordered\n   declarations, or lost documentation usually indicate an implementation or\n   generator-modeling error; fix the source instead of hand-editing generated\n   JSON.\n5. Copy the intended generated artifacts to the current specification:\n   - `protocol\u002FmetaModel.json` to\n     `_specifications\u002Flsp\u002F\u003Cversion>\u002FmetaModel\u002FmetaModel.json`;\n   - `tools\u002Fsrc\u002FmetaModel.ts` to\n     `_specifications\u002Flsp\u002F\u003Cversion>\u002FmetaModel\u002FmetaModel.ts`;\n   - `protocol\u002FmetaModel.schema.json` to\n     `_specifications\u002Flsp\u002F\u003Cversion>\u002FmetaModel\u002FmetaModel.schema.json`.\n6. Run the bundled comparison from the specification root:\n\n   `node .github\u002Fskills\u002Flsp-node-protocol-consistency\u002Fscripts\u002Fcompare-meta-model.mjs --node-repo \u003Cnode-repository-root>`\n\nThe comparison is read-only. It compares JSON semantically so irrelevant\nobject-key ordering does not create false failures, while array ordering and\nall values remain significant.\n\nMeta-model equality is necessary but not sufficient. It does not prove that\nnormative prose, examples, client\u002Fserver behavior, or runtime helpers agree.\n\n## Validate\n\nUse the smallest existing commands that cover the changed layers, escalating\nonly when needed:\n\n- Node type changes: `npm run compile:types`, then the `types` lint and tests.\n- Protocol changes: `npm run compile:protocol`, then the `protocol` lint and\n  Node tests.\n- Server changes: compile, lint, and test the `server` workspace.\n- Client changes: compile and lint `client`; run the focused\n  `client-node-tests` integration tests that exercise the feature.\n- Specification Markdown, includes, or navigation: run\n  `bundle exec jekyll build` when the repository's Ruby dependencies are\n  available.\n- Both repositories: run `git diff --check`.\n- Always rerun the bundled meta-model comparison after synchronization.\n\nDo not install or upgrade dependencies merely to complete an audit. If a\nrequired existing tool is unavailable, report the exact validation that could\nnot run.\n\n## Report the result\n\nState:\n\n- the two repository roots, branches, and target LSP version;\n- the contract surfaces checked;\n- files changed in each repository;\n- generated artifacts synchronized;\n- validation commands and outcomes;\n- any unresolved divergence or validation gap.\n\nFor audits, report each mismatch with the specification evidence, Node\nevidence, wire or API impact, and the recommended authoritative fix. Do not\nclaim consistency when only the meta-model files were compared.\n",{"name":5,"license":15,"metadata":46,"description":7,"compatibility":48},{"author":9,"version":47},"1.0","Requires local checkouts of microsoft\u002Flanguage-server-protocol and microsoft\u002Fvscode-languageserver-node, plus Node.js, npm, and git. Ruby and Bundler are optional for building the specification site.","gh-pages","112d978951f2223a962bf19516637862f587bf55",".github\u002Fskills\u002Flsp-node-protocol-consistency",1022,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Flanguage-server-protocol","https:\u002F\u002Fmicrosoft.github.io\u002Flanguage-server-protocol\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 01:01:09",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add microsoft\u002Flanguage-server-protocol --skill lsp-node-protocol-consistency",{"tool":65,"command":66},"bunx","bunx skills add microsoft\u002Flanguage-server-protocol --skill lsp-node-protocol-consistency",{"tool":68,"command":69},"pnpm","pnpm dlx skills add microsoft\u002Flanguage-server-protocol --skill lsp-node-protocol-consistency","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Flanguage-server-protocol\u002Fblob\u002Fgh-pages\u002F.github\u002Fskills\u002Flsp-node-protocol-consistency\u002FSKILL.md",true,[73,79],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fconsistency-checklist.md","REFERENCE","参考文档",5123,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Flanguage-server-protocol\u002Fblob\u002Fgh-pages\u002F.github\u002Fskills\u002Flsp-node-protocol-consistency\u002Freferences\u002Fconsistency-checklist.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fcompare-meta-model.mjs","SCRIPT","脚本",9270,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Flanguage-server-protocol\u002Fblob\u002Fgh-pages\u002F.github\u002Fskills\u002Flsp-node-protocol-consistency\u002Fscripts\u002Fcompare-meta-model.mjs",[]]