[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4KPZ0G87TBNJDCR6NWD2V":3,"skill-same:01M7F4KPZ0G87TBNJDCR6NWD2V":45},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7F4KPZ0G87TBNJDCR6NWD2V","data-access-control-design",null,"Design and verify least-privilege access control for data platforms, including RBAC versus ABAC selection, segregation of duties, service principal lifecycle, and access review cadence. Use when designing grants or roles, onboarding or retiring a service principal, running an access review, or auditing privileges in Databricks Unity Catalog or Microsoft Fabric workspaces.","cwik-tech\u002Foctopus","cwik-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54542292?v=4","01M7F42E123GEHVK6RWC5MSWJ9","Tomasz Cwik","01M7F42E1PD4P54MTG8PG32VCV",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Fdata-security-specialist\u002Fskills\u002Fdata-access-control-design\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: data-access-control-design\ndescription: >\n  Design and verify least-privilege access control for data platforms, including RBAC versus ABAC selection, segregation of duties, service principal lifecycle, and access review cadence. Use when designing grants or roles, onboarding or retiring a service principal, running an access review, or auditing privileges in Databricks Unity Catalog or Microsoft Fabric workspaces.\n---\n\n# Data Access Control Design\n\n## Outcome\n\nAn access model where every principal's effective privileges are documented, minimal, and verifiable from the platform itself — not from a diagram.\n\n## Setup\n\nDatabricks: install the current CLI (GA is version 1.0.0 and above; versions 0.18 and below are legacy and unsupported). Check with `databricks --version`. Authenticate per profile — never write tokens into files, prompts, or artifacts; reference environment variables or a secret store.\n\n- Interactive: `databricks auth login --host https:\u002F\u002F\u003Cworkspace-host>` (OAuth U2M, browser flow).\n- Automation: set `DATABRICKS_HOST`, `DATABRICKS_CLIENT_ID`, `DATABRICKS_CLIENT_SECRET` (OAuth M2M for a service principal). Prefer OAuth over personal access tokens; PATs only when the tool has no OAuth support.\n\nMicrosoft Fabric: acquire an Entra token for scope `https:\u002F\u002Fapi.fabric.microsoft.com\u002F.default` and call `https:\u002F\u002Fapi.fabric.microsoft.com\u002Fv1\u002F...`. A tenant admin must enable \"Service principals can call Fabric public APIs\" before a service principal can use these endpoints.\n\n## Method\n\n1. Inventory principals (users, groups, service principals) and securables (catalogs, schemas, tables, workspaces, items). Separate authentication from authorization.\n2. Grant to groups, not individuals. Map each group to a job function and give it the minimum privilege set: `USE CATALOG`, `USE SCHEMA`, `SELECT` for readers; add `MODIFY` only for writers; reserve `MANAGE` and ownership for stewards.\n3. Choose RBAC or ABAC. RBAC (explicit grants, Fabric workspace roles) fits stable team boundaries. ABAC (Databricks policies on governed tags) fits classification-driven rules that must apply automatically to new tables. Decide per domain, not per table.\n4. Enforce segregation of duties: the identity that writes production data does not approve its own grants; the identity that deploys pipelines is not a workspace Admin; break-glass access is named, logged, and time-boxed.\n5. Manage the service principal lifecycle: create with a named owner and purpose, store its secret in a secret store, scope to one environment, rotate on a schedule, review quarterly, disable before delete, and record decommissioning.\n6. Set an access review cadence: quarterly for privileged roles, semi-annual for general read access, on event (offboarding, org change, incident) for anything sensitive.\n\n## Inspect before you change\n\nRead-only verification — safe to run without approval:\n\n```sql\n-- Databricks SQL: privileges on a securable (requires admin, owner,\n-- MANAGE on the object plus USE CATALOG \u002F USE SCHEMA on its parents,\n-- or being the named principal)\nSHOW GRANTS ON TABLE catalog.schema.sensitive_table;\nSHOW GRANTS `group-name` ON SCHEMA catalog.schema;\n```\n\n```sql\n-- Effective grants across levels via information schema\nSELECT grantee, privilege_type, table_catalog, table_schema, table_name\nFROM system.information_schema.table_privileges\nWHERE table_catalog = 'catalog' AND table_schema = 'schema';\n```\n\n```bash\n# Fabric: list workspace role assignments (needs Member or higher\n# workspace role; delegated scope Workspace.Read.All)\ncurl -H \"Authorization: Bearer $FABRIC_TOKEN\" \\\n  \"https:\u002F\u002Fapi.fabric.microsoft.com\u002Fv1\u002Fworkspaces\u002F$WORKSPACE_ID\u002FroleAssignments\"\n```\n\nDiscover available CLI subcommands with `databricks grants --help` rather than assuming a command exists in your CLI version.\n\n## Mutating operations — gated\n\n`GRANT`, `REVOKE`, `CREATE POLICY`, and Fabric `POST \u002Fv1\u002Fworkspaces\u002F{id}\u002FroleAssignments` (scope `Workspace.ReadWrite.All`) change who can reach data. For each: state the diff (who gains or loses what), confirm it implements an approved request, get explicit user approval, execute, then re-run the read-only check above as proof. Record the before-statement so a revoke can be replayed as rollback.\n\n## Troubleshooting\n\n- `SHOW GRANTS` returns empty or is denied: the caller lacks ownership\u002F`MANAGE`\u002Fadmin — run as the object owner or a workspace admin.\n- A user sees data they should not: check group nesting and multiple role assignments; effective access is the union of all grants. In Fabric, Admin\u002FMember\u002FContributor workspace roles bypass OneLake security entirely.\n- A grant appears to do nothing: privileges inherit downward — a catalog-level `SELECT` covers every schema and table. Check parents before adding table-level grants.\n- Fabric API returns 401\u002F403 for a service principal: the tenant setting \"Service principals can call Fabric public APIs\" is off, or the SP has no workspace role — the API requires Member or higher for reads.\n- Fabric API returns 429: honor the `Retry-After` header and retry; do not loop immediately.\n\n## Shared resources\n\nLoad only the resources needed for the current task. The links resolve inside the current agent package; the skill works without them.\n\n- `..\u002F..\u002Freferences\u002Fsecurity-control-baseline.md`\n- `..\u002F..\u002Ftemplates\u002Fproduction-readiness-checklist.md`\n- `..\u002F..\u002Ftemplates\u002Fdata-contract.yaml`\n\n## References\n\n- SHOW GRANTS syntax and required privileges: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fsql\u002Flanguage-manual\u002Fsecurity-show-grant.html\n- Databricks CLI overview and versions: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fcli\u002Findex.html\n- Databricks authentication methods (OAuth, profiles, env vars): https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fauth\u002Findex.html\n- Fabric workspace role assignments REST API: https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Frest\u002Fapi\u002Ffabric\u002Fcore\u002Fworkspaces\u002Flist-workspace-role-assignments\n- Fabric workspace roles (Admin\u002FMember\u002FContributor\u002FViewer): https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Ffabric\u002Ffundamentals\u002Froles-workspaces\n\n## Completion check\n\nFor every protected securable, a read-only query or API call shows exactly the intended principals with exactly the intended privileges, and every service principal has a named owner, a scoped secret, and a review date.\n","# Data Access Control Design\n\n## Outcome\n\nAn access model where every principal's effective privileges are documented, minimal, and verifiable from the platform itself — not from a diagram.\n\n## Setup\n\nDatabricks: install the current CLI (GA is version 1.0.0 and above; versions 0.18 and below are legacy and unsupported). Check with `databricks --version`. Authenticate per profile — never write tokens into files, prompts, or artifacts; reference environment variables or a secret store.\n\n- Interactive: `databricks auth login --host https:\u002F\u002F\u003Cworkspace-host>` (OAuth U2M, browser flow).\n- Automation: set `DATABRICKS_HOST`, `DATABRICKS_CLIENT_ID`, `DATABRICKS_CLIENT_SECRET` (OAuth M2M for a service principal). Prefer OAuth over personal access tokens; PATs only when the tool has no OAuth support.\n\nMicrosoft Fabric: acquire an Entra token for scope `https:\u002F\u002Fapi.fabric.microsoft.com\u002F.default` and call `https:\u002F\u002Fapi.fabric.microsoft.com\u002Fv1\u002F...`. A tenant admin must enable \"Service principals can call Fabric public APIs\" before a service principal can use these endpoints.\n\n## Method\n\n1. Inventory principals (users, groups, service principals) and securables (catalogs, schemas, tables, workspaces, items). Separate authentication from authorization.\n2. Grant to groups, not individuals. Map each group to a job function and give it the minimum privilege set: `USE CATALOG`, `USE SCHEMA`, `SELECT` for readers; add `MODIFY` only for writers; reserve `MANAGE` and ownership for stewards.\n3. Choose RBAC or ABAC. RBAC (explicit grants, Fabric workspace roles) fits stable team boundaries. ABAC (Databricks policies on governed tags) fits classification-driven rules that must apply automatically to new tables. Decide per domain, not per table.\n4. Enforce segregation of duties: the identity that writes production data does not approve its own grants; the identity that deploys pipelines is not a workspace Admin; break-glass access is named, logged, and time-boxed.\n5. Manage the service principal lifecycle: create with a named owner and purpose, store its secret in a secret store, scope to one environment, rotate on a schedule, review quarterly, disable before delete, and record decommissioning.\n6. Set an access review cadence: quarterly for privileged roles, semi-annual for general read access, on event (offboarding, org change, incident) for anything sensitive.\n\n## Inspect before you change\n\nRead-only verification — safe to run without approval:\n\n```sql\n-- Databricks SQL: privileges on a securable (requires admin, owner,\n-- MANAGE on the object plus USE CATALOG \u002F USE SCHEMA on its parents,\n-- or being the named principal)\nSHOW GRANTS ON TABLE catalog.schema.sensitive_table;\nSHOW GRANTS `group-name` ON SCHEMA catalog.schema;\n```\n\n```sql\n-- Effective grants across levels via information schema\nSELECT grantee, privilege_type, table_catalog, table_schema, table_name\nFROM system.information_schema.table_privileges\nWHERE table_catalog = 'catalog' AND table_schema = 'schema';\n```\n\n```bash\n# Fabric: list workspace role assignments (needs Member or higher\n# workspace role; delegated scope Workspace.Read.All)\ncurl -H \"Authorization: Bearer $FABRIC_TOKEN\" \\\n  \"https:\u002F\u002Fapi.fabric.microsoft.com\u002Fv1\u002Fworkspaces\u002F$WORKSPACE_ID\u002FroleAssignments\"\n```\n\nDiscover available CLI subcommands with `databricks grants --help` rather than assuming a command exists in your CLI version.\n\n## Mutating operations — gated\n\n`GRANT`, `REVOKE`, `CREATE POLICY`, and Fabric `POST \u002Fv1\u002Fworkspaces\u002F{id}\u002FroleAssignments` (scope `Workspace.ReadWrite.All`) change who can reach data. For each: state the diff (who gains or loses what), confirm it implements an approved request, get explicit user approval, execute, then re-run the read-only check above as proof. Record the before-statement so a revoke can be replayed as rollback.\n\n## Troubleshooting\n\n- `SHOW GRANTS` returns empty or is denied: the caller lacks ownership\u002F`MANAGE`\u002Fadmin — run as the object owner or a workspace admin.\n- A user sees data they should not: check group nesting and multiple role assignments; effective access is the union of all grants. In Fabric, Admin\u002FMember\u002FContributor workspace roles bypass OneLake security entirely.\n- A grant appears to do nothing: privileges inherit downward — a catalog-level `SELECT` covers every schema and table. Check parents before adding table-level grants.\n- Fabric API returns 401\u002F403 for a service principal: the tenant setting \"Service principals can call Fabric public APIs\" is off, or the SP has no workspace role — the API requires Member or higher for reads.\n- Fabric API returns 429: honor the `Retry-After` header and retry; do not loop immediately.\n\n## Shared resources\n\nLoad only the resources needed for the current task. The links resolve inside the current agent package; the skill works without them.\n\n- `..\u002F..\u002Freferences\u002Fsecurity-control-baseline.md`\n- `..\u002F..\u002Ftemplates\u002Fproduction-readiness-checklist.md`\n- `..\u002F..\u002Ftemplates\u002Fdata-contract.yaml`\n\n## References\n\n- SHOW GRANTS syntax and required privileges: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fsql\u002Flanguage-manual\u002Fsecurity-show-grant.html\n- Databricks CLI overview and versions: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fcli\u002Findex.html\n- Databricks authentication methods (OAuth, profiles, env vars): https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fauth\u002Findex.html\n- Fabric workspace role assignments REST API: https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Frest\u002Fapi\u002Ffabric\u002Fcore\u002Fworkspaces\u002Flist-workspace-role-assignments\n- Fabric workspace roles (Admin\u002FMember\u002FContributor\u002FViewer): https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Ffabric\u002Ffundamentals\u002Froles-workspaces\n\n## Completion check\n\nFor every protected securable, a read-only query or API call shows exactly the intended principals with exactly the intended privileges, and every service principal has a named owner, a scoped secret, and a review date.\n",{"name":5,"description":7},"main","f0f0efe1d4c64b51a51f44427ad147750d29154e","agents\u002Fdata-security-specialist\u002Fskills\u002Fdata-access-control-design","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus","www.cuteoctopus.site","https:\u002F\u002Fgithub.com\u002Fcwik-tech","2026-10-27 06:12:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add cwik-tech\u002Foctopus --skill data-access-control-design",{"tool":37,"command":38},"bunx","bunx skills add cwik-tech\u002Foctopus --skill data-access-control-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add cwik-tech\u002Foctopus --skill data-access-control-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Fdata-security-specialist\u002Fskills\u002Fdata-access-control-design\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7F5MQVQ3CHGM77Q51M4B1AC","twenty-year-land-plan","Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Ftwenty-year-land-plan\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F5MGQ8JSV27SFDQVVGFQE3","thematic-gut-check","Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fthematic-gut-check\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F5M8V64Y0ZD8PTPWEJQXJ9","supply-pipeline-gut-check","Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fsupply-pipeline-gut-check\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F5M3J2Q146BJC13TD3YCXF","ruin-scenario-mapping","Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fruin-scenario-mapping\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F5KZDS0DYD172P6HS0WXEM","revenue-cost-architecture","Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Frevenue-cost-architecture\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F5KP1CNQMYAVCDTV4EEW3J","replacement-cost-stress-test","Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Freplacement-cost-stress-test\u002FSKILL.md",[],[]]