[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78EJ9MMWBZFM6RGHWYW96X8":3,"skill-same:01M78EJ9MMWBZFM6RGHWYW96X8":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78EJ9MMWBZFM6RGHWYW96X8","design-an-interface",null,"สร้าง interface design หลายแบบที่ต่างกันสุดขั้วสำหรับ module หนึ่ง โดยใช้ sub-agent แบบ parallel ใช้เมื่อ user อยากออกแบบ API, สำรวจตัวเลือกของ interface, เปรียบเทียบรูปทรงของ module หรือพูดถึง \"design it twice\"","Boom-Vitt\u002Fskills-thai","Boom-Vitt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F169876956?v=4","01M78EJ7J23WSZJ2R2WTZGGAPR","Vittawat","01M78EJ7JPKFWHN7WJ94HE7F9R",5,"MIT","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fdeprecated\u002Fdesign-an-interface\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: design-an-interface\ndescription: สร้าง interface design หลายแบบที่ต่างกันสุดขั้วสำหรับ module หนึ่ง โดยใช้ sub-agent แบบ parallel ใช้เมื่อ user อยากออกแบบ API, สำรวจตัวเลือกของ interface, เปรียบเทียบรูปทรงของ module หรือพูดถึง \"design it twice\"\n---\n\n# Design an Interface\n\nอิงจากแนวคิด \"Design It Twice\" ในหนังสือ \"A Philosophy of Software Design\": ไอเดียแรกของคุณแทบไม่เคยเป็นไอเดียที่ดีที่สุด สร้าง design หลายแบบที่ต่างกันสุดขั้ว แล้วค่อยเปรียบเทียบ\n\n## Workflow\n\n### 1. เก็บ Requirements\n\nก่อนออกแบบ ต้องเข้าใจก่อนว่า:\n\n- [ ] module นี้แก้ปัญหาอะไร?\n- [ ] ใครคือ caller? (module อื่น, ผู้ใช้ภายนอก, test)\n- [ ] operation หลักคืออะไรบ้าง?\n- [ ] มี constraint อะไรไหม? (performance, compatibility, pattern ที่มีอยู่แล้ว)\n- [ ] อะไรควรซ่อนไว้ข้างใน อะไรควร expose ออกมา?\n\nถามว่า: \"module นี้ต้องทำอะไรได้บ้าง? ใครจะเป็นคนใช้?\"\n\n### 2. สร้าง Design (Sub-Agent แบบ Parallel)\n\nspawn sub-agent 3 ตัวขึ้นไปพร้อมกันด้วย Task tool แต่ละตัวต้อง produce แนวทางที่**ต่างกันสุดขั้ว**\n\n```\nPrompt template for each sub-agent:\n\nDesign an interface for: [module description]\n\nRequirements: [gathered requirements]\n\nConstraints for this design: [assign a different constraint to each agent]\n- Agent 1: \"Minimize method count - aim for 1-3 methods max\"\n- Agent 2: \"Maximize flexibility - support many use cases\"\n- Agent 3: \"Optimize for the most common case\"\n- Agent 4: \"Take inspiration from [specific paradigm\u002Flibrary]\"\n\nOutput format:\n1. Interface signature (types\u002Fmethods)\n2. Usage example (how caller uses it)\n3. What this design hides internally\n4. Trade-offs of this approach\n```\n\n### 3. นำเสนอ Design\n\nโชว์แต่ละ design พร้อม:\n\n1. **Interface signature** - types, methods, params\n2. **ตัวอย่างการใช้งาน** - caller ใช้มันจริง ๆ ยังไงในทางปฏิบัติ\n3. **มันซ่อนอะไรไว้** - ความซับซ้อนที่เก็บไว้ข้างใน\n\nนำเสนอทีละ design เพื่อให้ user ซึมซับแต่ละแนวทางได้ก่อนถึงขั้นเปรียบเทียบ\n\n### 4. เปรียบเทียบ Design\n\nหลังโชว์ครบทุก design แล้ว เปรียบเทียบกันในแง่:\n\n- **ความเรียบง่ายของ interface**: method น้อยกว่า, params เรียบง่ายกว่า\n- **General-purpose vs specialized**: ความยืดหยุ่น vs ความโฟกัส\n- **ประสิทธิภาพของ implementation**: รูปทรงนี้เปิดทางให้ internals ทำงานได้มีประสิทธิภาพไหม?\n- **ความลึก (depth)**: interface เล็กที่ซ่อนความซับซ้อนไว้เยอะ (ดี) vs interface ใหญ่แต่ implementation บาง (แย่)\n- **ใช้ให้ถูกได้ง่าย** vs **ใช้ผิดได้ง่าย**\n\nอภิปราย trade-off เป็นร้อยแก้ว ไม่ใช่ตาราง เน้นจุดที่ design แตกต่างกันมากที่สุด\n\n### 5. สังเคราะห์\n\nบ่อยครั้ง design ที่ดีที่สุดเกิดจากการรวม insight จากหลายตัวเลือกเข้าด้วยกัน ถามว่า:\n\n- \"design ไหนเข้ากับ use case หลักของคุณที่สุด?\"\n- \"มีชิ้นส่วนจาก design อื่นที่ควรหยิบมาผสมไหม?\"\n\n## เกณฑ์การประเมิน\n\nจากหนังสือ \"A Philosophy of Software Design\":\n\n**ความเรียบง่ายของ interface**: method น้อยกว่า params เรียบง่ายกว่า = เรียนรู้ง่ายและใช้ถูกต้องได้ง่ายกว่า\n\n**General-purpose**: รองรับ use case ในอนาคตได้โดยไม่ต้องแก้ แต่ระวังการ generalize เกินจำเป็น\n\n**ประสิทธิภาพของ implementation**: รูปทรงของ interface เปิดทางให้ implement ได้มีประสิทธิภาพไหม? หรือบังคับให้ internals ต้องเขียนแบบฝืน ๆ?\n\n**ความลึก (depth)**: interface เล็กที่ซ่อนความซับซ้อนไว้เยอะ = deep module (ดี) interface ใหญ่แต่ implementation บาง = shallow module (เลี่ยง)\n\n## Anti-Patterns\n\n- อย่าปล่อยให้ sub-agent produce design ที่คล้ายกัน - ต้องบังคับให้ต่างกันสุดขั้ว\n- อย่าข้ามขั้นเปรียบเทียบ - คุณค่าอยู่ที่ contrast\n- อย่าลงมือ implement - นี่เป็นเรื่องรูปทรงของ interface ล้วน ๆ\n- อย่าประเมินจากความยาก-ง่ายของการ implement\n","# Design an Interface\n\nอิงจากแนวคิด \"Design It Twice\" ในหนังสือ \"A Philosophy of Software Design\": ไอเดียแรกของคุณแทบไม่เคยเป็นไอเดียที่ดีที่สุด สร้าง design หลายแบบที่ต่างกันสุดขั้ว แล้วค่อยเปรียบเทียบ\n\n## Workflow\n\n### 1. เก็บ Requirements\n\nก่อนออกแบบ ต้องเข้าใจก่อนว่า:\n\n- [ ] module นี้แก้ปัญหาอะไร?\n- [ ] ใครคือ caller? (module อื่น, ผู้ใช้ภายนอก, test)\n- [ ] operation หลักคืออะไรบ้าง?\n- [ ] มี constraint อะไรไหม? (performance, compatibility, pattern ที่มีอยู่แล้ว)\n- [ ] อะไรควรซ่อนไว้ข้างใน อะไรควร expose ออกมา?\n\nถามว่า: \"module นี้ต้องทำอะไรได้บ้าง? ใครจะเป็นคนใช้?\"\n\n### 2. สร้าง Design (Sub-Agent แบบ Parallel)\n\nspawn sub-agent 3 ตัวขึ้นไปพร้อมกันด้วย Task tool แต่ละตัวต้อง produce แนวทางที่**ต่างกันสุดขั้ว**\n\n```\nPrompt template for each sub-agent:\n\nDesign an interface for: [module description]\n\nRequirements: [gathered requirements]\n\nConstraints for this design: [assign a different constraint to each agent]\n- Agent 1: \"Minimize method count - aim for 1-3 methods max\"\n- Agent 2: \"Maximize flexibility - support many use cases\"\n- Agent 3: \"Optimize for the most common case\"\n- Agent 4: \"Take inspiration from [specific paradigm\u002Flibrary]\"\n\nOutput format:\n1. Interface signature (types\u002Fmethods)\n2. Usage example (how caller uses it)\n3. What this design hides internally\n4. Trade-offs of this approach\n```\n\n### 3. นำเสนอ Design\n\nโชว์แต่ละ design พร้อม:\n\n1. **Interface signature** - types, methods, params\n2. **ตัวอย่างการใช้งาน** - caller ใช้มันจริง ๆ ยังไงในทางปฏิบัติ\n3. **มันซ่อนอะไรไว้** - ความซับซ้อนที่เก็บไว้ข้างใน\n\nนำเสนอทีละ design เพื่อให้ user ซึมซับแต่ละแนวทางได้ก่อนถึงขั้นเปรียบเทียบ\n\n### 4. เปรียบเทียบ Design\n\nหลังโชว์ครบทุก design แล้ว เปรียบเทียบกันในแง่:\n\n- **ความเรียบง่ายของ interface**: method น้อยกว่า, params เรียบง่ายกว่า\n- **General-purpose vs specialized**: ความยืดหยุ่น vs ความโฟกัส\n- **ประสิทธิภาพของ implementation**: รูปทรงนี้เปิดทางให้ internals ทำงานได้มีประสิทธิภาพไหม?\n- **ความลึก (depth)**: interface เล็กที่ซ่อนความซับซ้อนไว้เยอะ (ดี) vs interface ใหญ่แต่ implementation บาง (แย่)\n- **ใช้ให้ถูกได้ง่าย** vs **ใช้ผิดได้ง่าย**\n\nอภิปราย trade-off เป็นร้อยแก้ว ไม่ใช่ตาราง เน้นจุดที่ design แตกต่างกันมากที่สุด\n\n### 5. สังเคราะห์\n\nบ่อยครั้ง design ที่ดีที่สุดเกิดจากการรวม insight จากหลายตัวเลือกเข้าด้วยกัน ถามว่า:\n\n- \"design ไหนเข้ากับ use case หลักของคุณที่สุด?\"\n- \"มีชิ้นส่วนจาก design อื่นที่ควรหยิบมาผสมไหม?\"\n\n## เกณฑ์การประเมิน\n\nจากหนังสือ \"A Philosophy of Software Design\":\n\n**ความเรียบง่ายของ interface**: method น้อยกว่า params เรียบง่ายกว่า = เรียนรู้ง่ายและใช้ถูกต้องได้ง่ายกว่า\n\n**General-purpose**: รองรับ use case ในอนาคตได้โดยไม่ต้องแก้ แต่ระวังการ generalize เกินจำเป็น\n\n**ประสิทธิภาพของ implementation**: รูปทรงของ interface เปิดทางให้ implement ได้มีประสิทธิภาพไหม? หรือบังคับให้ internals ต้องเขียนแบบฝืน ๆ?\n\n**ความลึก (depth)**: interface เล็กที่ซ่อนความซับซ้อนไว้เยอะ = deep module (ดี) interface ใหญ่แต่ implementation บาง = shallow module (เลี่ยง)\n\n## Anti-Patterns\n\n- อย่าปล่อยให้ sub-agent produce design ที่คล้ายกัน - ต้องบังคับให้ต่างกันสุดขั้ว\n- อย่าข้ามขั้นเปรียบเทียบ - คุณค่าอยู่ที่ contrast\n- อย่าลงมือ implement - นี่เป็นเรื่องรูปทรงของ interface ล้วน ๆ\n- อย่าประเมินจากความยาก-ง่ายของการ implement\n",{"name":5,"description":7},"main","97984d244d381a97b3637b4bd699369ba8e51ac0","skills\u002Fdeprecated\u002Fdesign-an-interface",1,"https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai","https:\u002F\u002Fgithub.com\u002FBoom-Vitt","boombignose.org","🐼 AI ภาษาไทยแบบโอเพนซอร์ส · Claude Code skills & plugins · BoomBigNose Lab (Thai dialect ASR) · YouTube @BoomBigNose","2026-10-22 18:20:06",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Boom-Vitt\u002Fskills-thai --skill design-an-interface",{"tool":39,"command":40},"bunx","bunx skills add Boom-Vitt\u002Fskills-thai --skill design-an-interface",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Boom-Vitt\u002Fskills-thai --skill design-an-interface","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fdeprecated\u002Fdesign-an-interface\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78ENEAFFV60T0N5AZ71D4G5","writing-great-skills","อ้างอิงสำหรับการเขียนและแก้ไข skill ให้ดี — คำศัพท์และหลักการที่ทำให้ skill ทำงานได้อย่างคาดเดาได้","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78ENCCQYAY3NW5VC0B1QCE0","teach","สอน skill หรือ concept ใหม่ให้ผู้ใช้ ภายใน workspace นี้","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fteach\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78ENA816K7VBBWJ7J9897QN","handoff","บีบอัดบทสนทนาปัจจุบันให้เป็นเอกสาร handoff สำหรับให้ agent ตัวอื่นรับช่วงต่อ","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fhandoff\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78EN896S7B63SXKPDEDGMBC","grilling","ซักถาม user อย่างไม่ปรานีเกี่ยวกับแผนหรือ design ใช้เมื่อ user อยาก stress-test แผนก่อนลงมือสร้าง หรือใช้ trigger phrase ใด ๆ ที่มีคำว่า 'grill'","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fgrilling\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M78EN6PYS1E3T9QTPZ9J10EN","grill-me","บทสัมภาษณ์แบบไม่ปล่อยผ่าน เพื่อทำให้ plan หรือ design คมขึ้น","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fgrill-me\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M78EN4A7TXNABFXQWHK2FS01","obsidian-vault","ค้นหา สร้าง และจัดการ note ใน Obsidian vault ด้วย wikilinks และ index note ใช้เมื่อ user อยากหา สร้าง หรือจัดระเบียบ note ใน Obsidian","https:\u002F\u002Fgithub.com\u002FBoom-Vitt\u002Fskills-thai\u002Fblob\u002Fmain\u002Fskills\u002Fpersonal\u002Fobsidian-vault\u002FSKILL.md",[],[]]