[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71YC3S71ZMB9DTKS5JAY6PQ":3,"skill-same:01M71YC3S71ZMB9DTKS5JAY6PQ":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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M71YC3S71ZMB9DTKS5JAY6PQ","principle-boundary-discipline",null,"Boundary discipline when placing validation on a data flow, wiring error handling, or writing framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types; keep business logic in pure functions.","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\u002Fprinciple-boundary-discipline\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"boundary","principle boundary discipline","discipline","logic","guards","when","data flow","framework adapters","wiring","at","types","error","keep","writing","trust","functions","business","system","error handling","cli","2026-11-10 13:45:54",false,"---\nname: principle-boundary-discipline\ndescription: \"Boundary discipline when placing validation on a data flow, wiring error handling, or writing framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types; keep business logic in pure functions.\"\n---\n\n# Boundary Discipline\n\nPlace validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions; the shell is thin and mechanical.\n\n**Why:** Scattered validation is noisy, redundant, and gives a false sense of safety. Validate data once at the boundary. Keep logic out of framework wiring so it can be tested without the framework.\n\n**The pattern:**\n- **At boundaries** (CLI args, config files, external APIs, network protocols): validate, return errors, handle defensively.\n- **Inside the system:** typed data, error propagation, no re-validation. Trust the types.\n- **Across the boundary.** Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.\n\n**Applications:**\n\nValidation and error handling:\n- Validate config at parse time (the boundary), not inside business logic\n- Parse raw data into domain types at the boundary\n- Do not re-export transport, storage, framework, or wire types through the public surface\n- No redundant nil checks deep in call chains if the boundary already validated\n\nCode organization:\n- Business logic in pure functions with no framework dependencies\n- Parse functions: pure transforms from raw bytes to typed state\n- Prompt construction: structured state in, string out\n- Scoring and assessment: pure transforms from state to results\n\n**The tests:**\n- \"Is this data crossing a system boundary right now?\" If not, validation is redundant.\n- \"Can this be a pure function that the shell just calls?\" If yes, extract it.\n","# Boundary Discipline\n\nPlace validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions; the shell is thin and mechanical.\n\n**Why:** Scattered validation is noisy, redundant, and gives a false sense of safety. Validate data once at the boundary. Keep logic out of framework wiring so it can be tested without the framework.\n\n**The pattern:**\n- **At boundaries** (CLI args, config files, external APIs, network protocols): validate, return errors, handle defensively.\n- **Inside the system:** typed data, error propagation, no re-validation. Trust the types.\n- **Across the boundary.** Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.\n\n**Applications:**\n\nValidation and error handling:\n- Validate config at parse time (the boundary), not inside business logic\n- Parse raw data into domain types at the boundary\n- Do not re-export transport, storage, framework, or wire types through the public surface\n- No redundant nil checks deep in call chains if the boundary already validated\n\nCode organization:\n- Business logic in pure functions with no framework dependencies\n- Parse functions: pure transforms from raw bytes to typed state\n- Prompt construction: structured state in, string out\n- Scoring and assessment: pure transforms from state to results\n\n**The tests:**\n- \"Is this data crossing a system boundary right now?\" If not, validation is redundant.\n- \"Can this be a pure function that the shell just calls?\" If yes, extract it.\n",{"name":5,"description":7},"main","3c5f4e345596aaac8d8fb7a6fd35f4a9f9b55a88",".agents\u002Fprinciple-boundary-discipline","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic","https:\u002F\u002Fgithub.com\u002Fnnad3N","2026-09-09 21:17:30",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add nnad3N\u002Fmnemonic --skill principle-boundary-discipline",{"tool":56,"command":57},"bunx","bunx skills add nnad3N\u002Fmnemonic --skill principle-boundary-discipline",{"tool":59,"command":60},"pnpm","pnpm dlx skills add nnad3N\u002Fmnemonic --skill principle-boundary-discipline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fprinciple-boundary-discipline\u002FSKILL.md",true,[],[65,82,94,99,109,122],{"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":39},"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",[],[72,73,74,75,76,24,77,78,79,80,81],"verify in browser","verify","browser","app","running","session","open","exercise","ui","test",{"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":39},"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",[],[32,89,90,91,92,93,24],"writing for agents","for","documents","editing","use",{"skillNo":95,"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":96,"categories":97,"keywords":98,"publishedAt":39},"01M71YCDRA1G40BC5EEKB7KE78","https:\u002F\u002Fgithub.com\u002Fnnad3N\u002Fmnemonic\u002Fblob\u002Fmain\u002F.agents\u002Fverify-in-browser\u002FSKILL.md",[],[74,73,72,80,79,78,77,75,24,76,81],{"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":39},"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,32,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":39},"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,24],"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":39},"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",[],[32,129,130,90,131,132,133,134,135,136,137,93,138,139,140,124,141,142,143,24],"technical writing","technical","google","commit","pr","messages","commit messages","Rules","syntax","structure","english","style","true","layered","standard"]