[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4H6A2RE21GFB442B4GC5T":3,"skill-same:01M7F4H6A2RE21GFB442B4GC5T":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},"01M7F4H6A2RE21GFB442B4GC5T","databricks-cli-sdk-operations",null,"Operate a Databricks workspace with the current Databricks CLI (Go-based, version 0.205 or later), the Databricks SDK for Python, and the Databricks REST API 2.0. Use when authenticating to Databricks, managing config profiles, inspecting clusters, jobs, or workspace files, scripting with databricks-sdk, calling \u002Fapi\u002F2.0 endpoints directly, handling pagination, or troubleshooting Databricks CLI errors.","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-pipeline-engineer\u002Fskills\u002Fdatabricks-cli-sdk-operations\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: databricks-cli-sdk-operations\ndescription: >\n  Operate a Databricks workspace with the current Databricks CLI (Go-based, version 0.205 or later), the Databricks SDK for Python, and the Databricks REST API 2.0. Use when authenticating to Databricks, managing config profiles, inspecting clusters, jobs, or workspace files, scripting with databricks-sdk, calling \u002Fapi\u002F2.0 endpoints directly, handling pagination, or troubleshooting Databricks CLI errors.\n---\n\n# Databricks CLI and SDK Operations\n\n## Outcome\n\nRun authenticated, least-privilege Databricks operations from the CLI, Python SDK, or REST API, with verified versions, predictable pagination and error handling, and mutating actions gated on approval.\n\n## Setup\n\n1. Verify the current CLI, not the legacy Python CLI: `databricks --version` must report 0.205 or later. Install or upgrade per the docs; on macOS `brew install databricks` or `brew upgrade databricks`.\n2. Authenticate with OAuth user login (preferred, no stored secret): `databricks auth login --host https:\u002F\u002F\u003Cworkspace-host>` creates a profile in `~\u002F.databrickscfg`. For automation use an OAuth service principal: set `DATABRICKS_HOST`, `DATABRICKS_CLIENT_ID`, `DATABRICKS_CLIENT_SECRET` from the environment or a secret store. Never write tokens, client secrets, or PATs into files, prompts, logs, or artifacts; reference env vars.\n3. Select profiles explicitly: `databricks --profile prod workspace list \u002F` or `export DATABRICKS_CONFIG_PROFILE=prod`. Confirm identity and target before any change: `databricks current-user me --profile prod` and check the workspace URL printed.\n4. For the Python SDK, require a recent `databricks-sdk` (`pip show databricks-sdk`); it reads the same env vars and `~\u002F.databrickscfg` profiles.\n\n## Core command patterns\n\nRead-only first; the same patterns apply to mutating calls after approval.\n\n- Workspace: `databricks workspace list \u002FUsers` (add `--recursive` for a tree), `databricks workspace export \u002Fpath\u002Fnotebook -o out.ipynb`.\n- Clusters: `databricks clusters list --output json`, `databricks clusters get \u003Ccluster-id>`.\n- Jobs: `databricks jobs list --output json`, `databricks jobs get \u003Cjob-id>`, `databricks jobs run-now --job-id \u003Cid>`.\n- REST fallback for endpoints without a CLI wrapper: `curl -H \"Authorization: Bearer $(databricks auth token --profile prod | jq -r .access_token)\" https:\u002F\u002F\u003Cworkspace-host>\u002Fapi\u002F2.0\u002Fclusters\u002Flist`. CLI command and flag names mirror the REST operation names; check the CLI commands reference before scripting.\n- Python SDK: `from databricks.sdk import WorkspaceClient; w = WorkspaceClient(profile=\"prod\")`, then `for c in w.clusters.list(): ...` — SDK list calls auto-paginate.\n\n## Pagination and errors\n\n- CLI list commands paginate automatically; the REST API returns `next_page_token` (or `has_more` with offset on older endpoints). When scripting against REST, loop until no `next_page_token`; never assume one page.\n- Use `--output json` plus `jq` for parsing. Diagnose failures with `--debug` for request\u002Fresponse traces — the trace can contain headers, so do not paste it into artifacts.\n- Map HTTP status to action: 401\u002F403 = auth or permission (re-run `databricks auth login` or check the token's workspace), 404 = wrong workspace or ID, 429 = back off and retry with jitter.\n\n## Permissions and safety\n\n- Grant least privilege: workspace access entitlement, `CAN USE` on clusters and `CAN MANAGE RUN` or `CAN MANAGE` on jobs only where needed. Automation uses a service principal, never a personal account.\n- Read-only operations (`list`, `get`, `export`, `current-user`) need no approval. Mutating operations (`create`, `update`, `run-now`, `start`, `restart`, `delete`) require a written plan and explicit user approval. Destructive operations (`delete`, `reset`, cluster permanent termination) additionally require naming the exact resource ID and a stated rollback path.\n- Workflow: inspect (read-only) → plan (proposed calls with IDs and diffs) → execute → verify (re-read the object or run state) → rollback or roll forward.\n\n## Troubleshooting\n\n- `Error: cannot configure default credentials`: no auth configured; run `databricks auth login --host \u003Curl>` or set the env vars for your auth type.\n- Commands hit the wrong workspace: a profile or `DATABRICKS_HOST` from a parent shell overrides intent; check `databricks auth env --profile \u003Cname>` and unset stray env vars.\n- 403 on a valid token: the identity lacks workspace entitlement or object ACL; verify with `databricks current-user me` and check object-level permissions.\n- Legacy CLI behavior (`databricks configure --token`, different flags): you are on CLI 0.18 or older; upgrade to 0.205+.\n- SDK raises `NotFound` or `PermissionDenied` from `databricks.sdk.errors`: catch the mapped exception classes, not generic `Exception`.\n\n## References\n\n- Databricks CLI overview: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fcli\u002Findex.html\n- CLI auth commands: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fcli\u002Fauth-commands.html\n- Configuration profiles: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fauth\u002Fconfig-profiles.html\n- OAuth M2M (service principals): https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fauth\u002Foauth-m2m.html\n- REST API reference: https:\u002F\u002Fdocs.databricks.com\u002Fapi\u002Fworkspace\u002Fintroduction\n- SDK for Python: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fsdk-python.html and https:\u002F\u002Fpypi.org\u002Fproject\u002Fdatabricks-sdk\u002F\n\n## Shared resources\n\nLoad only if the task needs them; the skill is self-contained without them.\n\n- `..\u002F..\u002Freferences\u002Fsecurity-control-baseline.md`\n\n## Completion check\n\n`databricks current-user me` returns the intended identity in the intended workspace, every mutating call was approved and re-read to confirm the resulting state, and no secret appears in any file, prompt, log, or artifact.\n","# Databricks CLI and SDK Operations\n\n## Outcome\n\nRun authenticated, least-privilege Databricks operations from the CLI, Python SDK, or REST API, with verified versions, predictable pagination and error handling, and mutating actions gated on approval.\n\n## Setup\n\n1. Verify the current CLI, not the legacy Python CLI: `databricks --version` must report 0.205 or later. Install or upgrade per the docs; on macOS `brew install databricks` or `brew upgrade databricks`.\n2. Authenticate with OAuth user login (preferred, no stored secret): `databricks auth login --host https:\u002F\u002F\u003Cworkspace-host>` creates a profile in `~\u002F.databrickscfg`. For automation use an OAuth service principal: set `DATABRICKS_HOST`, `DATABRICKS_CLIENT_ID`, `DATABRICKS_CLIENT_SECRET` from the environment or a secret store. Never write tokens, client secrets, or PATs into files, prompts, logs, or artifacts; reference env vars.\n3. Select profiles explicitly: `databricks --profile prod workspace list \u002F` or `export DATABRICKS_CONFIG_PROFILE=prod`. Confirm identity and target before any change: `databricks current-user me --profile prod` and check the workspace URL printed.\n4. For the Python SDK, require a recent `databricks-sdk` (`pip show databricks-sdk`); it reads the same env vars and `~\u002F.databrickscfg` profiles.\n\n## Core command patterns\n\nRead-only first; the same patterns apply to mutating calls after approval.\n\n- Workspace: `databricks workspace list \u002FUsers` (add `--recursive` for a tree), `databricks workspace export \u002Fpath\u002Fnotebook -o out.ipynb`.\n- Clusters: `databricks clusters list --output json`, `databricks clusters get \u003Ccluster-id>`.\n- Jobs: `databricks jobs list --output json`, `databricks jobs get \u003Cjob-id>`, `databricks jobs run-now --job-id \u003Cid>`.\n- REST fallback for endpoints without a CLI wrapper: `curl -H \"Authorization: Bearer $(databricks auth token --profile prod | jq -r .access_token)\" https:\u002F\u002F\u003Cworkspace-host>\u002Fapi\u002F2.0\u002Fclusters\u002Flist`. CLI command and flag names mirror the REST operation names; check the CLI commands reference before scripting.\n- Python SDK: `from databricks.sdk import WorkspaceClient; w = WorkspaceClient(profile=\"prod\")`, then `for c in w.clusters.list(): ...` — SDK list calls auto-paginate.\n\n## Pagination and errors\n\n- CLI list commands paginate automatically; the REST API returns `next_page_token` (or `has_more` with offset on older endpoints). When scripting against REST, loop until no `next_page_token`; never assume one page.\n- Use `--output json` plus `jq` for parsing. Diagnose failures with `--debug` for request\u002Fresponse traces — the trace can contain headers, so do not paste it into artifacts.\n- Map HTTP status to action: 401\u002F403 = auth or permission (re-run `databricks auth login` or check the token's workspace), 404 = wrong workspace or ID, 429 = back off and retry with jitter.\n\n## Permissions and safety\n\n- Grant least privilege: workspace access entitlement, `CAN USE` on clusters and `CAN MANAGE RUN` or `CAN MANAGE` on jobs only where needed. Automation uses a service principal, never a personal account.\n- Read-only operations (`list`, `get`, `export`, `current-user`) need no approval. Mutating operations (`create`, `update`, `run-now`, `start`, `restart`, `delete`) require a written plan and explicit user approval. Destructive operations (`delete`, `reset`, cluster permanent termination) additionally require naming the exact resource ID and a stated rollback path.\n- Workflow: inspect (read-only) → plan (proposed calls with IDs and diffs) → execute → verify (re-read the object or run state) → rollback or roll forward.\n\n## Troubleshooting\n\n- `Error: cannot configure default credentials`: no auth configured; run `databricks auth login --host \u003Curl>` or set the env vars for your auth type.\n- Commands hit the wrong workspace: a profile or `DATABRICKS_HOST` from a parent shell overrides intent; check `databricks auth env --profile \u003Cname>` and unset stray env vars.\n- 403 on a valid token: the identity lacks workspace entitlement or object ACL; verify with `databricks current-user me` and check object-level permissions.\n- Legacy CLI behavior (`databricks configure --token`, different flags): you are on CLI 0.18 or older; upgrade to 0.205+.\n- SDK raises `NotFound` or `PermissionDenied` from `databricks.sdk.errors`: catch the mapped exception classes, not generic `Exception`.\n\n## References\n\n- Databricks CLI overview: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fcli\u002Findex.html\n- CLI auth commands: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fcli\u002Fauth-commands.html\n- Configuration profiles: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fauth\u002Fconfig-profiles.html\n- OAuth M2M (service principals): https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fauth\u002Foauth-m2m.html\n- REST API reference: https:\u002F\u002Fdocs.databricks.com\u002Fapi\u002Fworkspace\u002Fintroduction\n- SDK for Python: https:\u002F\u002Fdocs.databricks.com\u002Fen\u002Fdev-tools\u002Fsdk-python.html and https:\u002F\u002Fpypi.org\u002Fproject\u002Fdatabricks-sdk\u002F\n\n## Shared resources\n\nLoad only if the task needs them; the skill is self-contained without them.\n\n- `..\u002F..\u002Freferences\u002Fsecurity-control-baseline.md`\n\n## Completion check\n\n`databricks current-user me` returns the intended identity in the intended workspace, every mutating call was approved and re-read to confirm the resulting state, and no secret appears in any file, prompt, log, or artifact.\n",{"name":5,"description":7},"main","f0f0efe1d4c64b51a51f44427ad147750d29154e","agents\u002Fdata-pipeline-engineer\u002Fskills\u002Fdatabricks-cli-sdk-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 databricks-cli-sdk-operations",{"tool":37,"command":38},"bunx","bunx skills add cwik-tech\u002Foctopus --skill databricks-cli-sdk-operations",{"tool":40,"command":41},"pnpm","pnpm dlx skills add cwik-tech\u002Foctopus --skill databricks-cli-sdk-operations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Fdata-pipeline-engineer\u002Fskills\u002Fdatabricks-cli-sdk-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",[],[]]