skills/codex/databricks-app-apx/SKILL.md
<!-- AUTO-GENERATED by export-skills.py — DO NOT EDIT --> --- name: databricks-app-apx description: Build full-stack Databricks applications using APX framework (FastAPI + React). --- # Databricks APX Application Build full-stack Databricks applications using APX framework (FastAPI + React). ## Trigger Conditions **Invoke when user requests**: - "Databricks app" or "Databricks application" - Full-stack app for Databricks without specifying framework - Mentions APX framework **Do NOT invoke
npx skillsauth add frank-luongt/faos-skills-marketplace skills/codex/databricks-app-apxInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build full-stack Databricks applications using APX framework (FastAPI + React).
Invoke when user requests:
Do NOT invoke if user specifies: Streamlit, Dash, Node.js, Shiny, Gradio, Flask, or other frameworks.
Option A) Repository configured for use with APX. 1.. Verify APX MCP available:
mcp-cli tools | grep apx 2. Verify shadcn MCP available: mcp-cli tools | grep shadcn 3. Confirm
APX project (check pyproject.toml)
Option B) Install APX
brew install uv.brew tap oven-sh/bun
brew install bun
uvx --from git+https://github.com/databricks-solutions/apx.git apx init
Total time: 55-70 minutes
# Start APX development server
mcp-cli call apx/start '{}'
mcp-cli call apx/status '{}'
Create TodoWrite with tasks:
In src/{app_name}/backend/models.py:
Follow 3-model pattern:
EntityIn - Input validationEntityOut - Complete output with computed fieldsEntityListOut - Performance-optimized summarySee backend-patterns.md for complete code templates.
In src/{app_name}/backend/router.py:
Critical requirements:
response_model (enables OpenAPI generation)operation_id (becomes frontend hook name)listX, getX, createX, updateX, deleteXSee backend-patterns.md for complete CRUD templates.
mcp-cli call apx/dev_check '{}'
Fix any Python type errors reported by basedpyright.
Wait 5-10 seconds after backend changes for OpenAPI client regeneration.
# Get shadcn add command
mcp-cli call shadcn/get_add_command_for_items '{
"items": ["@shadcn/button", "@shadcn/card", "@shadcn/table",
"@shadcn/badge", "@shadcn/select", "@shadcn/skeleton"]
}'
Run the command from project root with --yes flag.
List page: src/{app_name}/ui/routes/_sidebar/{entity}.tsx
Detail page: src/{app_name}/ui/routes/_sidebar/{entity}.$id.tsx
See frontend-patterns.md for complete page templates.
In src/{app_name}/ui/routes/_sidebar/route.tsx, add new item to navItems array.
# Type check both backend and frontend
mcp-cli call apx/dev_check '{}'
# Test API endpoints
curl http://localhost:8000/api/{entities} | jq .
curl http://localhost:8000/api/{entities}/{id} | jq .
# Get frontend URL
mcp-cli call apx/get_frontend_url '{}'
Manually verify in browser:
Use DABs to deploy your APX application to Databricks. See the asset-bundles skill for complete
deployment guidance.
Automated log checking with APX MCP:
The APX MCP server can automatically check deployed application logs. Simply ask: "Please check the deployed app logs for <app-name>"
The APX MCP will retrieve logs and identify issues automatically, including:
[SYSTEM] (deployment) and [APP] (application) logsManual log checking (reference):
For direct CLI access:
databricks apps logs <app-name> --profile <profile-name>
Key patterns to look for:
Deployment successful - App deployed correctlyApp started successfully - Application is runningError: - Check stack traces for issuesCreate two markdown files:
README.md:
CODE_STRUCTURE.md:
listEntities → useListEntities()useXSuspense(selector())lib/api.ts or types/routeTree.gen.tsapx dev check succeeds)Deployed app not working: Ask to check deployed app logs (APX MCP will automatically retrieve
and analyze them) or manually use databricks apps logs <app-name> Python type errors: Use
explicit casting for dict access, check Optional fields TypeScript errors: Wait for OpenAPI
regen, verify hook names match operation_ids OpenAPI not updating: Check watcher status with
apx dev status, restart if needed Components not added: Run shadcn from project root with
--yes flag
Read these files only when actively writing that type of code or debugging issues.
<!-- Source: .faos/custom/skills/cloud/databricks/databricks-app-apx/SKILL.md -->development
<!-- AUTO-GENERATED by export-skills.py — DO NOT EDIT --> --- name: databricks-mlflow-evaluation --- # MLflow 3 GenAI Evaluation ## Before Writing Any Code 1. **Read GOTCHAS.md** - 15+ common mistakes that cause failures 2. **Read CRITICAL-interfaces.md** - Exact API signatures and data schemas ## End-to-End Workflows Follow these workflows based on your goal. Each step indicates which reference files to read. ### Workflow 1: First-Time Evaluation Setup For users new to MLflow GenAI evalu
development
<!-- AUTO-GENERATED by export-skills.py — DO NOT EDIT --> --- name: databricks-lakebase-provisioned --- # Lakebase Provisioned Patterns and best practices for using Lakebase Provisioned (Databricks managed PostgreSQL) for OLTP workloads. ## When to Use Use this skill when: - Building applications that need a PostgreSQL database for transactional workloads - Adding persistent state to Databricks Apps - Implementing reverse ETL from Delta Lake to an operational database - Storing chat/agent m
tools
<!-- AUTO-GENERATED by export-skills.py — DO NOT EDIT --> --- name: databricks-jobs --- # Databricks Lakeflow Jobs ## Overview Databricks Jobs orchestrate data workflows with multi-task DAGs, flexible triggers, and comprehensive monitoring. Jobs support diverse task types and can be managed via Python SDK, CLI, or Asset Bundles. ## Reference Files | Use Case | Reference File | | ----------------------
development
<!-- AUTO-GENERATED by export-skills.py — DO NOT EDIT --> --- name: databricks-genie --- # Databricks Genie Create and query Databricks Genie Spaces - natural language interfaces for SQL-based data exploration. ## Overview Genie Spaces allow users to ask natural language questions about structured data in Unity Catalog. The system translates questions into SQL queries, executes them on a SQL warehouse, and presents results conversationally. ## When to Use This Skill Use this skill when: -