[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APMHB56BF0N3VHQ6VAC117":3,"skill-same:01M7APMHB56BF0N3VHQ6VAC117":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},"01M7APMHB56BF0N3VHQ6VAC117","check-sdk-wiring",null,"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.","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-sdk-wiring\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: check-sdk-wiring\ndescription: 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.\n---\n\n# Check SDK Wiring\n\n## Outcome\n\nVerify that a handwritten SDK method remains connected to the intended generated request builder and that the generated request shape preserves the declared HTTP method, path template, and critical headers.\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 handwritten service delegates to a generated client.\n- The generated file is too large to send directly to a model.\n- A small set of cross-file request facts must remain aligned.\n- Generated code changes frequently but the public SDK contract is stable.\n\nDo not edit generated code to satisfy the contract. Change the owning schema\u002Fgenerator or intentionally update the contract after regeneration.\n\n## Workflow\n\n1. Locate the handwritten service method and its exact generated raw method call.\n2. Locate the generated request-builder symbol, not a broad path literal hit.\n3. Keep each semantic output as a separate fact.\n4. Use one bounded service slice for validation label and raw method.\n5. Use one bounded generated-builder slice for HTTP method, URL template, and headers.\n6. Keep the slice short enough not to include the next generated function.\n7. Use quoted captures for strings and `identifier-after` for generated method names.\n8. Finalize only after every cross-file fact is grounded.\n\n## Recommended Facts\n\n```text\nvalidation-label\nraw-method\nhttp-method\nurl-template\nidempotency-header\n```\n\n## Extractor Patterns\n\nValidation label:\n\n```json\n{\n  \"select\": {\"kind\": \"contains-all\", \"literals\": [\"requireNonEmpty(\", \"id)\"]},\n  \"capture\": {\"kind\": \"quoted-string\", \"index\": 0},\n  \"reduce\": {\"kind\": \"single\", \"exactCount\": 1}\n}\n```\n\nGenerated raw method:\n\n```json\n{\n  \"select\": {\"kind\": \"contains-all\", \"literals\": [\"client.raw.\", \"WithBodyWithResponse(\"]},\n  \"capture\": {\"kind\": \"identifier-after\", \"literal\": \"client.raw.\"},\n  \"reduce\": {\"kind\": \"single\", \"exactCount\": 1}\n}\n```\n\nGenerated request facts:\n\n```json\n{\n  \"select\": {\"kind\": \"contains-all\", \"literals\": [\"http.NewRequest(\"]},\n  \"capture\": {\"kind\": \"quoted-string\", \"index\": 0},\n  \"reduce\": {\"kind\": \"single\", \"exactCount\": 1}\n}\n```\n\nUse separate selectors for `operationPath := fmt.Sprintf(` and critical `Header.Set(` lines.\n\n## Bounded Generated Source\n\nGenerated files often contain adjacent functions with identical request construction lines. If `exactCount` is unexpectedly greater than one:\n\n1. Reduce `after` to the target function body.\n2. Add a stable scope end if available.\n3. Do not select the first request line from a large generated window.\n\n## Failure Policy\n\n- `CARDINALITY_MISMATCH` in generated source often means the slice includes the next function.\n- `SOURCE_NOT_FOUND` after regeneration requires checking the owning API operation name.\n- A changed HTTP method\u002Fpath\u002Fheader is a public contract review, not automatic repair.\n- Never encode the expected generated method\u002Fpath\u002Fheader value into selector literals merely to force a pass.\n\n## Acceptance\n\n- Handwritten and generated facts are grounded separately.\n- The contract contains structure but no oracle output values.\n- Regeneration with an intentional API change fails until reviewed.\n- Check mode performs zero model calls.\n","# Check SDK Wiring\n\n## Outcome\n\nVerify that a handwritten SDK method remains connected to the intended generated request builder and that the generated request shape preserves the declared HTTP method, path template, and critical headers.\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 handwritten service delegates to a generated client.\n- The generated file is too large to send directly to a model.\n- A small set of cross-file request facts must remain aligned.\n- Generated code changes frequently but the public SDK contract is stable.\n\nDo not edit generated code to satisfy the contract. Change the owning schema\u002Fgenerator or intentionally update the contract after regeneration.\n\n## Workflow\n\n1. Locate the handwritten service method and its exact generated raw method call.\n2. Locate the generated request-builder symbol, not a broad path literal hit.\n3. Keep each semantic output as a separate fact.\n4. Use one bounded service slice for validation label and raw method.\n5. Use one bounded generated-builder slice for HTTP method, URL template, and headers.\n6. Keep the slice short enough not to include the next generated function.\n7. Use quoted captures for strings and `identifier-after` for generated method names.\n8. Finalize only after every cross-file fact is grounded.\n\n## Recommended Facts\n\n```text\nvalidation-label\nraw-method\nhttp-method\nurl-template\nidempotency-header\n```\n\n## Extractor Patterns\n\nValidation label:\n\n```json\n{\n  \"select\": {\"kind\": \"contains-all\", \"literals\": [\"requireNonEmpty(\", \"id)\"]},\n  \"capture\": {\"kind\": \"quoted-string\", \"index\": 0},\n  \"reduce\": {\"kind\": \"single\", \"exactCount\": 1}\n}\n```\n\nGenerated raw method:\n\n```json\n{\n  \"select\": {\"kind\": \"contains-all\", \"literals\": [\"client.raw.\", \"WithBodyWithResponse(\"]},\n  \"capture\": {\"kind\": \"identifier-after\", \"literal\": \"client.raw.\"},\n  \"reduce\": {\"kind\": \"single\", \"exactCount\": 1}\n}\n```\n\nGenerated request facts:\n\n```json\n{\n  \"select\": {\"kind\": \"contains-all\", \"literals\": [\"http.NewRequest(\"]},\n  \"capture\": {\"kind\": \"quoted-string\", \"index\": 0},\n  \"reduce\": {\"kind\": \"single\", \"exactCount\": 1}\n}\n```\n\nUse separate selectors for `operationPath := fmt.Sprintf(` and critical `Header.Set(` lines.\n\n## Bounded Generated Source\n\nGenerated files often contain adjacent functions with identical request construction lines. If `exactCount` is unexpectedly greater than one:\n\n1. Reduce `after` to the target function body.\n2. Add a stable scope end if available.\n3. Do not select the first request line from a large generated window.\n\n## Failure Policy\n\n- `CARDINALITY_MISMATCH` in generated source often means the slice includes the next function.\n- `SOURCE_NOT_FOUND` after regeneration requires checking the owning API operation name.\n- A changed HTTP method\u002Fpath\u002Fheader is a public contract review, not automatic repair.\n- Never encode the expected generated method\u002Fpath\u002Fheader value into selector literals merely to force a pass.\n\n## Acceptance\n\n- Handwritten and generated facts are grounded separately.\n- The contract contains structure but no oracle output values.\n- Regeneration with an intentional API change fails until reviewed.\n- Check mode performs zero model calls.\n",{"name":5,"description":7},"main","fdbd9818a5ac8a0ab084eab8b9eda2c2c20f3baa","skills\u002Fcheck-sdk-wiring","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-sdk-wiring",{"tool":37,"command":38},"bunx","bunx skills add reoring\u002Fshepherd --skill check-sdk-wiring",{"tool":40,"command":41},"pnpm","pnpm dlx skills add reoring\u002Fshepherd --skill check-sdk-wiring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-sdk-wiring\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},"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":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},"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":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},"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",[],[],{"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},"01M7APM5YV6Z5X2ZB25TGWZ74N","check-cli-registrations","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.","https:\u002F\u002Fgithub.com\u002Freoring\u002Fshepherd\u002Fblob\u002Fmain\u002Fskills\u002Fcheck-cli-registrations\u002FSKILL.md",[],[]]