[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4KX94W2T0WQ4GQAPN0V29":3,"skill-same:01M7F4KX94W2T0WQ4GQAPN0V29":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},"01M7F4KX94W2T0WQ4GQAPN0V29","data-compliance-audit-operations",null,"Produce audit-ready evidence for GDPR, HIPAA, or SOC 2 data controls, query platform audit logs, and operate data-subject access and deletion requests. Use when collecting compliance evidence, querying Databricks system.access.audit or Microsoft Purview audit logs, defining audit log retention, or handling a GDPR erasure, access, or deletion request against data platform tables.","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-compliance-audit-operations\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: data-compliance-audit-operations\ndescription: >\n  Produce audit-ready evidence for GDPR, HIPAA, or SOC 2 data controls, query platform audit logs, and operate data-subject access and deletion requests. Use when collecting compliance evidence, querying Databricks system.access.audit or Microsoft Purview audit logs, defining audit log retention, or handling a GDPR erasure, access, or deletion request against data platform tables.\n---\n\n# Data Compliance Audit Operations\n\n## Outcome\n\nEvery claimed control has a stored evidence artifact produced from the platform's own audit data, and every data-subject request has a traceable, completed execution record.\n\n## Evidence thinking\n\nAuditors do not accept \"we have encryption.\" For each control claim, produce one evidence artifact containing: the control statement, the exact query or API call, the timestamped raw output, the scope (workspace, catalog, tenant, date range), and the reviewer. Store artifacts outside the audited system so they survive an incident. Never include raw personal data or secrets in evidence — record counts, principals, and configuration, not values.\n\nFramework anchors: GDPR (Regulation (EU) 2016\u002F679), HIPAA Security Rule (45 CFR Parts 160 and 164, administrative\u002Fphysical\u002Ftechnical safeguards), SOC 2 (AICPA Trust Services Criteria — security, availability, confidentiality). Map each claim to a criterion before collecting evidence.\n\n## Setup\n\n- Databricks audit logs live in the system table `system.access.audit` (columns include `event_time`, `user_identity.email`, `service_name`, `action_name`, `request_params`, `response`). Access requires privileges on the system catalog — an account admin grants `USE CATALOG`\u002F`USE SCHEMA`\u002F`SELECT` on `system.access`. Most logs are regional to the workspace; account-level events record `workspace_id = 0`. Some events (for example `runCommand`) require verbose audit logs enabled on the workspace.\n- Fabric user activities are logged to the Microsoft Purview audit log. Search it in the Purview portal (requires the Audit Logs role in Exchange Online) or via Exchange Online PowerShell (`Connect-ExchangeOnline`, then `Search-UnifiedAuditLog`). Data-plane access to OneLake additionally requires OneLake diagnostics to be enabled into a lakehouse.\n- Never log protected values in your own queries or artifacts; audit trails must record access events, not the data itself.\n\n## Audit queries\n\nRead-only. Run in a SQL warehouse with system table access:\n\n```sql\n-- Who accessed a sensitive table in the last 7 days\nSELECT user_identity.email AS user,\n       IFNULL(request_params.full_name_arg, request_params.name) AS table_name,\n       action_name, event_time\nFROM system.access.audit\nWHERE (request_params.full_name_arg = :table_full_name\n       OR (request_params.name = :table_name\n           AND request_params.schema_name = :schema_name))\n  AND action_name IN ('createTable', 'getTable', 'deleteTable')\n  AND event_date > now() - interval 7 day\nORDER BY event_time DESC;\n```\n\n```sql\n-- Every permission change in the account\nSELECT event_time, user_identity.email, request_params.securable_type,\n       request_params.securable_full_name, request_params.changes\nFROM system.access.audit\nWHERE service_name = 'unityCatalog' AND action_name = 'updatePermissions'\nORDER BY event_time DESC;\n```\n\n```powershell\n# Fabric\u002FPurview: export a date-bounded audit slice for evidence\nSearch-UnifiedAuditLog -StartDate 2026-08-01 -EndDate 2026-08-31 `\n  -RecordType PowerBI -ResultSize 5000 | Export-Csv evidence-fabric-aug.csv\n```\n\n## Retention\n\nRecord where each audit stream lives and how long it persists: `system.access.audit` retention depends on system table policy; Purview audit retention depends on the organization's audit retention policies; OneLake diagnostics persist in the lakehouse you configured. Verify the actual configured retention and state it in the evidence artifact — never assume a default satisfies the framework's requirement.\n\n## Data-subject request procedure\n\n1. Intake: record requester identity, verified identity proof, request type (access, rectification, erasure), legal deadline, and owner.\n2. Locate: find the subject's data across catalogs, schemas, tables, exports, and derived datasets using classification tags and audit queries (`Which tables did a user access recently?` on `system.access.audit` is a starting pattern).\n3. Execute: for erasure, delete the rows, then handle Delta time travel — historical files still hold the data until `VACUUM` with a reduced retention or a rewrite; table clones must be handled separately. In Fabric, delete at the OneLake item level and check downstream semantic models and exports. Deletion is destructive — confirm scope, identity verification, and legal-hold status, and get explicit user approval before running any `DELETE` or `VACUUM`.\n4. Verify: re-run the locate queries and confirm zero remaining rows in scope.\n5. Close: append the execution record (who, what, when, verification result) to the request log without storing the subject's data in it.\n\n## Workflow and permission boundaries\n\n- Inspect and evidence collection are read-only (`SELECT` on system tables, Purview search) — run freely.\n- Enabling verbose audit logs, changing retention, and enabling OneLake diagnostics are configuration changes — propose, then get approval.\n- Deletions and `VACUUM` are destructive and gated as above.\n- Least privilege: grant the auditor identity `SELECT` on `system.access` only; it must not need table `SELECT` on the data being audited.\n\n## Troubleshooting\n\n- Query returns no events: wrong region (most audit logs are workspace-regional), or the event needs verbose audit logs enabled — check both before concluding no activity occurred.\n- `system.access` not visible: the identity lacks grants on the system catalog — an account admin must grant them; workspace admin alone is not enough.\n- Fabric activity missing from Purview: the search window predates the retention policy, or the caller lacks the Exchange Online Audit Logs role.\n- Permission changes not attributed: `user_identity.email` may be null for service principal actions — check `identity_metadata` (`run_by`\u002F`run_as`) and `request_params`.\n- Erasure still visible downstream: a derived table, clone, cache, or exported file retains the data — repeat the locate step across clones and non-production.\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\u002Fevidence-citation-guide.md`\n- `..\u002F..\u002Freferences\u002Fsecurity-control-baseline.md`\n\n## References\n\n- Databricks audit log system table and sample queries: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fadmin\u002Fsystem-tables\u002Faudit-logs.html\n- Track user activities in Fabric (Purview audit log, PowerShell): https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Ffabric\u002Fadmin\u002Ftrack-user-activities\n- GDPR full text (Regulation (EU) 2016\u002F679): https:\u002F\u002Feur-lex.europa.eu\u002Feli\u002Freg\u002F2016\u002F679\u002Foj\n- HIPAA Security Rule (HHS): https:\u002F\u002Fwww.hhs.gov\u002Fhipaa\u002Ffor-professionals\u002Fsecurity\u002Findex.html\n\n## Completion check\n\nEach claimed control has an evidence artifact with query, timestamped output, scope, and reviewer; audit retention is stated from configuration, not assumed; and the latest data-subject request shows a completed locate-execute-verify-close record.\n","# Data Compliance Audit Operations\n\n## Outcome\n\nEvery claimed control has a stored evidence artifact produced from the platform's own audit data, and every data-subject request has a traceable, completed execution record.\n\n## Evidence thinking\n\nAuditors do not accept \"we have encryption.\" For each control claim, produce one evidence artifact containing: the control statement, the exact query or API call, the timestamped raw output, the scope (workspace, catalog, tenant, date range), and the reviewer. Store artifacts outside the audited system so they survive an incident. Never include raw personal data or secrets in evidence — record counts, principals, and configuration, not values.\n\nFramework anchors: GDPR (Regulation (EU) 2016\u002F679), HIPAA Security Rule (45 CFR Parts 160 and 164, administrative\u002Fphysical\u002Ftechnical safeguards), SOC 2 (AICPA Trust Services Criteria — security, availability, confidentiality). Map each claim to a criterion before collecting evidence.\n\n## Setup\n\n- Databricks audit logs live in the system table `system.access.audit` (columns include `event_time`, `user_identity.email`, `service_name`, `action_name`, `request_params`, `response`). Access requires privileges on the system catalog — an account admin grants `USE CATALOG`\u002F`USE SCHEMA`\u002F`SELECT` on `system.access`. Most logs are regional to the workspace; account-level events record `workspace_id = 0`. Some events (for example `runCommand`) require verbose audit logs enabled on the workspace.\n- Fabric user activities are logged to the Microsoft Purview audit log. Search it in the Purview portal (requires the Audit Logs role in Exchange Online) or via Exchange Online PowerShell (`Connect-ExchangeOnline`, then `Search-UnifiedAuditLog`). Data-plane access to OneLake additionally requires OneLake diagnostics to be enabled into a lakehouse.\n- Never log protected values in your own queries or artifacts; audit trails must record access events, not the data itself.\n\n## Audit queries\n\nRead-only. Run in a SQL warehouse with system table access:\n\n```sql\n-- Who accessed a sensitive table in the last 7 days\nSELECT user_identity.email AS user,\n       IFNULL(request_params.full_name_arg, request_params.name) AS table_name,\n       action_name, event_time\nFROM system.access.audit\nWHERE (request_params.full_name_arg = :table_full_name\n       OR (request_params.name = :table_name\n           AND request_params.schema_name = :schema_name))\n  AND action_name IN ('createTable', 'getTable', 'deleteTable')\n  AND event_date > now() - interval 7 day\nORDER BY event_time DESC;\n```\n\n```sql\n-- Every permission change in the account\nSELECT event_time, user_identity.email, request_params.securable_type,\n       request_params.securable_full_name, request_params.changes\nFROM system.access.audit\nWHERE service_name = 'unityCatalog' AND action_name = 'updatePermissions'\nORDER BY event_time DESC;\n```\n\n```powershell\n# Fabric\u002FPurview: export a date-bounded audit slice for evidence\nSearch-UnifiedAuditLog -StartDate 2026-08-01 -EndDate 2026-08-31 `\n  -RecordType PowerBI -ResultSize 5000 | Export-Csv evidence-fabric-aug.csv\n```\n\n## Retention\n\nRecord where each audit stream lives and how long it persists: `system.access.audit` retention depends on system table policy; Purview audit retention depends on the organization's audit retention policies; OneLake diagnostics persist in the lakehouse you configured. Verify the actual configured retention and state it in the evidence artifact — never assume a default satisfies the framework's requirement.\n\n## Data-subject request procedure\n\n1. Intake: record requester identity, verified identity proof, request type (access, rectification, erasure), legal deadline, and owner.\n2. Locate: find the subject's data across catalogs, schemas, tables, exports, and derived datasets using classification tags and audit queries (`Which tables did a user access recently?` on `system.access.audit` is a starting pattern).\n3. Execute: for erasure, delete the rows, then handle Delta time travel — historical files still hold the data until `VACUUM` with a reduced retention or a rewrite; table clones must be handled separately. In Fabric, delete at the OneLake item level and check downstream semantic models and exports. Deletion is destructive — confirm scope, identity verification, and legal-hold status, and get explicit user approval before running any `DELETE` or `VACUUM`.\n4. Verify: re-run the locate queries and confirm zero remaining rows in scope.\n5. Close: append the execution record (who, what, when, verification result) to the request log without storing the subject's data in it.\n\n## Workflow and permission boundaries\n\n- Inspect and evidence collection are read-only (`SELECT` on system tables, Purview search) — run freely.\n- Enabling verbose audit logs, changing retention, and enabling OneLake diagnostics are configuration changes — propose, then get approval.\n- Deletions and `VACUUM` are destructive and gated as above.\n- Least privilege: grant the auditor identity `SELECT` on `system.access` only; it must not need table `SELECT` on the data being audited.\n\n## Troubleshooting\n\n- Query returns no events: wrong region (most audit logs are workspace-regional), or the event needs verbose audit logs enabled — check both before concluding no activity occurred.\n- `system.access` not visible: the identity lacks grants on the system catalog — an account admin must grant them; workspace admin alone is not enough.\n- Fabric activity missing from Purview: the search window predates the retention policy, or the caller lacks the Exchange Online Audit Logs role.\n- Permission changes not attributed: `user_identity.email` may be null for service principal actions — check `identity_metadata` (`run_by`\u002F`run_as`) and `request_params`.\n- Erasure still visible downstream: a derived table, clone, cache, or exported file retains the data — repeat the locate step across clones and non-production.\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\u002Fevidence-citation-guide.md`\n- `..\u002F..\u002Freferences\u002Fsecurity-control-baseline.md`\n\n## References\n\n- Databricks audit log system table and sample queries: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fadmin\u002Fsystem-tables\u002Faudit-logs.html\n- Track user activities in Fabric (Purview audit log, PowerShell): https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Ffabric\u002Fadmin\u002Ftrack-user-activities\n- GDPR full text (Regulation (EU) 2016\u002F679): https:\u002F\u002Feur-lex.europa.eu\u002Feli\u002Freg\u002F2016\u002F679\u002Foj\n- HIPAA Security Rule (HHS): https:\u002F\u002Fwww.hhs.gov\u002Fhipaa\u002Ffor-professionals\u002Fsecurity\u002Findex.html\n\n## Completion check\n\nEach claimed control has an evidence artifact with query, timestamped output, scope, and reviewer; audit retention is stated from configuration, not assumed; and the latest data-subject request shows a completed locate-execute-verify-close record.\n",{"name":5,"description":7},"main","f0f0efe1d4c64b51a51f44427ad147750d29154e","agents\u002Fdata-security-specialist\u002Fskills\u002Fdata-compliance-audit-operations","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-compliance-audit-operations",{"tool":37,"command":38},"bunx","bunx skills add cwik-tech\u002Foctopus --skill data-compliance-audit-operations",{"tool":40,"command":41},"pnpm","pnpm dlx skills add cwik-tech\u002Foctopus --skill data-compliance-audit-operations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Fdata-security-specialist\u002Fskills\u002Fdata-compliance-audit-operations\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",[],[]]