[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APM5YV6Z5X2ZB25TGWZ74N":3,"skill-same:01M7APM5YV6Z5X2ZB25TGWZ74N":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7APM5YV6Z5X2ZB25TGWZ74N","check-cli-registrations",null,"Creates and verifies source contracts for CLI root and subcommand registrations. Use when preserving constructor wiring, source order, exact registration cardinality, or detecting command additions, removals, renames, and duplicates.","reoring\u002Fshepherd","reoring","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F735890?v=4","01M7APHZAJGX99VWAZ856836G5","01M7APHZB3FNAJ4KRRN51D8DJ8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-cli-registrations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: check-cli-registrations\ndescription: Creates and verifies source contracts for CLI root and subcommand registrations. Use when preserving constructor wiring, source order, exact registration cardinality, or detecting command additions, removals, renames, and duplicates.\n---\n\n# Check CLI Registrations\n\n## Outcome\n\nCreate a versioned contract that extracts CLI constructor expressions from one bounded registration function, grounds every item in a complete source line, and fails closed when the registration inventory drifts.\n\n## Existing Contract Fast Path\n\nWhen the user supplies an existing contract, do not begin with broad repository search.\n\nThe commands below are authoritative. Do not search for the skill, checker, or source before running the preflight.\n\n1. Run `shepherd check \"$REPO\" --contract \"$CONTRACT\" --json`.\n2. If the installed bin is unavailable in this checkout, run `node src\u002Fshepherd-cli.ts check \"$REPO\" --contract \"$CONTRACT\" --json` from the repository root.\n3. Do not invent flags such as `--context`.\n4. On PASS, use returned grounded facts and inspect only source paths needed for the requested risk review.\n5. On FAIL, inspect only failed facts and their bounded source paths before changing the contract.\n6. Treat `check-source-contract` as the deterministic authority. If the user also requests an answer, hand the passing contract to `query-large-source`; do not reconstruct the answer in this skill.\n\n## Use When\n\n- A stable root function registers commands or subcommands.\n- Registration count or source order is architecturally meaningful.\n- Constructor expressions are directly visible in source.\n- The check must run locally and in CI without model calls.\n\nDo not use this skill when commands are assembled dynamically from maps, reflection, runtime plugins, or generated data. Prefer a runtime\u002Funit test or AST-aware checker in those cases.\n\n## Workflow\n\n1. Locate the owning registration function and confirm there is one unambiguous definition.\n2. Read the complete bounded function. Do not search the whole repository for the registration literal and assume all hits belong to the root.\n3. Count direct registration lines and preserve source order only if order matters.\n4. Create `.rlm\u002Fcontracts\u002F\u003Ccli-name>.v1.json` with one `constructors` fact.\n5. Use a symbol source selector, a literal line selector, `identifier-after` capture, exact-cardinality `join`, and a template finalizer.\n6. Use `grounding: derived` when the captured constructor is embedded inside an `AddCommand(...)` line.\n7. Run `shepherd check` before invoking `\u002Fshepherd query`.\n8. If source intentionally changes, update source and contract in the same review.\n\n## Contract Pattern\n\n```json\n{\n  \"version\": 1,\n  \"factContract\": {\n    \"requirements\": [\n      {\n        \"id\": \"constructors\",\n        \"description\": \"Constructor expressions passed directly to the root command in source order.\",\n        \"grounding\": \"derived\",\n        \"minSupports\": 14,\n        \"extractor\": {\n          \"source\": {\n            \"kind\": \"symbol\",\n            \"name\": \"NewRootCmd\",\n            \"before\": 0,\n            \"after\": 80\n          },\n          \"select\": {\n            \"kind\": \"contains-all\",\n            \"literals\": [\"rootCmd.AddCommand(\"]\n          },\n          \"capture\": {\n            \"kind\": \"identifier-after\",\n            \"literal\": \"rootCmd.AddCommand(\"\n          },\n          \"reduce\": {\n            \"kind\": \"join\",\n            \"exactCount\": 14,\n            \"separator\": \",\"\n          }\n        }\n      }\n    ],\n    \"finalizer\": {\n      \"kind\": \"template\",\n      \"template\": \"{{constructors}}\"\n    }\n  }\n}\n```\n\nReplace symbol, literal, and cardinality with observed source facts. Never copy expected constructor values into the contract.\n\n## Check\n\nInstalled package:\n\n```bash\nshepherd check \"$REPO\" --contract \"$REPO\u002F.rlm\u002Fcontracts\u002Fcli-root.v1.json\" --json\n```\n\nThis checkout:\n\n```bash\nnode src\u002Fshepherd-cli.ts check \\\n  \"$REPO\" --contract \"$REPO\u002F.rlm\u002Fcontracts\u002Fcli-root.v1.json\" --json\n```\n\n## Failure Policy\n\n- `SOURCE_NOT_FOUND`: verify the owning function name; do not broaden to repository-wide text.\n- `SOURCE_AMBIGUOUS`: select a unique production symbol before proceeding.\n- `CARDINALITY_MISMATCH`: inspect additions, removals, and duplicates. Do not change `exactCount` just to make CI green.\n- `CAPTURE_FAILED`: the registration syntax changed; use a supported structural contract or choose AST\u002Fruntime testing.\n\n## Acceptance\n\n- All direct registrations are captured exactly once.\n- Supports are complete source lines.\n- `modelCalls` is `0` in check mode.\n- Intentional source changes and contract changes are reviewed together.\n- An intentionally stale cardinality exits non-zero.\n","# Check CLI Registrations\n\n## Outcome\n\nCreate a versioned contract that extracts CLI constructor expressions from one bounded registration function, grounds every item in a complete source line, and fails closed when the registration inventory drifts.\n\n## Existing Contract Fast Path\n\nWhen the user supplies an existing contract, do not begin with broad repository search.\n\nThe commands below are authoritative. Do not search for the skill, checker, or source before running the preflight.\n\n1. Run `shepherd check \"$REPO\" --contract \"$CONTRACT\" --json`.\n2. If the installed bin is unavailable in this checkout, run `node src\u002Fshepherd-cli.ts check \"$REPO\" --contract \"$CONTRACT\" --json` from the repository root.\n3. Do not invent flags such as `--context`.\n4. On PASS, use returned grounded facts and inspect only source paths needed for the requested risk review.\n5. On FAIL, inspect only failed facts and their bounded source paths before changing the contract.\n6. Treat `check-source-contract` as the deterministic authority. If the user also requests an answer, hand the passing contract to `query-large-source`; do not reconstruct the answer in this skill.\n\n## Use When\n\n- A stable root function registers commands or subcommands.\n- Registration count or source order is architecturally meaningful.\n- Constructor expressions are directly visible in source.\n- The check must run locally and in CI without model calls.\n\nDo not use this skill when commands are assembled dynamically from maps, reflection, runtime plugins, or generated data. Prefer a runtime\u002Funit test or AST-aware checker in those cases.\n\n## Workflow\n\n1. Locate the owning registration function and confirm there is one unambiguous definition.\n2. Read the complete bounded function. Do not search the whole repository for the registration literal and assume all hits belong to the root.\n3. Count direct registration lines and preserve source order only if order matters.\n4. Create `.rlm\u002Fcontracts\u002F\u003Ccli-name>.v1.json` with one `constructors` fact.\n5. Use a symbol source selector, a literal line selector, `identifier-after` capture, exact-cardinality `join`, and a template finalizer.\n6. Use `grounding: derived` when the captured constructor is embedded inside an `AddCommand(...)` line.\n7. Run `shepherd check` before invoking `\u002Fshepherd query`.\n8. If source intentionally changes, update source and contract in the same review.\n\n## Contract Pattern\n\n```json\n{\n  \"version\": 1,\n  \"factContract\": {\n    \"requirements\": [\n      {\n        \"id\": \"constructors\",\n        \"description\": \"Constructor expressions passed directly to the root command in source order.\",\n        \"grounding\": \"derived\",\n        \"minSupports\": 14,\n        \"extractor\": {\n          \"source\": {\n            \"kind\": \"symbol\",\n            \"name\": \"NewRootCmd\",\n            \"before\": 0,\n            \"after\": 80\n          },\n          \"select\": {\n            \"kind\": \"contains-all\",\n            \"literals\": [\"rootCmd.AddCommand(\"]\n          },\n          \"capture\": {\n            \"kind\": \"identifier-after\",\n            \"literal\": \"rootCmd.AddCommand(\"\n          },\n          \"reduce\": {\n            \"kind\": \"join\",\n            \"exactCount\": 14,\n            \"separator\": \",\"\n          }\n        }\n      }\n    ],\n    \"finalizer\": {\n      \"kind\": \"template\",\n      \"template\": \"{{constructors}}\"\n    }\n  }\n}\n```\n\nReplace symbol, literal, and cardinality with observed source facts. Never copy expected constructor values into the contract.\n\n## Check\n\nInstalled package:\n\n```bash\nshepherd check \"$REPO\" --contract \"$REPO\u002F.rlm\u002Fcontracts\u002Fcli-root.v1.json\" --json\n```\n\nThis checkout:\n\n```bash\nnode src\u002Fshepherd-cli.ts check \\\n  \"$REPO\" --contract \"$REPO\u002F.rlm\u002Fcontracts\u002Fcli-root.v1.json\" --json\n```\n\n## Failure Policy\n\n- `SOURCE_NOT_FOUND`: verify the owning function name; do not broaden to repository-wide text.\n- `SOURCE_AMBIGUOUS`: select a unique production symbol before proceeding.\n- `CARDINALITY_MISMATCH`: inspect additions, removals, and duplicates. Do not change `exactCount` just to make CI green.\n- `CAPTURE_FAILED`: the registration syntax changed; use a supported structural contract or choose AST\u002Fruntime testing.\n\n## Acceptance\n\n- All direct registrations are captured exactly once.\n- Supports are complete source lines.\n- `modelCalls` is `0` in check mode.\n- Intentional source changes and contract changes are reviewed together.\n- An intentionally stale cardinality exits non-zero.\n",{"name":5,"description":7},"main","fdbd9818a5ac8a0ab084eab8b9eda2c2c20f3baa","skills\u002Fcheck-cli-registrations","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd","https:\u002F\u002Fgithub.com\u002Freoring","http:\u002F\u002Fwww.craftsman-software.com\u002F","Founder of @appthrust. Building platforms with Rust and Kubernetes to enhance app development. Passionate about open-source and developer tools.\r\n","2026-08-18 15:14:28",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add reoring\u002Fshepherd --skill check-cli-registrations",{"tool":37,"command":38},"bunx","bunx skills add reoring\u002Fshepherd --skill check-cli-registrations",{"tool":40,"command":41},"pnpm","pnpm dlx skills add reoring\u002Fshepherd --skill check-cli-registrations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-cli-registrations\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M7APMR40H7JBMZ3NVDWCNRN4","query-large-source","Orchestrates conversational questions over large source through direct inspection tools and bounded Shepherd evidence queries.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fquery-large-source\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M7APMN62J2KPG4T2AMR4ZHR5","check-source-contract","Validates a versioned source-fact contract deterministically with zero model calls. Use in local development or CI to detect extraction, grounding, finalization, answer-pattern, and source drift failures.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-source-contract\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M7APMHB56BF0N3VHQ6VAC117","check-sdk-wiring","Creates and verifies cross-file source contracts from handwritten SDK services to generated request builders. Use when preserving validation labels, client method wiring, HTTP methods, URL templates, headers, or idempotency behavior.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-sdk-wiring\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7APMEHDSQCED821C6P8D317","check-registration-inventory","Creates and verifies source contracts for plugin, controller, route, provider, or handler inventories. Use when an exact registration list, order, or cardinality is an architectural invariant checked locally or in CI.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-registration-inventory\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7APMBR6T4AAEPT2C2WNWDT2","check-generated-code","Creates bounded source contracts for important facts inside large generated files. Use when verifying request shapes, route tables, bindings, operation names, or headers without loading the full generated artifact into model context.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-generated-code\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7APM92A4GMQT43JXD803ZBG","check-config-mappings","Creates and verifies source contracts for configuration defaults and constructor wiring. Use when checking zero-value defaults, config field assignments, timeout\u002Fretry settings, environment option mapping, or production constructor fields.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-config-mappings\u002FSKILL.md",[],[]]