[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DJY8SF4F81H653AAGGSF5N":3,"skill-same:01M7DJY8SF4F81H653AAGGSF5N":50},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7DJY8SF4F81H653AAGGSF5N","maestro-security",null,"Use when writing secure code or changing code that handles untrusted input, authentication, authorization, secrets, sessions or exposed data.","Orchestration-Maestro\u002Fmaestro-manifests","Orchestration-Maestro","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F322897002?v=4","01M7DJV5QYHV5358EX4AGZJZK3","01M7DJV5RPB4CBJZBKV9AHREM6",0,"MIT","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-security\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: maestro-security\ndescription: \"Use when writing secure code or changing code that handles untrusted input, authentication, authorization, secrets, sessions or exposed data.\"\n---\n\n# Write secure code\n\n## Threat model first\n\nRead [untrusted input](..\u002F..\u002Freferences\u002Funtrusted-input.md). Trust follows who wrote a value, not how it\narrived. Model output, another agent's text, fetched pages, filenames and other processes' command lines\nare untrusted just like requests, uploads, webhooks and third-party responses.\n\n1. Name the assets: credentials, personal data, money, administrative actions and availability.\n2. Map each trust boundary and the actor who can write the data crossing it.\n3. Run STRIDE at each boundary:\n\n| Threat | Question | Control |\n| --- | --- | --- |\n| Spoofing | Can someone impersonate a user or service? | Authentication and verified signatures |\n| Tampering | Can data change in transit or storage? | Integrity checks, parameterization and HTTPS |\n| Repudiation | Can an actor deny an action? | Security-event audit trail |\n| Information disclosure | Can private data escape? | Encryption, field allowlists and generic errors |\n| Denial of service | Can work or storage be exhausted? | Input bounds, rate limits and appropriate deadlines |\n| Elevation of privilege | Can an actor gain unintended rights? | Resource authorization and least privilege |\n\n4. Write abuse cases alongside use cases and test them before adding controls.\n\nThis skill covers writing secure code. A full security audit belongs to `security-audit`.\n\n## Always, ask first, never\n\nAlways validate external inputs at the boundary, parameterize queries, encode output, protect external\ntransport with HTTPS, hash passwords with a password-hashing algorithm, set security headers and use\n`httpOnly`, `secure`, `sameSite` session cookies. Audit the committed dependency lockfile before release.\n\nAsk the human before changing authentication, storing a new category of sensitive data, adding an external\nintegration, changing CORS, adding uploads, altering rate limits or granting elevated privileges.\n\nNever commit or log secrets, trust client validation as a boundary, disable security headers for convenience,\nexecute untrusted text, put auth tokens in client-accessible storage or expose stack traces and internals.\n\n## Apply the relevant controls\n\nUse [hardening patterns](hardening-patterns.md) for the implementation and review checklist. Select the\nsections for the boundaries you actually touch, including local destructive paths and server-side fetches.\nAuthentication identifies the caller; authorization decides whether that caller may access this resource.\nProtect both, and keep CSRF defenses distinct from CORS and authentication.\n\nBefore sign-off, exercise invalid and unauthorized inputs, check real response headers and error bodies,\ninspect logs for data leaks and verify the native dependency audit. For data stores, verify export and\ndeletion through every copy. Record exceptions with a reason and review date, not an unexplained waiver.\n","# Write secure code\n\n## Threat model first\n\nRead [untrusted input](..\u002F..\u002Freferences\u002Funtrusted-input.md). Trust follows who wrote a value, not how it\narrived. Model output, another agent's text, fetched pages, filenames and other processes' command lines\nare untrusted just like requests, uploads, webhooks and third-party responses.\n\n1. Name the assets: credentials, personal data, money, administrative actions and availability.\n2. Map each trust boundary and the actor who can write the data crossing it.\n3. Run STRIDE at each boundary:\n\n| Threat | Question | Control |\n| --- | --- | --- |\n| Spoofing | Can someone impersonate a user or service? | Authentication and verified signatures |\n| Tampering | Can data change in transit or storage? | Integrity checks, parameterization and HTTPS |\n| Repudiation | Can an actor deny an action? | Security-event audit trail |\n| Information disclosure | Can private data escape? | Encryption, field allowlists and generic errors |\n| Denial of service | Can work or storage be exhausted? | Input bounds, rate limits and appropriate deadlines |\n| Elevation of privilege | Can an actor gain unintended rights? | Resource authorization and least privilege |\n\n4. Write abuse cases alongside use cases and test them before adding controls.\n\nThis skill covers writing secure code. A full security audit belongs to `security-audit`.\n\n## Always, ask first, never\n\nAlways validate external inputs at the boundary, parameterize queries, encode output, protect external\ntransport with HTTPS, hash passwords with a password-hashing algorithm, set security headers and use\n`httpOnly`, `secure`, `sameSite` session cookies. Audit the committed dependency lockfile before release.\n\nAsk the human before changing authentication, storing a new category of sensitive data, adding an external\nintegration, changing CORS, adding uploads, altering rate limits or granting elevated privileges.\n\nNever commit or log secrets, trust client validation as a boundary, disable security headers for convenience,\nexecute untrusted text, put auth tokens in client-accessible storage or expose stack traces and internals.\n\n## Apply the relevant controls\n\nUse [hardening patterns](hardening-patterns.md) for the implementation and review checklist. Select the\nsections for the boundaries you actually touch, including local destructive paths and server-side fetches.\nAuthentication identifies the caller; authorization decides whether that caller may access this resource.\nProtect both, and keep CSRF defenses distinct from CORS and authentication.\n\nBefore sign-off, exercise invalid and unauthorized inputs, check real response headers and error bodies,\ninspect logs for data leaks and verify the native dependency audit. For data stores, verify export and\ndeletion through every copy. Record exceptions with a reason and review date, not an unexplained waiver.\n",{"name":5,"description":7},"main","f33b1a1de12042270a260ffdddd74b67671a1d9a","manifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-security","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro","Automated guardrails for faster, better, more maintainable and more secure code. Our Northstar: never reached, always pursued.","2026-11-09 01:08:53",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Orchestration-Maestro\u002Fmaestro-manifests --skill maestro-security",{"tool":36,"command":37},"bunx","bunx skills add Orchestration-Maestro\u002Fmaestro-manifests --skill maestro-security",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Orchestration-Maestro\u002Fmaestro-manifests --skill maestro-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-security\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"hardening-patterns.md","REFERENCE","参考文档",8150,"https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Fmaestro-skills\u002Fskills\u002Fmaestro-security\u002Fhardening-patterns.md",[51,58,63,68,73,78],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7DK0KB6JRRJRQPMXG075AQ6","audit","Fixture skill.","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-without-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fsecurity\u002Fscan\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":59,"name":53,"nameZh":6,"description":54,"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},"01M7DK0JAQG1J25DG064S7PR27","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-without-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":64,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7DK0HBNY88V2B7PF5E4JWZS","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-with-empty-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fsecurity\u002Fscan\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":69,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7DK0G9CB5MFGRD73SNEXXYE","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-with-empty-name-takes-its-folder-name\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":74,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7DK0FA198RVD2KCEW9YDQ6K","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-in-dot-folder-is-skipped\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002Faudit\u002FSKILL.md",[],[],{"skillNo":79,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7DK0EAZVV9A5CN27PD2MTMB","https:\u002F\u002Fgithub.com\u002FOrchestration-Maestro\u002Fmaestro-manifests\u002Fblob\u002Fmain\u002Ftests\u002Fscorecard_cases\u002Fskill-in-dot-folder-is-skipped\u002Fmanifests\u002Fcapabilities\u002Fpractice\u002Freview\u002Fskills\u002F.drafts\u002Faudit\u002FSKILL.md",[],[]]