[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7232W90D4MJ7K2FJKB8Y85W":3,"skill-same:01M7232W90D4MJ7K2FJKB8Y85W":64},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7232W90D4MJ7K2FJKB8Y85W","askit-build-chain-contract",null,"Creates and improves a plugin's chain contract (agents\u002F_chain-permitted.yaml) to the Advanced Skill Library Standard. Use when a skill or subagent invokes another component and you need to declare the permitted inter-component invocations, or to resolve S4 orphan or phantom findings.","product-on-purpose\u002Fagent-skills-toolkit","product-on-purpose","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F253892650?v=4","01M7230Q4442AHBADCVFJCS277","Product on Purpose","01M7230Q4SFDBKY7586D5M7EFX",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-chain-contract\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: askit-build-chain-contract\ndescription: Creates and improves a plugin's chain contract (agents\u002F_chain-permitted.yaml) to the Advanced Skill Library Standard. Use when a skill or subagent invokes another component and you need to declare the permitted inter-component invocations, or to resolve S4 orphan or phantom findings.\nmetadata:\n  version: 0.1.0\n  tier: universal\n  audience: advanced\n---\n\n# askit-build-chain-contract\n\n## Purpose\nAuthor a plugin's chain contract: the explicit declaration of which components may invoke which others (Standard sec 3.6). A chain contract is a CONDITIONAL MUST - required if and only if a component invokes another, so a plugin with no inter-component invocation ships no contract (no empty governance files). Two modes: `create` authors `agents\u002F_chain-permitted.yaml` (and the optional `agents\u002F_pairing.yaml`); `improve` resolves S4 findings. Authoring depth is in [references\u002Fauthoring-chain-contracts.md](references\u002Fauthoring-chain-contracts.md). Follows the shared builder contract ([..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-pattern.md](..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-pattern.md)).\n\n## When to use\nWhen a skill or subagent declares a `chain:` to another component and you need to permit it, or when `evaluate` reports an S4 orphan (an invocation not permitted) or phantom (a contract entry naming a missing component).\n\n## create mode\n1. Scan components for `chain:` declarations (which caller invokes which callees). Skip the contract entirely if nothing chains (the conditional MUST).\n2. Author `agents\u002F_chain-permitted.yaml`: one entry per caller, listing the components it may invoke. Copy `templates\u002Fchain-permitted.yaml` if none exists.\n3. Optionally author `agents\u002F_pairing.yaml` for recommended (not required) skill plus subagent pairings.\n4. Evaluate (`node scripts\u002Fevaluate.mjs . --json`) until S4 is clean: every `chain:` invocation is permitted (no orphan) and every contract entry names an on-disk component (no phantom).\n\n## improve mode\n1. Run `node scripts\u002Fevaluate.mjs . --json` and read the S4 findings.\n2. For an orphan, add the missing `caller: [callee]` permission. For a phantom, fix the misspelled name, remove the stale entry, or create the missing component.\n3. Re-run to confirm S4 is clean.\n\n## Scope\nThe contract is agent-agnostic: one `agents\u002F_chain-permitted.yaml` (no per-target form). It binds exactly when there is an invocation to make safe (sec 3.6), so it is a safety mechanism, not ceremony. S4 (chain-contract integrity) flags orphans and phantoms; do not ship an empty contract for a plugin that does not chain.\n","# askit-build-chain-contract\n\n## Purpose\nAuthor a plugin's chain contract: the explicit declaration of which components may invoke which others (Standard sec 3.6). A chain contract is a CONDITIONAL MUST - required if and only if a component invokes another, so a plugin with no inter-component invocation ships no contract (no empty governance files). Two modes: `create` authors `agents\u002F_chain-permitted.yaml` (and the optional `agents\u002F_pairing.yaml`); `improve` resolves S4 findings. Authoring depth is in [references\u002Fauthoring-chain-contracts.md](references\u002Fauthoring-chain-contracts.md). Follows the shared builder contract ([..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-pattern.md](..\u002F..\u002Fdocs\u002Freference\u002Fbuilder-pattern.md)).\n\n## When to use\nWhen a skill or subagent declares a `chain:` to another component and you need to permit it, or when `evaluate` reports an S4 orphan (an invocation not permitted) or phantom (a contract entry naming a missing component).\n\n## create mode\n1. Scan components for `chain:` declarations (which caller invokes which callees). Skip the contract entirely if nothing chains (the conditional MUST).\n2. Author `agents\u002F_chain-permitted.yaml`: one entry per caller, listing the components it may invoke. Copy `templates\u002Fchain-permitted.yaml` if none exists.\n3. Optionally author `agents\u002F_pairing.yaml` for recommended (not required) skill plus subagent pairings.\n4. Evaluate (`node scripts\u002Fevaluate.mjs . --json`) until S4 is clean: every `chain:` invocation is permitted (no orphan) and every contract entry names an on-disk component (no phantom).\n\n## improve mode\n1. Run `node scripts\u002Fevaluate.mjs . --json` and read the S4 findings.\n2. For an orphan, add the missing `caller: [callee]` permission. For a phantom, fix the misspelled name, remove the stale entry, or create the missing component.\n3. Re-run to confirm S4 is clean.\n\n## Scope\nThe contract is agent-agnostic: one `agents\u002F_chain-permitted.yaml` (no per-target form). It binds exactly when there is an invocation to make safe (sec 3.6), so it is a safety mechanism, not ceremony. S4 (chain-contract integrity) flags orphans and phantoms; do not ship an empty contract for a plugin that does not chain.\n",{"name":5,"metadata":24,"description":7},{"tier":25,"version":26,"audience":27},"universal","0.1.0","advanced","main","b0a696723b1155d08503a8441c981998f9d13c34","skills\u002Faskit-build-chain-contract",0,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit","https:\u002F\u002Fproduct-on-purpose.github.io\u002Fagent-skills-toolkit","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose","2026-11-14 15:02:57",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add product-on-purpose\u002Fagent-skills-toolkit --skill askit-build-chain-contract",{"tool":42,"command":43},"bunx","bunx skills add product-on-purpose\u002Fagent-skills-toolkit --skill askit-build-chain-contract",{"tool":45,"command":46},"pnpm","pnpm dlx skills add product-on-purpose\u002Fagent-skills-toolkit --skill askit-build-chain-contract","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-chain-contract\u002FSKILL.md",true,[50,56,60],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fgolden-1-two-edge-contract.md","REFERENCE","参考文档",6788,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-chain-contract\u002Fexamples\u002Fgolden-1-two-edge-contract.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"README.md",660,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-chain-contract\u002FREADME.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fauthoring-chain-contracts.md",3450,"https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Faskit-build-chain-contract\u002Freferences\u002Fauthoring-chain-contracts.md",[65,72,77,82,89,96],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M723BRSVFQ2KRQ8KKY42R6XB","fx-demo","A fixture skill that exists so the re-derived manifest has a component list to compare. Use only from tests\u002Funit\u002Fself-consistency.test.mjs.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fself-consistency\u002Frepaired\u002Fskills\u002Ffx-demo\u002FSKILL.md",[],[],{"skillNo":73,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M723BPZ1NQDZSEF21D3YP2VF","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fself-consistency\u002Fpre-fix\u002Fskills\u002Ffx-demo\u002FSKILL.md",[],[],{"skillNo":78,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M723BNCZXT3BM577HJYESV08","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fself-consistency\u002Fbody-drift\u002Fskills\u002Ffx-demo\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M723BKWKX9JG10YQ6NK79ZB6","sf-caller","Calls the worker subagent to do a thing. Use when delegating work to sf-worker.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fsubagent-fixture\u002Fskills\u002Fsf-caller\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M723BJNDZHEJTNBJP6ZJA8WM","sf-do-thing","Converts CSV input into a formatted summary. Use when the user asks to summarize or tabulate spreadsheet data.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Fsilver-fixture\u002Fskills\u002Fsf-do-thing\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M723BH7BYXT0A05PG6QH6B98","root-skill-plugin","Summarizes a changelog section into one release-note sentence. Use when the user asks to condense a list of changelog bullets into a single announcement line.","https:\u002F\u002Fgithub.com\u002Fproduct-on-purpose\u002Fagent-skills-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgolden\u002Froot-skill-plugin\u002FSKILL.md",[],[]]