[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75CWGT2J5J38YZVVHAV0V03":3,"skill-same:01M75CWGT2J5J38YZVVHAV0V03":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M75CWGT2J5J38YZVVHAV0V03","defense-in-depth",null,"Defense in Depth Skill","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdefense-in-depth\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\ntriggers:\n  - \"defense in depth\"\nname: defense-in-depth\ndescription: Defense in Depth Skill\n---\n\n# Technique: Defense in Depth (Swiss Cheese Model)\n\n**Concept:** After fixing the root cause, you must add \"Armor\" to the system to catch this specific class of error in the future.\n\n## The Three Layers of Defense\n\nApply at least **two** of these layers for every critical bug.\n\n### Layer 1: The API Boundary (The \"Bouncer\")\n**Stop bad data from entering your house.**\n* **Technique:** Schema Validation (Zod, Joi, Pydantic).\n* **Action:** If `price` must be positive, enforce `price > 0` at the JSON parsing layer.\n* **Result:** The system rejects the request with `400 Bad Request` instantly. No internal logic runs.\n\n### Layer 2: The Service Boundary (The \"Contract\")\n**Stop bad data from moving between rooms.**\n* **Technique:** Domain Types \u002F Value Objects.\n* **Action:** Don't pass `string email`. Pass a `EmailAddress` class that throws an error in its constructor if the format is invalid.\n* **Result:** You cannot instantiate an invalid object deep in the business logic.\n\n### Layer 3: The Database Constraint (The \"Vault\")\n**Stop bad data from being written to history.**\n* **Technique:** SQL Constraints \u002F Foreign Keys.\n* **Action:** Add `NOT NULL` constraints. Add `CHECK (price >= 0)`.\n* **Result:** Even if code fails, the database refuses to accept the corruption.\n\n## The Checklist\nWhen closing a bug, ask:\n1.  [ ] Did I fix the root cause?\n2.  [ ] **Defense:** Did I add a validation check so this inputs fails *early* next time?\n3.  [ ] **Defense:** Did I verify the database prevents this state?\n\n**Example:**\n* **Bug:** User verified with empty email.\n* **Fix:** Updated regex in signup logic.\n* **Defense 1:** Added `class EmailAddress { ... }` which validates on creation.\n* **Defense 2:** Added `CHECK (length(email) > 5)` to Postgres migration.\n","# Technique: Defense in Depth (Swiss Cheese Model)\n\n**Concept:** After fixing the root cause, you must add \"Armor\" to the system to catch this specific class of error in the future.\n\n## The Three Layers of Defense\n\nApply at least **two** of these layers for every critical bug.\n\n### Layer 1: The API Boundary (The \"Bouncer\")\n**Stop bad data from entering your house.**\n* **Technique:** Schema Validation (Zod, Joi, Pydantic).\n* **Action:** If `price` must be positive, enforce `price > 0` at the JSON parsing layer.\n* **Result:** The system rejects the request with `400 Bad Request` instantly. No internal logic runs.\n\n### Layer 2: The Service Boundary (The \"Contract\")\n**Stop bad data from moving between rooms.**\n* **Technique:** Domain Types \u002F Value Objects.\n* **Action:** Don't pass `string email`. Pass a `EmailAddress` class that throws an error in its constructor if the format is invalid.\n* **Result:** You cannot instantiate an invalid object deep in the business logic.\n\n### Layer 3: The Database Constraint (The \"Vault\")\n**Stop bad data from being written to history.**\n* **Technique:** SQL Constraints \u002F Foreign Keys.\n* **Action:** Add `NOT NULL` constraints. Add `CHECK (price >= 0)`.\n* **Result:** Even if code fails, the database refuses to accept the corruption.\n\n## The Checklist\nWhen closing a bug, ask:\n1.  [ ] Did I fix the root cause?\n2.  [ ] **Defense:** Did I add a validation check so this inputs fails *early* next time?\n3.  [ ] **Defense:** Did I verify the database prevents this state?\n\n**Example:**\n* **Bug:** User verified with empty email.\n* **Fix:** Updated regex in signup logic.\n* **Defense 1:** Added `class EmailAddress { ... }` which validates on creation.\n* **Defense 2:** Added `CHECK (length(email) > 5)` to Postgres migration.\n",{"name":5,"triggers":23,"description":7},[24],"defense in depth","main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fdefense-in-depth",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add agisota\u002Fold-one --skill defense-in-depth",{"tool":40,"command":41},"bunx","bunx skills add agisota\u002Fold-one --skill defense-in-depth",{"tool":43,"command":44},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill defense-in-depth","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdefense-in-depth\u002FSKILL.md",true,[],[49,56,63,72,79,86],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":67,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]