[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FBREGK9DS4H16TGDMT7N9":3,"skill-same:01M78FBREGK9DS4H16TGDMT7N9":91},{"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},"01M78FBREGK9DS4H16TGDMT7N9","secure-coding",null,"Input validation, output encoding, buffer safety, integer overflow, format strings","poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: secure-coding\ndescription: Input validation, output encoding, buffer safety, integer overflow, format strings\n---\n# Secure Coding Practices\n\n## 1. Input Validation\nImplement strict allow-list validation for all external input. Validate data type, length, format, and range. Reject any input that does not conform to expected patterns. Never rely solely on client-side validation.\n\n## 2. Output Encoding\nContextually encode all user-controllable data before rendering it in a browser, injecting it into a command, or inserting it into a database query. This is the primary defense against injection attacks like XSS.\n\n## 3. Buffer Safety\nWhen using memory-unsafe languages (C\u002FC++), rigidly control buffer boundaries. Avoid unsafe functions like strcpy or sprintf. Use safe alternatives (strncpy, snprintf) and strictly validate lengths to prevent buffer overflows.\n\n## 4. Integer Overflows\nBe vigilant against integer overflows and underflows, which can bypass logic checks or cause memory corruption. Use safe math libraries or compiler flags that trap on overflow, especially when calculating buffer sizes or array indices.\n\n## 5. Format String Vulnerabilities\nNever pass user-controlled data directly as the format string parameter to logging or formatting functions (e.g., printf in C, logging in Python). Always use static format strings and pass user data as arguments.\n\n## 6. Parameterized Queries\nPrevent SQL Injection by exclusively using parameterized queries or prepared statements. Never concatenate untrusted data into SQL strings, regardless of any escaping mechanisms applied.\n\n## 7. Safe Deserialization\nAvoid deserializing complex objects from untrusted sources if possible. If required, use safe serialization formats (JSON, Protobuf) rather than language-native binary formats (Java Serialization, Python Pickle) which can lead to Remote Code Execution.\n\n## 8. Cryptographic Agility\nDo not roll your own crypto. Use standard, well-vetted cryptographic libraries. Implement cryptographic agility: design systems so that algorithms and key sizes can be easily upgraded if a vulnerability is discovered.\n\n## 9. Fail Securely\nEnsure systems fail into a secure state. If an authorization check fails or throws an exception, the default action must be to deny access. Never fail open.\n\n## 10. Least Privilege Enforcement\nApply the Principle of Least Privilege at the code level. Drop unnecessary privileges immediately after use. Run processes with the minimum permissions required. Restrict file system and network access to only what is strictly necessary.\n\n","# Secure Coding Practices\n\n## 1. Input Validation\nImplement strict allow-list validation for all external input. Validate data type, length, format, and range. Reject any input that does not conform to expected patterns. Never rely solely on client-side validation.\n\n## 2. Output Encoding\nContextually encode all user-controllable data before rendering it in a browser, injecting it into a command, or inserting it into a database query. This is the primary defense against injection attacks like XSS.\n\n## 3. Buffer Safety\nWhen using memory-unsafe languages (C\u002FC++), rigidly control buffer boundaries. Avoid unsafe functions like strcpy or sprintf. Use safe alternatives (strncpy, snprintf) and strictly validate lengths to prevent buffer overflows.\n\n## 4. Integer Overflows\nBe vigilant against integer overflows and underflows, which can bypass logic checks or cause memory corruption. Use safe math libraries or compiler flags that trap on overflow, especially when calculating buffer sizes or array indices.\n\n## 5. Format String Vulnerabilities\nNever pass user-controlled data directly as the format string parameter to logging or formatting functions (e.g., printf in C, logging in Python). Always use static format strings and pass user data as arguments.\n\n## 6. Parameterized Queries\nPrevent SQL Injection by exclusively using parameterized queries or prepared statements. Never concatenate untrusted data into SQL strings, regardless of any escaping mechanisms applied.\n\n## 7. Safe Deserialization\nAvoid deserializing complex objects from untrusted sources if possible. If required, use safe serialization formats (JSON, Protobuf) rather than language-native binary formats (Java Serialization, Python Pickle) which can lead to Remote Code Execution.\n\n## 8. Cryptographic Agility\nDo not roll your own crypto. Use standard, well-vetted cryptographic libraries. Implement cryptographic agility: design systems so that algorithms and key sizes can be easily upgraded if a vulnerability is discovered.\n\n## 9. Fail Securely\nEnsure systems fail into a secure state. If an authorization check fails or throws an exception, the default action must be to deny access. Never fail open.\n\n## 10. Least Privilege Enforcement\nApply the Principle of Least Privilege at the code level. Drop unnecessary privileges immediately after use. Run processes with the minimum permissions required. Restrict file system and network access to only what is strictly necessary.\n\n",{"name":5,"description":7},"main","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".agents\u002Fskills\u002Fsecure-coding",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add poppyTM\u002Foride --skill secure-coding",{"tool":39,"command":40},"bunx","bunx skills add poppyTM\u002Foride --skill secure-coding",{"tool":42,"command":43},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill secure-coding","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002FSKILL.md",true,[47,53,57,61,65,69,73,79,83,87],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"checks\u002Fsecure-coding-checklist.md","REFERENCE","参考文档",1618,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fchecks\u002Fsecure-coding-checklist.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"examples\u002Fsql_injection_prevention.md",1786,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fexamples\u002Fsql_injection_prevention.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"examples\u002Fsql-injection-prevention.md",148,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fexamples\u002Fsql-injection-prevention.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"manifest.json",1799,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fmanifest.json",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fowasp-secure-coding-practices.md",2213,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Freferences\u002Fowasp-secure-coding-practices.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fowasp-top-10.md",127,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Freferences\u002Fowasp-top-10.md",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Frun-sast.sh","SCRIPT","脚本",73,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fscripts\u002Frun-sast.sh",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fsast_wrapper.sh",207,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fscripts\u002Fsast_wrapper.sh",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fverify.sh",4127,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Fscripts\u002Fverify.sh",{"path":88,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":89,"sourceHtmlUrl":90},"templates\u002Fsecure-coding-report.md",1148,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecure-coding\u002Ftemplates\u002Fsecure-coding-report.md",[92,98,104,111,118,125],{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M78FHQN254KEH0DETXT5JM29","zoom-reflow","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M78FHE53D8DD0QVRY5C37DA4","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M78FHBJ1KXFF734GFE509TBJ","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]