[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X0KWXZZ1T337HPFVCJTZ5S":3,"skill-same:01M6X0KWXZZ1T337HPFVCJTZ5S":67},{"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":51,"updatedAt":52,"install":53,"resources":66},"01M6X0KWXZZ1T337HPFVCJTZ5S","tlalink-maintain-links",null,"Create, update, check, remove or explicitly migrate TlaLink model-owned source links using Roslyn selectors and links list\u002Fcheck\u002Fset\u002Fremove\u002Fmigrate. Use when an agent must maintain binding\u002Fcapture metadata or repair attachment drift. Keeps edits separate from inspection, independent requirements, frozen evidence and human approvals.","microsoft\u002Ftlalink","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6X0KKG4Q63KFQPHXBJSZK9H",1,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftlalink\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftlalink-maintain-links\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"maintain","tlalink maintain links","links","drift","update","when","SET","approvals","binding","requirements","repair","human","migrate","create","evidence","use","remove","list","check","model","2026-11-10 10:12:30",false,"---\nname: tlalink-maintain-links\ndescription: 'Create, update, check, remove or explicitly migrate TlaLink model-owned source links using Roslyn selectors and links list\u002Fcheck\u002Fset\u002Fremove\u002Fmigrate. Use when an agent must maintain binding\u002Fcapture metadata or repair attachment drift. Keeps edits separate from inspection, independent requirements, frozen evidence and human approvals.'\n---\n\n# Maintain model-owned connections deliberately\n\nUse this workflow for requested connection changes, not merely to answer an\ninspection question. Start with [source navigation](..\u002Ftlalink-source-navigation\u002FSKILL.md)\nand [correspondence inspection](..\u002Ftlalink-inspect-correspondence\u002FSKILL.md).\nThe [maintenance reference](..\u002F..\u002F..\u002FREFERENCE.md#maintaining-model-owned-links)\nowns syntax\u002Foptions; [agent safeguards](..\u002F..\u002F..\u002FAGENTS.md) own repository policy.\n\n## Establish ownership and intended change\n\n1. Read package instructions and inspect the existing scope, native endpoint,\n   C# attachment and captures. Preserve unrelated worktree changes.\n2. Establish explicit compiler context and selected source files. Prefer an\n   applicable native `--regression-result` over reconstructing references or\n   defines. Supply `--annotation-version 4` and the selected pinned frontend.\n   Never provision or substitute tools during analysis.\n3. Obtain the actual Roslyn declaration ID through `symbols`. Select a native\n   endpoint from its authoritative inventory; do not guess declaration-name pairs.\n4. Decide whether this is metadata maintenance or a behavioral\u002Fabstraction\n   change. Surface changed assumptions for an explicit decision; do not\n   silently strengthen a model to fit code or weaken a requirement to pass.\n\nMaintain one convention: formal TLA+\u002FPlusCal, Dafny or P comments own typed\n`bind.source` and associated metadata; maintained C# stays unmodified. Use\nstable unique `scope::name` IDs and the shared source-preparation selector\ncontract, not line numbers, external JSON binding stores or another parser.\n\nCheck the package's selected wrapper\u002Fdistribution supports the requested action.\nA usage error for a documented command is a capability\u002Fsetup problem, not\nattachment drift: do not edit links to work around it. Pause for authorized\ndocumented distribution selection, then repeat preflight and inspection.\nChanged tool pins do not authorize refreshing requirements or review decisions.\n\n## Make the smallest authorized edit\n\n| Operation | Procedure |\n|---|---|\n| Inventory | `links list` for the selected scope\u002Ftarget\u002Fnative tool |\n| Validate | `links check` with explicit C# compilation inputs |\n| Create\u002Fupdate | `links set --binding \u003Cid> --symbol \u003CRoslyn-ID>`; new bindings also need `--endpoint \u003Cnative-name>` |\n| Remove | `links remove --binding \u003Cid>` only when removing that connection is intended |\n| Bulk conversion | `links migrate` plan first; see the separate procedure below |\n\nThis independently synthetic recipe runs from the repository root. Keep the\ncommon arguments and invocation in the same shell call when shell state is\nnot retained by the agent host.\n\n```powershell\n$common = @(\n    '--annotation-version', '4',\n    '--scope', '.\\examples\\Components\\src\\Counter\\verification\\scope.json',\n    '--target', 'counter',\n    '--source', '.\\examples\\Components\\src\\Counter\\Counter.cs',\n    '--jar', '.\\.tools\\tla\\v1.8.0\\tla2tools.jar'\n)\n.\\TlaLink.ps1 links set @common --binding 'counter::step' --endpoint Next --symbol 'M:ComponentsExample.Counter.Step' --syntax ExpressionStatement --tokens 'Value = (Value + 1) % 3;'\nif ($LASTEXITCODE -ne 0) { throw 'Link update failed; inspect the emitted diagnostics.' }\n.\\TlaLink.ps1 links check @common --format summary\nif ($LASTEXITCODE -ne 0) { throw 'Link check failed; do not report the edit as validated.' }\n```\n\nThis example intentionally updates maintained metadata; do not run it during a\nread-only question. Use the actual user's selected scope and authorized change.\n\nFor practice or skill validation, copy the public example's `Counter.cs`,\n`Counter.tla` and `scope.json` into a new disposable directory. This scope's\nmodel input is document-relative, so keep `scope.json` beside `Counter.tla`.\nPoint `--scope` and `--source` at those copies, keeping the pinned frontend\npath absolute. Exercise update, inspect, remove, expected failing check,\nrecreate and passing check there; assert unchanged original hashes and clean\nup only the files\u002Fdirectory created by the exercise. Treat the expected failed\ncheck as a test control, not a reason to modify required binding declarations.\nMigration on this already-converted fixture is only a no-op planning test;\nuse the focused link suite for a real source-owned migration control.\n\n## Selector and capture rules\n\n- Omit syntax\u002Ftokens for a whole declaration. For a statement\u002Fexpression use an\n  exact Roslyn syntax kind and token filter when appropriate. Token matching\n  ignores trivia, not semantic changes.\n- Repeated syntax requires an explicit one-based `--match` and\n  `--expected-matches`. Positional selectors can survive equal-count reordering\n  while changing meaning: inspect the resolved statement after editing.\n- Do not replace every control's positional selector with exact tokens.\n  Independently authored behavioral mutation controls must still reach their\n  intended attachment; an attachment\u002Fparser failure is not a successful control.\n- Preserve existing captures unless deliberately changing them. Repeated\n  `--capture '\u003Ctyped JSON>'` replaces that binding's capture entries;\n  `--clear-capture true` clears them. Capture objects must name this binding.\n  Only the TLA+\u002FTLC adapter supports captures, not Dafny\u002FP.\n- Preserve binding reasons and exclusions. Exclusions scope correspondence,\n  not runtime code, input pins or relevant argument\u002Fcallee effects.\n- Moving a binding to another native endpoint requires explicit remove then\n  set. Removal does not remove independent required-binding declarations or\n  acceptance policy; a resulting check failure must remain visible.\n- Put PlusCal annotations on authored labels, never generated translation\n  bodies. Regenerate translations explicitly through the documented frontend\n  procedure when required; do not hand-edit generated code.\n\n## Bulk migration is a separate, reviewed operation\n\n1. Run `links migrate` with explicit sources\u002Fscope and selected pinned tools.\n   It defaults to a plan; `--target` narrows it, otherwise all scope targets\n   participate and each selected language needs its frontend.\n2. Save the plan to a new `--output` file. Review IDs, exclusions, capture\n   preservation, proposed source stripping and token\u002Fbyte checks.\n3. Differing reasons block by default. Only after reviewing both meanings use\n   `--reason-policy preserve-both`; retaining both does not prove compatibility.\n4. Use `--strip-source false` when importing from immutable copies that must\n   remain unchanged.\n5. Apply only the authorized conversion with `--apply true`. Keep before\u002Fafter\n   receipts and investigate interrupted application; edits are not a multi-file\n   crash transaction. Never overwrite historical evidence or prepared outputs.\n\nMigration does not authorize renewing source allowlists, configuration pins,\nindependent requirements or reviews. Handle any intentional successor inputs\nexplicitly under their own package policy, not as automatic drift repair.\n\n## Validate and report separately\n\nRun `links check`, inspect affected pairs with `links inspect`, and review the\nrelevant authored diff. For changed behavior\u002Fattachment points, run affected\nregressions and defect-relevant controls with the same compiler\u002Fnative context.\nDo not overwrite immutable baselines or change checker requirements to clear\nfailures.\n\nReport edited IDs\u002Ffiles, selector\u002Fcapture changes, checks and native controls,\ncurrent applicability and remaining correspondence questions. CLI edits and\nsuccessful checks do not approve atomicity or semantic equivalence, discharge\nhuman gates, or compose backend results into C# correctness. Do not commit or\npublish private package material or record agent self-review as human approval.\n","# Maintain model-owned connections deliberately\n\nUse this workflow for requested connection changes, not merely to answer an\ninspection question. Start with [source navigation](..\u002Ftlalink-source-navigation\u002FSKILL.md)\nand [correspondence inspection](..\u002Ftlalink-inspect-correspondence\u002FSKILL.md).\nThe [maintenance reference](..\u002F..\u002F..\u002FREFERENCE.md#maintaining-model-owned-links)\nowns syntax\u002Foptions; [agent safeguards](..\u002F..\u002F..\u002FAGENTS.md) own repository policy.\n\n## Establish ownership and intended change\n\n1. Read package instructions and inspect the existing scope, native endpoint,\n   C# attachment and captures. Preserve unrelated worktree changes.\n2. Establish explicit compiler context and selected source files. Prefer an\n   applicable native `--regression-result` over reconstructing references or\n   defines. Supply `--annotation-version 4` and the selected pinned frontend.\n   Never provision or substitute tools during analysis.\n3. Obtain the actual Roslyn declaration ID through `symbols`. Select a native\n   endpoint from its authoritative inventory; do not guess declaration-name pairs.\n4. Decide whether this is metadata maintenance or a behavioral\u002Fabstraction\n   change. Surface changed assumptions for an explicit decision; do not\n   silently strengthen a model to fit code or weaken a requirement to pass.\n\nMaintain one convention: formal TLA+\u002FPlusCal, Dafny or P comments own typed\n`bind.source` and associated metadata; maintained C# stays unmodified. Use\nstable unique `scope::name` IDs and the shared source-preparation selector\ncontract, not line numbers, external JSON binding stores or another parser.\n\nCheck the package's selected wrapper\u002Fdistribution supports the requested action.\nA usage error for a documented command is a capability\u002Fsetup problem, not\nattachment drift: do not edit links to work around it. Pause for authorized\ndocumented distribution selection, then repeat preflight and inspection.\nChanged tool pins do not authorize refreshing requirements or review decisions.\n\n## Make the smallest authorized edit\n\n| Operation | Procedure |\n|---|---|\n| Inventory | `links list` for the selected scope\u002Ftarget\u002Fnative tool |\n| Validate | `links check` with explicit C# compilation inputs |\n| Create\u002Fupdate | `links set --binding \u003Cid> --symbol \u003CRoslyn-ID>`; new bindings also need `--endpoint \u003Cnative-name>` |\n| Remove | `links remove --binding \u003Cid>` only when removing that connection is intended |\n| Bulk conversion | `links migrate` plan first; see the separate procedure below |\n\nThis independently synthetic recipe runs from the repository root. Keep the\ncommon arguments and invocation in the same shell call when shell state is\nnot retained by the agent host.\n\n```powershell\n$common = @(\n    '--annotation-version', '4',\n    '--scope', '.\\examples\\Components\\src\\Counter\\verification\\scope.json',\n    '--target', 'counter',\n    '--source', '.\\examples\\Components\\src\\Counter\\Counter.cs',\n    '--jar', '.\\.tools\\tla\\v1.8.0\\tla2tools.jar'\n)\n.\\TlaLink.ps1 links set @common --binding 'counter::step' --endpoint Next --symbol 'M:ComponentsExample.Counter.Step' --syntax ExpressionStatement --tokens 'Value = (Value + 1) % 3;'\nif ($LASTEXITCODE -ne 0) { throw 'Link update failed; inspect the emitted diagnostics.' }\n.\\TlaLink.ps1 links check @common --format summary\nif ($LASTEXITCODE -ne 0) { throw 'Link check failed; do not report the edit as validated.' }\n```\n\nThis example intentionally updates maintained metadata; do not run it during a\nread-only question. Use the actual user's selected scope and authorized change.\n\nFor practice or skill validation, copy the public example's `Counter.cs`,\n`Counter.tla` and `scope.json` into a new disposable directory. This scope's\nmodel input is document-relative, so keep `scope.json` beside `Counter.tla`.\nPoint `--scope` and `--source` at those copies, keeping the pinned frontend\npath absolute. Exercise update, inspect, remove, expected failing check,\nrecreate and passing check there; assert unchanged original hashes and clean\nup only the files\u002Fdirectory created by the exercise. Treat the expected failed\ncheck as a test control, not a reason to modify required binding declarations.\nMigration on this already-converted fixture is only a no-op planning test;\nuse the focused link suite for a real source-owned migration control.\n\n## Selector and capture rules\n\n- Omit syntax\u002Ftokens for a whole declaration. For a statement\u002Fexpression use an\n  exact Roslyn syntax kind and token filter when appropriate. Token matching\n  ignores trivia, not semantic changes.\n- Repeated syntax requires an explicit one-based `--match` and\n  `--expected-matches`. Positional selectors can survive equal-count reordering\n  while changing meaning: inspect the resolved statement after editing.\n- Do not replace every control's positional selector with exact tokens.\n  Independently authored behavioral mutation controls must still reach their\n  intended attachment; an attachment\u002Fparser failure is not a successful control.\n- Preserve existing captures unless deliberately changing them. Repeated\n  `--capture '\u003Ctyped JSON>'` replaces that binding's capture entries;\n  `--clear-capture true` clears them. Capture objects must name this binding.\n  Only the TLA+\u002FTLC adapter supports captures, not Dafny\u002FP.\n- Preserve binding reasons and exclusions. Exclusions scope correspondence,\n  not runtime code, input pins or relevant argument\u002Fcallee effects.\n- Moving a binding to another native endpoint requires explicit remove then\n  set. Removal does not remove independent required-binding declarations or\n  acceptance policy; a resulting check failure must remain visible.\n- Put PlusCal annotations on authored labels, never generated translation\n  bodies. Regenerate translations explicitly through the documented frontend\n  procedure when required; do not hand-edit generated code.\n\n## Bulk migration is a separate, reviewed operation\n\n1. Run `links migrate` with explicit sources\u002Fscope and selected pinned tools.\n   It defaults to a plan; `--target` narrows it, otherwise all scope targets\n   participate and each selected language needs its frontend.\n2. Save the plan to a new `--output` file. Review IDs, exclusions, capture\n   preservation, proposed source stripping and token\u002Fbyte checks.\n3. Differing reasons block by default. Only after reviewing both meanings use\n   `--reason-policy preserve-both`; retaining both does not prove compatibility.\n4. Use `--strip-source false` when importing from immutable copies that must\n   remain unchanged.\n5. Apply only the authorized conversion with `--apply true`. Keep before\u002Fafter\n   receipts and investigate interrupted application; edits are not a multi-file\n   crash transaction. Never overwrite historical evidence or prepared outputs.\n\nMigration does not authorize renewing source allowlists, configuration pins,\nindependent requirements or reviews. Handle any intentional successor inputs\nexplicitly under their own package policy, not as automatic drift repair.\n\n## Validate and report separately\n\nRun `links check`, inspect affected pairs with `links inspect`, and review the\nrelevant authored diff. For changed behavior\u002Fattachment points, run affected\nregressions and defect-relevant controls with the same compiler\u002Fnative context.\nDo not overwrite immutable baselines or change checker requirements to clear\nfailures.\n\nReport edited IDs\u002Ffiles, selector\u002Fcapture changes, checks and native controls,\ncurrent applicability and remaining correspondence questions. CLI edits and\nsuccessful checks do not approve atomicity or semantic equivalence, discharge\nhuman gates, or compose backend results into C# correctness. Do not commit or\npublish private package material or record agent self-review as human approval.\n",{"name":5,"description":7},"main","b9cc67ed16aeea9a40c0058c9e05c83a79392ce4",".github\u002Fskills\u002Ftlalink-maintain-links",0,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftlalink","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-03 21:06:05",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add microsoft\u002Ftlalink --skill tlalink-maintain-links",{"tool":59,"command":60},"bunx","bunx skills add microsoft\u002Ftlalink --skill tlalink-maintain-links",{"tool":62,"command":63},"pnpm","pnpm dlx skills add microsoft\u002Ftlalink --skill tlalink-maintain-links","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftlalink\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftlalink-maintain-links\u002FSKILL.md",true,[],[68,94],{"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":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M6X0M1CBG11RN1AZSD1SAJGD","tlalink-source-navigation","Find C# symbols and Roslyn declaration IDs with TlaLink; resolve source positions, inspect member code, find references, callers and callees, or obtain compiler-backed source facts. Use before selecting correspondence attachments or following calls. Read-only navigation, not link editing or a whole-program effect analysis.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftlalink\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftlalink-source-navigation\u002FSKILL.md",[],[75,76,77,78,79,80,81,82,34,83,84,85,86,87,88,89,90,91,92,93],"tlalink source navigation","source","navigation","ids","code","analysis","editing","effect","only","references","with","C#","read-only","calls","inspect","facts","find references","program","compiler",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6X0KPAJ9EEXQMYTE0WYZY36","tlalink-inspect-correspondence","Inspect TlaLink source\u002Fmodel correspondence with inline TLA+\u002FPlusCal, Dafny or P and resolved C#. Use for bindings, guards, captures, multi-step ownership\u002Fcleanup review, grouped member context, bounded callee source, unresolved attachments or targeted responses; filter and page links inspect rather than post-process large JSON. Read-only, not editing or proof approval.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Ftlalink\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftlalink-inspect-correspondence\u002FSKILL.md",[],[101,89,102,103,104,38,105,81,34,83,106,107,108,85,86,87,21,109,110,111],"tlalink inspect correspondence","TLA+","cleanup","attachments","page","filter","post","multi","for","inline","review"]