[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71YAX57GCV0F50PQ969YX1Z":3,"skill-same:01M71YAX57GCV0F50PQ969YX1Z":62},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":55},"01M71YAX57GCV0F50PQ969YX1Z","cdd",null,"Constraint-driven design. Feature constraints, a type-driven outline, and design by contract, from expand context.","nnad3N\u002Fmnemonic","nnad3N","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58890387?v=4","01M71Y9PXZFWDKNW9Z4FT6J4W5","Damian Struk","01M71Y9PYM2GDNPCQP4FPCTBWT",0,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fcdd\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30],"design","constraints","context","design by contract","outline","contract","feature","type","expand","driven","true","constraint","2026-11-10 13:45:54",false,"---\nname: cdd\ndescription: Constraint-driven design. Feature constraints, a type-driven outline, and design by contract, from expand context.\ndisable-model-invocation: true\n---\n\n# Constraint-driven design\n\n**Constraints** on what the feature may and may not do, a **type-driven** outline, and **design by contract** on each layer. How each piece gets built stays off the page so a pivot is cheap. **Slices** only when the outline is too big for one review.\n\nRead the files the context names and the callstack you are walking.\n\n## Process\n\n### 1. Open the pair\n\nNeed `docs\u002F\u003Cslug>\u002Fcontext.md`. Use the path the user gave. If they didn't, ask.\n\nRead it. That file is the want. Done when you can state the want in one sentence.\n\n### 2. Walk the callstack\n\nThis is the type-driven half. Short summary first: today's callstack, the one you want, and the delta.\n\nThen every **layer** of both stacks: input type, output type, side effects, errors. Which types get added, changed, or removed.\n\nWhen designing the data flow, call the Skill tool with \"principle-type-system-discipline\" and \"principle-boundary-discipline\". Types, where validation lives, and which errors each layer owns come from those skills.\n\nFocus on code paths, abstractions, and data flow. The outline of the code, not a plan for writing it.\n\nWrite `docs\u002F\u003Cslug>\u002Foutline.md` once both stacks exist. Update it as layers settle. Done when every layer has in, out, effects, and errors.\n\n### 3. Constraints\n\nWhat the **feature** may do and may not. Not a per-function contract. Feature-level rules that collapse the design: cases real callers cannot produce leave the types and the callstack. They are absent, not handled.\n\nA constraint that settles one case often settles another. Write those implied constraints down too.\n\nIf a constraint appears while walking, capture it here and cut the paths it forbids. Revisit the callstack and the types until they only cover what the constraints still allow.\n\nDone when every constraint is a feature-level may or may not, the implied ones are written, and no layer still handles a forbidden case.\n\n### 4. Contract\n\nThis is the design-by-contract half, on the layers that remain. Each layer is a contract between caller and callee:\n\n- **Precondition**: what the caller owes. The layer may assume it.\n- **Postcondition**: what the layer owes if the precondition held. Out, effects, and the errors it owns.\n- **Invariant**: what stays true across calls.\n\nThe feature constraints are the rules every layer follows. The contract is how that layer states them.\n\nDone when every remaining layer has precondition, postcondition, and invariant, and the user has not rejected them.\n\n### 5. Slices\n\nIf the whole outline fits in one review, stop. No list.\n\nIf it does not, add **slices**: ordered vertical cuts. The first slice is the narrowest path through the feature that can be tested end to end on its own. Each later slice adds onto that working path. One slice, one commit.\n\nDone when the first slice is e2e-testable alone, and each later slice names what it adds.\n\nThis skill ends when `outline.md` matches the walkthrough. A later message that names a slice is implementation, not this skill.\n\n## Outline shape\n\n```md\n# \u003Cwant, one line>\n\n## Constraints\n\nMay:\nMay not:\n\n## Callstack\n\nToday: A → B → C\nWanted: A → B' → D\n\n## Types\n\nAdd:\nChange:\nRemove:\n\n## Layers\n\n### \u003Cname>\n\nIn:\nOut:\nEffects:\nErrors:\nPrecondition:\nPostcondition:\nInvariant:\n\n## Slices\n```\n\n`## Slices` only when step 5 earned a list.\n","# Constraint-driven design\n\n**Constraints** on what the feature may and may not do, a **type-driven** outline, and **design by contract** on each layer. How each piece gets built stays off the page so a pivot is cheap. **Slices** only when the outline is too big for one review.\n\nRead the files the context names and the callstack you are walking.\n\n## Process\n\n### 1. Open the pair\n\nNeed `docs\u002F\u003Cslug>\u002Fcontext.md`. Use the path the user gave. If they didn't, ask.\n\nRead it. That file is the want. Done when you can state the want in one sentence.\n\n### 2. Walk the callstack\n\nThis is the type-driven half. Short summary first: today's callstack, the one you want, and the delta.\n\nThen every **layer** of both stacks: input type, output type, side effects, errors. Which types get added, changed, or removed.\n\nWhen designing the data flow, call the Skill tool with \"principle-type-system-discipline\" and \"principle-boundary-discipline\". Types, where validation lives, and which errors each layer owns come from those skills.\n\nFocus on code paths, abstractions, and data flow. The outline of the code, not a plan for writing it.\n\nWrite `docs\u002F\u003Cslug>\u002Foutline.md` once both stacks exist. Update it as layers settle. Done when every layer has in, out, effects, and errors.\n\n### 3. Constraints\n\nWhat the **feature** may do and may not. Not a per-function contract. Feature-level rules that collapse the design: cases real callers cannot produce leave the types and the callstack. They are absent, not handled.\n\nA constraint that settles one case often settles another. Write those implied constraints down too.\n\nIf a constraint appears while walking, capture it here and cut the paths it forbids. Revisit the callstack and the types until they only cover what the constraints still allow.\n\nDone when every constraint is a feature-level may or may not, the implied ones are written, and no layer still handles a forbidden case.\n\n### 4. Contract\n\nThis is the design-by-contract half, on the layers that remain. Each layer is a contract between caller and callee:\n\n- **Precondition**: what the caller owes. The layer may assume it.\n- **Postcondition**: what the layer owes if the precondition held. Out, effects, and the errors it owns.\n- **Invariant**: what stays true across calls.\n\nThe feature constraints are the rules every layer follows. The contract is how that layer states them.\n\nDone when every remaining layer has precondition, postcondition, and invariant, and the user has not rejected them.\n\n### 5. Slices\n\nIf the whole outline fits in one review, stop. No list.\n\nIf it does not, add **slices**: ordered vertical cuts. The first slice is the narrowest path through the feature that can be tested end to end on its own. Each later slice adds onto that working path. One slice, one commit.\n\nDone when the first slice is e2e-testable alone, and each later slice names what it adds.\n\nThis skill ends when `outline.md` matches the walkthrough. A later message that names a slice is implementation, not this skill.\n\n## Outline shape\n\n```md\n# \u003Cwant, one line>\n\n## Constraints\n\nMay:\nMay not:\n\n## Callstack\n\nToday: A → B → C\nWanted: A → B' → D\n\n## Types\n\nAdd:\nChange:\nRemove:\n\n## Layers\n\n### \u003Cname>\n\nIn:\nOut:\nEffects:\nErrors:\nPrecondition:\nPostcondition:\nInvariant:\n\n## Slices\n```\n\n`## Slices` only when step 5 earned a list.\n",{"name":5,"description":7,"disable-model-invocation":36},true,"main","3c5f4e345596aaac8d8fb7a6fd35f4a9f9b55a88",".agents\u002Fcdd","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic","https:\u002F\u002Fgithub.com\u002Fnnad3N","2026-09-09 21:17:30",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":36},[45,48,51],{"tool":46,"command":47},"npx","npx skills add nnad3N\u002Fmnemonic --skill cdd",{"tool":49,"command":50},"bunx","bunx skills add nnad3N\u002Fmnemonic --skill cdd",{"tool":52,"command":53},"pnpm","pnpm dlx skills add nnad3N\u002Fmnemonic --skill cdd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fcdd\u002FSKILL.md",[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"agents\u002Fopenai.yaml","REFERENCE","参考文档",141,"https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fcdd\u002Fagents\u002Fopenai.yaml",[63,81,94,99,109,122],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":31},"01M71YCJNJ9B15GG2TJC7QBCB1","verify-in-browser","Open the running app in a browser when asked to browser-test, verify in the browser, or exercise the UI in a real session.","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fverify-in-browser\u002FSKILL.md",[],[70,71,72,73,74,75,76,77,78,79,80],"verify in browser","verify","browser","app","running","when","session","open","exercise","ui","test",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":31},"01M71YCGBC0421BTV8J4466D2Z","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fwriting-for-agents\u002FSKILL.md",[],[88,89,90,91,92,93,75],"writing","writing for agents","for","documents","editing","use",{"skillNo":95,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":31},"01M71YCDRA1G40BC5EEKB7KE78","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fverify-in-browser\u002FSKILL.md",[],[72,71,70,79,78,77,76,73,75,74,80],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":31},"01M71YCCPRESPT9X2BBVC2VV2W","unslop","Cut AI tells from any writing. Must always apply.","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Funslop\u002FSKILL.md",[],[101,106,88,107,108],"cut","apply","ai tells",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":31},"01M71YCB46181WKRBYT52J5GAC","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Ftypescript-best-practices\u002FSKILL.md",[],[116,117,118,119,92,93,120,121,75],"typescript best practices","best practices","typescript","file","tsx","reading",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":31},"01M71YC84YYGP7C0BQ2Q8K6FM4","technical-writing","Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for \u002Ftechnical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Ftechnical-writing\u002FSKILL.md",[],[88,129,130,90,131,132,133,134,135,136,137,93,138,139,140,124,29,141,142,75],"technical writing","technical","google","commit","pr","messages","commit messages","Rules","syntax","structure","english","style","layered","standard"]