[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HR3XCEX4R3DT5KCQJD22Z3":3,"skill-same:01M6HR3XCEX4R3DT5KCQJD22Z3":63},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6HR3XCEX4R3DT5KCQJD22Z3","design-security",null,"Design authentication, authorization, secrets, network security and tenant isolation, mapped to\nthe OWASP API Security Top 10.","wfukatsu\u002Fnexus-architect","wfukatsu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11712747?v=4","01M6HR128TEJY1WD0C36TDQD7S","Wataru Fukatsu","01M6HR12D55WNY36YSW845YXZ1",13,"MIT","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fdesign-security\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"design","security","design security","network security","authentication","network","owasp","authorization","api","secrets","api security","isolation","sonnet","top","2026-11-10 10:12:30",false,"---\ndescription: |\n  Design authentication, authorization, secrets, network security and tenant isolation, mapped to\n  the OWASP API Security Top 10.\nmodel: sonnet\n---\n\n# Security Design\n\nShared files: a path written `@rules\u002F…`, `@skills\u002F…`, `@templates\u002F…` or `@docs\u002F…` is relative to the\nplugin root, `${CLAUDE_PLUGIN_ROOT}` — not to the project being worked on. Read it from there.\n\n## Desired Outcome\n\n- Authentication infrastructure design (OAuth2\u002FOIDC, inter-service mTLS)\n- Authorization model (RBAC\u002FABAC, policy engine) — including **object-level** authorization, not only\n  role-level\n- Tenant isolation model (see below)\n- Secrets management (Vault\u002FKMS, rotation strategy)\n- Network security (zero trust, segmentation)\n- Data classification — which fields are confidential, and what may appear in an API response, a log,\n  or a Problem Details `detail`\n- Audit log design (who, what, when)\n- Compliance checklist\n\n## Authorization: role-level and object-level\n\nA role check answers \"may this kind of caller do this kind of thing\". It does not answer \"may *this*\ncaller act on *this* object\" — and that second question is the single most common API vulnerability\n(OWASP API1, BOLA). The design must therefore state, for every protected resource:\n\n| Element | Content |\n|---------|---------|\n| Ownership predicate | What makes an object the caller's — the field, the claim it is compared to, and where the comparison happens |\n| Enforcement point | Which layer evaluates it. A predicate the design leaves to \"the service\" is a predicate nobody implements |\n| Existence disclosure | Whether an unauthorized caller may learn the object exists. Where existence is confidential the contracted response is **404, not 403** (@rules\u002Fapi-error-standard.md §4) |\n| Function-level rules | Which roles reach which operations (OWASP API5, BFLA) — administrative operations enumerated explicitly rather than assumed unreachable |\n\nEvery rule here binds an `operationId` in `reports\u002F03_design\u002Fapi-specifications\u002Foperation-contracts.md`.\nAn operation with no rule is read downstream as public; if that is the intent, say so explicitly.\n\n## Tenant Isolation\n\nFor a multi-tenant system, state the isolation model concretely enough to verify:\n\n- Where `tenant_id` (or equivalent) originates — which token claim, never a request body or query parameter\n- How it reaches the data layer, and whether it is part of the **partition key** for ScalarDB tables\n- Whether any scan, index lookup, or analytics query can cross a tenant boundary, and what prevents it\n- What happens to the isolation guarantee under 2PC, saga compensation, and batch\u002Fadministrative paths\n\nA tenant identifier the client can influence is a defect regardless of what checks follow it.\n\n## OWASP API Security Top 10 Mapping\n\nThe design records how each risk is addressed, so the code-time review has a design baseline to check\nagainst rather than a blank page. Detail in @rules\u002Fapi-security-checks.md.\n\n| Risk | What the design must state |\n|------|----------------------------|\n| API1 Broken Object Level Authorization | The ownership predicate and enforcement point per resource |\n| API2 Broken Authentication | Token issuance\u002Fvalidation, expiry, revocation, and the Gateway + service double-validation stance |\n| API3 Broken Object Property Level Authorization | Which properties are writable per role (mass assignment) and which are readable (excessive data exposure) |\n| API4 Unrestricted Resource Consumption | Rate limits, page-size caps, payload-size caps, timeouts, and per-operation cost limits |\n| API5 Broken Function Level Authorization | Role-to-operation matrix, with administrative operations enumerated |\n| API6 Unrestricted Access to Sensitive Business Flows | Which business flows need abuse protection beyond authentication, and what provides it |\n| API7 SSRF | Every place the system fetches a caller-influenced URL, and the allowlist that bounds it |\n| API8 Security Misconfiguration | TLS\u002FmTLS posture, CORS policy, error verbosity, default-deny stance |\n| API9 Improper Inventory Management | How the API inventory stays current, and how non-production and deprecated versions are prevented from being reachable |\n| API10 Unsafe Consumption of Third-Party APIs | Which upstreams are trusted, what is validated on the way back in, and the failure mode |\n\n## Prerequisites\n\n| File | Required\u002FRecommended | Source |\n|------|---------------------|--------|\n| reports\u002F03_design\u002Fapi-specifications\u002F | Recommended | \u002Farchitect:design-api — the operations the authorization rules bind to |\n| reports\u002F03_design\u002Ftarget-architecture.md | Recommended | \u002Farchitect:design-microservices |\n\n## Output\n\nOutput language and frontmatter: @rules\u002Foutput-conventions.md.\n\n| File | Content |\n|------|---------|\n| `reports\u002F08_infrastructure\u002Fsecurity-design.md` | Overall security design, including the authorization model, tenant isolation model, data classification, and the OWASP API Security Top 10 mapping |\n\n## Acceptance Criteria\n\n- Every protected resource has an ownership predicate with a named enforcement point\n- Every operation in `operation-contracts.md` is covered by a role-level rule, or is explicitly declared public\n- For a multi-tenant system, the tenant identifier's origin is a token claim and its path to the data layer is stated\n- Every OWASP API Security Top 10 row is addressed or explicitly marked not-applicable with a reason\n- Field-level data classification exists and states what may appear in a response, a log, and a Problem Details `detail`\n\n## Related Skills\n\n| Skill | Relationship |\n|-------|-------------|\n| \u002Farchitect:investigate-security | Input source (vulnerability information from existing systems) |\n| \u002Farchitect:design-api | Input source — the operations the rules bind to; output consumer for per-operation `security` |\n| \u002Farchitect:review-api-security | Downstream — checks the design, and later the code, against this baseline |\n| \u002Farchitect:design-infrastructure | Related |\n","# Security Design\n\nShared files: a path written `@rules\u002F…`, `@skills\u002F…`, `@templates\u002F…` or `@docs\u002F…` is relative to the\nplugin root, `${CLAUDE_PLUGIN_ROOT}` — not to the project being worked on. Read it from there.\n\n## Desired Outcome\n\n- Authentication infrastructure design (OAuth2\u002FOIDC, inter-service mTLS)\n- Authorization model (RBAC\u002FABAC, policy engine) — including **object-level** authorization, not only\n  role-level\n- Tenant isolation model (see below)\n- Secrets management (Vault\u002FKMS, rotation strategy)\n- Network security (zero trust, segmentation)\n- Data classification — which fields are confidential, and what may appear in an API response, a log,\n  or a Problem Details `detail`\n- Audit log design (who, what, when)\n- Compliance checklist\n\n## Authorization: role-level and object-level\n\nA role check answers \"may this kind of caller do this kind of thing\". It does not answer \"may *this*\ncaller act on *this* object\" — and that second question is the single most common API vulnerability\n(OWASP API1, BOLA). The design must therefore state, for every protected resource:\n\n| Element | Content |\n|---------|---------|\n| Ownership predicate | What makes an object the caller's — the field, the claim it is compared to, and where the comparison happens |\n| Enforcement point | Which layer evaluates it. A predicate the design leaves to \"the service\" is a predicate nobody implements |\n| Existence disclosure | Whether an unauthorized caller may learn the object exists. Where existence is confidential the contracted response is **404, not 403** (@rules\u002Fapi-error-standard.md §4) |\n| Function-level rules | Which roles reach which operations (OWASP API5, BFLA) — administrative operations enumerated explicitly rather than assumed unreachable |\n\nEvery rule here binds an `operationId` in `reports\u002F03_design\u002Fapi-specifications\u002Foperation-contracts.md`.\nAn operation with no rule is read downstream as public; if that is the intent, say so explicitly.\n\n## Tenant Isolation\n\nFor a multi-tenant system, state the isolation model concretely enough to verify:\n\n- Where `tenant_id` (or equivalent) originates — which token claim, never a request body or query parameter\n- How it reaches the data layer, and whether it is part of the **partition key** for ScalarDB tables\n- Whether any scan, index lookup, or analytics query can cross a tenant boundary, and what prevents it\n- What happens to the isolation guarantee under 2PC, saga compensation, and batch\u002Fadministrative paths\n\nA tenant identifier the client can influence is a defect regardless of what checks follow it.\n\n## OWASP API Security Top 10 Mapping\n\nThe design records how each risk is addressed, so the code-time review has a design baseline to check\nagainst rather than a blank page. Detail in @rules\u002Fapi-security-checks.md.\n\n| Risk | What the design must state |\n|------|----------------------------|\n| API1 Broken Object Level Authorization | The ownership predicate and enforcement point per resource |\n| API2 Broken Authentication | Token issuance\u002Fvalidation, expiry, revocation, and the Gateway + service double-validation stance |\n| API3 Broken Object Property Level Authorization | Which properties are writable per role (mass assignment) and which are readable (excessive data exposure) |\n| API4 Unrestricted Resource Consumption | Rate limits, page-size caps, payload-size caps, timeouts, and per-operation cost limits |\n| API5 Broken Function Level Authorization | Role-to-operation matrix, with administrative operations enumerated |\n| API6 Unrestricted Access to Sensitive Business Flows | Which business flows need abuse protection beyond authentication, and what provides it |\n| API7 SSRF | Every place the system fetches a caller-influenced URL, and the allowlist that bounds it |\n| API8 Security Misconfiguration | TLS\u002FmTLS posture, CORS policy, error verbosity, default-deny stance |\n| API9 Improper Inventory Management | How the API inventory stays current, and how non-production and deprecated versions are prevented from being reachable |\n| API10 Unsafe Consumption of Third-Party APIs | Which upstreams are trusted, what is validated on the way back in, and the failure mode |\n\n## Prerequisites\n\n| File | Required\u002FRecommended | Source |\n|------|---------------------|--------|\n| reports\u002F03_design\u002Fapi-specifications\u002F | Recommended | \u002Farchitect:design-api — the operations the authorization rules bind to |\n| reports\u002F03_design\u002Ftarget-architecture.md | Recommended | \u002Farchitect:design-microservices |\n\n## Output\n\nOutput language and frontmatter: @rules\u002Foutput-conventions.md.\n\n| File | Content |\n|------|---------|\n| `reports\u002F08_infrastructure\u002Fsecurity-design.md` | Overall security design, including the authorization model, tenant isolation model, data classification, and the OWASP API Security Top 10 mapping |\n\n## Acceptance Criteria\n\n- Every protected resource has an ownership predicate with a named enforcement point\n- Every operation in `operation-contracts.md` is covered by a role-level rule, or is explicitly declared public\n- For a multi-tenant system, the tenant identifier's origin is a token claim and its path to the data layer is stated\n- Every OWASP API Security Top 10 row is addressed or explicitly marked not-applicable with a reason\n- Field-level data classification exists and states what may appear in a response, a log, and a Problem Details `detail`\n\n## Related Skills\n\n| Skill | Relationship |\n|-------|-------------|\n| \u002Farchitect:investigate-security | Input source (vulnerability information from existing systems) |\n| \u002Farchitect:design-api | Input source — the operations the rules bind to; output consumer for per-operation `security` |\n| \u002Farchitect:review-api-security | Downstream — checks the design, and later the code, against this baseline |\n| \u002Farchitect:design-infrastructure | Related |\n",{"model":31,"description":38},"Design authentication, authorization, secrets, network security and tenant isolation, mapped to\nthe OWASP API Security Top 10.\n","main","fed4c7ebb79ed82ce5c961f944a1ab0ab21bae26","skills\u002Fdesign-security",1,"https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect","https:\u002F\u002Fnexus-architect-docs-070772.gitlab.io\u002F","https:\u002F\u002Fgithub.com\u002Fwfukatsu","https:\u002F\u002Fwww.scalar-labs.com\u002F","Wataru Fukatsu | Co-Founder and CEO, Scalar, Inc.","2026-11-14 22:03:27",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add wfukatsu\u002Fnexus-architect --skill design-security",{"tool":55,"command":56},"bunx","bunx skills add wfukatsu\u002Fnexus-architect --skill design-security",{"tool":58,"command":59},"pnpm","pnpm dlx skills add wfukatsu\u002Fnexus-architect --skill design-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fdesign-security\u002FSKILL.md",true,[],[64,72,98,119,142,164],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":71},"01M7DTDMYVAWFXAYJHXN5687Z2","doctor","Check the install and a project: plugins at the repository's version, hooks and skills in\nplace, the two knowledge bundles present and fresh, the project's registry, question store,\naudit log, learned rules and claims readable. Run it first when a command misbehaves.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fdoctor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":33},"01M6HRH10GPAVTZ8W90WD9HJK1","verify-sql-migration","Prove a SQL migration on data: golden checks against an authorized source database and\ndifferential tests against ScalarDB. Never touches production.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fverify-sql-migration\u002FSKILL.md",[],[79,80,81,82,31,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],"verify sql migration","verify","sql","migration","tests","golden","source","Production","fetcher","data","properties","id","database","auto","true","mode","en","core","never",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":33},"01M6HRGWK643YKN0QVRQSNSDCR","verify-implementation","Check code against the design (API contract, transactions, security, requirements, the example\nchain) and report every divergence; optionally runs the eight-stage quality gate.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fverify-implementation\u002FSKILL.md",[],[105,80,106,92,107,108,19,93,109,110,95,111,112,113,114,115,116,27,117,118],"implementation","verify implementation","quality gate","contract","chain","api contract","scope","backlog","repo","example","stage","check","code","requirements",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":33},"01M6HRGS929NK1B5WG1ZANSXQ1","update-knowledge","Fetch or update an OKF knowledge bundle: ScalarDB\u002FScalarDL, or the vendored Kubernetes\u002FTerraform\nbundle.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fupdate-knowledge\u002FSKILL.md",[],[126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141],"update knowledge","update","knowledge","root","plugin","bundle","Bash","terraform","status","okf","latest","kubernetes","name","haiku","Tools","fetch",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":33},"01M6HRGNMYSK70R8Y9BY41E74D","start","Interactive entry point for system architecture work: refactor a legacy application into services,\nor design a new system from requirements; picks the path from the project's state. To move a\ndatabase to ScalarDB, use migrate-database.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fstart\u002FSKILL.md",[],[144,118,91,149,150,19,151,152,153,154,155,156,157,158,159,160,161,162,163],"Legacy","use","system","move","project","for","migrate","path","application","refactor","services","work","state","architecture","interactive",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":33},"01M6HRGHZXK0NXF6W62MMNS46H","select-scalardb-edition","Choose the ScalarDB edition (Community, Enterprise Standard or Premium, plus Enterprise Options),\ndeployment mode and cluster topology through a short interview.","https:\u002F\u002Fgithub.com\u002Fwfukatsu\u002Fnexus-architect\u002Fblob\u002Fmain\u002Fskills\u002Fselect-scalardb-edition\u002FSKILL.md",[],[171,172,173,31,174,94,175,176,177,178,179,180,181],"select scalardb edition","select","topology","short","Enterprise","choose","deployment","options","cluster","interview","community"]