/one-shot-demo:one-shot-demofrom one-shot-demo
Creates production-grade Databricks demos end-to-end in a single shot. Use when building customer demos, POCs, or showcase applications. Triggers on 'build a demo', 'create a Databricks demo', 'demo for [customer]', 'one-shot demo', 'POC application'.
Ships in one-shot-demo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Version 1.2.0 | 2026-03-11 | Phase 10 data grounding, SP permissions for all endpoint types, security fixes (user_email scoping), value formatting standards, follow-up chip styling. Version 1.1: 2026-03-02. Version 1.0: 2026-02-24
Expert guidance for creating production-grade Databricks demos that follow enterprise best practices. Orchestrates the complete demo creation workflow from customer research through deployment.
databricks bundle deployMANDATORY: On skill invocation, IMMEDIATELY create a task tracker:
TaskCreate: "Phase 0: Pre-flight verification" (activeForm: "Verifying MCP tools")
TaskCreate: "Phase 1: Customer research" (activeForm: "Researching customer")
TaskCreate: "Phase 2: Story planning" (activeForm: "Planning demo story")
TaskCreate: "Phase 3: Story approval gate" (activeForm: "Awaiting user approval")
TaskCreate: "Phase 4: App template selection" (activeForm: "Selecting app template")
TaskCreate: "Phase 5: Data generation" (activeForm: "Generating data")
TaskCreate: "Phase 6: User identity & Lakebase" (activeForm: "Configuring user identity")
TaskCreate: "Phase 7: Resource creation & deploy" (activeForm: "Creating resources")
TaskCreate: "Phase 8: Asset Bundle packaging" (activeForm: "Packaging Asset Bundle")
TaskCreate: "Phase 9: Post-deploy verification" (activeForm: "Testing every feature")
TaskCreate: "Phase 10: Data grounding & handover" (activeForm: "Verifying data integrity")
Rules:
in_progress BEFORE starting itcompleted ONLY when fully doneMANDATORY: Complete ALL steps before ANY demo work.
The MCP tools connect to a default workspace which may NOT be the intended one. This has caused deployments to the wrong workspace.
Actions:
get_current_user() and execute_sql("SELECT current_catalog()") to identify the connected workspaceAskUserQuestion:
"Which Databricks workspace should this demo be deployed to?"
Options:
- The workspace MCP tools are currently connected to: {detected_host}
- A different workspace (specify profile name)
ToolSearch query="databricks"
If tools found (mcp__plugin_databricks-ai-dev-kit_databricks__*):
execute_sql("SELECT 1 as test")If NO tools found: HARD STOP. The databricks-ai-dev-kit plugin is required. Tell the user to install it from the fe-vibe marketplace and restart Claude Code. DO NOT proceed with CLI workarounds.
CRITICAL: This rule applies from Phase 0 through Phase 9 and beyond. In long sessions, there is a pattern of silently drifting to CLI commands. Undocumented drift to CLI MUST NOT happen.
Before EVERY Databricks operation, ask yourself: "Can an MCP tool do this?"
| Operation | MCP Tool (USE THIS) | CLI Fallback (ONLY if MCP fails) |
|---|---|---|
| Run SQL | execute_sql() | databricks sql |
| Upload files | upload_file() / upload_folder() | databricks workspace import |
| Deploy app | deploy_app() | databricks apps deploy |
| Get app status | get_app() | databricks apps get |
| Create Lakebase | create_or_update_lakebase_database() | N/A |
| Generate Lakebase cred | generate_lakebase_credential() | N/A |
| List volume files | list_volume_files() | databricks volumes list |
| Run Python | run_python_file_on_databricks() | N/A |
If you catch yourself typing databricks in a Bash command: STOP. Check the table above. Only proceed with CLI if the MCP tool genuinely failed (timeout, connection error) — and LOG why you fell back so the user knows.
Load the following skills. Names come from the databricks-ai-dev-kit plugin and fe-databricks-tools — if a skill name is not found, search for the closest match (e.g., search "synthetic data" or "agent bricks") and use whatever the current skill name is.
Skill skill="databricks-apps"
Skill skill="databricks-lakeview-dashboard"
Skill skill="databricks-authentication"
Skill skill="databricks-synthetic-data-generation"
Skill skill="databricks-agent-bricks"
dbldatagenGATE: Phase 0 → Phase 1 — User confirmed target workspace AND execute_sql("SELECT 1") succeeded. Mark Phase 0 completed, Phase 1 in_progress.
Input Required: Customer name
Actions:
Output: Customer context document for story planning
Load now: story-template.md, agent-bricks-decision-tree.md
CRITICAL: Present full story plan and receive explicit approval BEFORE any code, data, or assets.
Use the story structure template from story-template.md. The story must include:
Agent Bricks Decision Logic (MANDATORY):
Unstructured data (PDFs, docs)? → CREATE Knowledge Assistant (KA)
Structured data queries (SQL)? → CREATE Genie Space
Using 2+ agents? → CREATE Multi-Agent Supervisor (MAS)
See agent-bricks-decision-tree.md for full details including all 5 MAS agent types.
Story Rules: No @ symbols in headers. Transformations = one-line only. Questions max 6. Agent Bricks before Foundation Model Serving.
STOP HERE: Wait for explicit user approval of story plan.
Load now: app-design-philosophy.md, app-design-checklist.md, brand-extraction.md
frontend/public/customer-logo.png"{company} logo transparent png" and download from logo databases<img src="/customer-logo.png" style={{ mixBlendMode: 'lighten' }}> in Layout.tsx${COLOR_*} placeholder values using the brand-tinting formula in brand-extraction.md (backgrounds, cards, borders must be visibly tinted with the brand color — NOT generic dark)setup.sh or direct replacement — every color in the app should echo the customer's brandgrep -rn '#[0-9a-fA-F]\{6\}' frontend/src/ and replace any generic colors with brand-tinted equivalents. This includes FloatingAssistant, KPICard, Dashboard, modals — every .tsx file, not just index.css${PLACEHOLDER} variables with your demo values.databricks-app-apx skill for a fresh FastAPI + React template. Follow app-design-philosophy.md for UX standards.When the user says "revamp", "upgrade", "fill in gaps", or "bring up to standard" for an existing app, this flow applies INSTEAD of building from scratch. The compliance checklist below is STILL MANDATORY.
templates/app/frontend/src/components/FloatingAssistant.tsx (canonical chat pattern)templates/app/CUSTOMIZE.md (placeholder reference + chat architecture rules)references/brand-extraction.md (logo + color rules)references/app-design-checklist.md (full UI/UX checklist)references/patterns-ui-frontend.md (design system + gotchas)references/patterns-mas-chat.md (MAS integration patterns)This checklist MUST be completed before writing or modifying any code — whether building from scratch, revamping an existing app, or "just filling in gaps". NEVER skip this. The #1 cause of framework violations is skipping this step and coding from memory.
Read each reference file and verify the app matches. For each item, mark PASS or FAIL:
Chat Architecture (source: CUSTOMIZE.md "Chat Architecture: Floating Widget"):
Branding (source: brand-extraction.md, patterns-ui-frontend.md §1b):
frontend/public/customer-logo.png (or equivalent)grep -rn '#[0-9a-fA-F]{6}' frontend/src/)Routing Animation (source: app-design-checklist.md, patterns-mas-chat.md §4):
AI Response Format (source: app-design-philosophy.md, app-design-checklist.md):
Navigation & Layout (source: app-design-philosophy.md):
/api/me)Workspace Hygiene (source: gotcha #16):
node_modules/, .venv/, __pycache__/ in workspace deploy pathfrontend/dist/, server/, config files uploadedIf ANY item is FAIL: Fix it BEFORE proceeding to write other code. Do NOT defer to "later".
GATE: Phase 4 → Phase 5
frontend/public/customer-logo.png exists (real logo, NOT hand-drawn), theme colors are brand-tinted (NOT generic), chat is floating overlay with suggestion chips, no workspace bloatLoad now: Use
databricks-synthetic-data-generationskill (loaded in Phase 0)
MANDATORY: Use the synthetic data generation skill from databricks-ai-dev-kit — NEVER write custom data generation code.
Skill skill="databricks-synthetic-data-generation"
Data Requirements:
Medallion Architecture (MANDATORY — All 3 Layers Required):
All demos MUST create Bronze, Silver, AND Gold tables. Silver tables are NOT optional — they are the cleansing/enrichment layer that makes the Architecture page's medallion diagram truthful.
| Layer | Purpose | Pattern |
|---|---|---|
| Bronze | Raw ingested data | Direct from source systems, minimal transformation |
| Silver | Cleansed & conformed | Joins across bronze tables, deduplication, type casting, enrichment with reference data, unified models (e.g., linear + digital delivery), variance flags |
| Gold | Business-level aggregates | KPIs, scores, summaries ready for dashboard consumption |
Silver table patterns (use as many as applicable):
silver_delivery_unified)Execution: Create Python script → Execute via run_python_file_on_databricks → Verify via SQL queries → Upload unstructured docs to UC volumes. NEVER ask user to run manually.
Load now: patterns-auth-lakebase.md, patterns-mas-chat.md
User email display is MANDATORY for ALL demos — with or without chat. Customers need to see that the app knows who they are. This is table-stakes for any enterprise demo.
- All apps: Display user email (bottom-left sidebar) +
/api/meendpoint- Apps with AI/chat: ALSO configure Lakebase for chat persistence (conversations + messages tables scoped to user)
Every Databricks App gets the user's identity from proxy headers for free. Use it.
Backend — /api/me endpoint:
@router.get("/me")
async def me(request: Request):
email = (request.headers.get("X-Forwarded-Email")
or request.headers.get("X-Forwarded-Preferred-Username")
or request.headers.get("X-Forwarded-User")
or "anonymous")
return {"email": email}
Frontend — call on mount, display bottom-left of sidebar:
useEffect(() => {
fetch('/api/me').then(r => r.json()).then(d => setUserEmail(d.email));
}, []);
// In sidebar, bottom-left:
<span className="text-xs text-muted">{userEmail}</span>
Why this matters: Customers see their own email in the app → "this is a real enterprise app with SSO, not a toy". It's the single easiest trust signal.
If the app has NO chat/AI feature, Phase 6 is DONE after this step. Mark Phase 6
completedand proceed to Phase 7. If the app HAS chat/AI: continue to Step 2 below.
create_or_update_lakebase_database(name="{demo_name}-chat", capacity=1)
Grant CAN_USE to users group on the database instance.
Via execute_sql (using the Lakebase connection):
CREATE TABLE IF NOT EXISTS conversations (
id TEXT PRIMARY KEY,
user_email TEXT NOT NULL,
title TEXT,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW()
);
CREATE TABLE IF NOT EXISTS messages (
id TEXT PRIMARY KEY,
conversation_id TEXT NOT NULL REFERENCES conversations(id) ON DELETE CASCADE,
role TEXT NOT NULL,
content TEXT NOT NULL,
route TEXT,
created_at TIMESTAMPTZ DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS idx_messages_conv ON messages(conversation_id, created_at);
CREATE INDEX IF NOT EXISTS idx_conversations_user ON conversations(user_email, updated_at DESC);
CRITICAL: user_email column is MANDATORY — conversations must be scoped to the logged-in user.
DO NOT use generate_database_credential() for Databricks Apps — the SP's token lacks Lakebase security labels. Instead, capture the USER's forwarded OAuth token from the Databricks Apps proxy:
# In app.py — middleware captures x-forwarded-access-token on every request
class LakebaseTokenMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request, call_next):
email = (request.headers.get("X-Forwarded-Email")
or request.headers.get("X-Forwarded-Preferred-Username"))
token = request.headers.get("x-forwarded-access-token")
if email and token:
pool.update_token(token) # ALWAYS update token FIRST (tokens expire hourly)
if not pool.available:
pool.capture_user_token(email, token)
await pool.init()
return await call_next(request)
CRITICAL:
update_token()MUST be called BEFORE checkingpool.available, not in an else branch. The old pattern (if not available: init; else: update_token) silently uses stale tokens — the pool stays "available" but all queries fail after ~1 hour when the OAuth token expires.
Create these endpoints — all scoped to the authenticated user:
GET /api/conversations — list conversations for current userPOST /api/conversations — create new conversationGET /api/conversations/{id}/messages — get messages for a conversationPOST /api/conversations/{id}/messages — save a messageDELETE /api/conversations/{id} — delete a conversationConversations MUST be filtered by user_email in all queries.
After deploying:
/api/health — verify pool_available: true/api/me — verify user email is returned (not "anonymous")messages tableSee patterns-auth-lakebase.md for full code patterns. See patterns-mas-chat.md for multi-chat isolation patterns (FloatingAssistant ref-based or full-page stateMap).
Load now: patterns-mas-chat.md, patterns-ui-frontend.md
Phase 7 has 4 mandatory sub-steps. Complete them IN ORDER and check each off before moving on.
Create Agent Bricks per the story plan (Phase 2). Use MCP tools (manage_ka, create_or_update_genie, manage_mas).
This step gets skipped most often. Dashboard creation is NOT optional — it's the Analyst persona's primary experience and proves the gold layer works end-to-end in native Databricks.
Create a Lakeview dashboard programmatically using the databricks-lakeview-dashboard skill:
{catalog}.{schema}.gold_*databricks api post /api/2.0/lakeview/dashboards with serialized_dashboard JSON stringdatabricks api post /api/2.0/lakeview/dashboards/{id}/publishedCheckpoint: Dashboard URL exists and all widgets show data. If not — fix before proceeding.
MAS Integration: MAS endpoints use {"input": messages}, NOT {"messages": messages}. Use async polling (NOT SSE — Databricks Apps proxy buffers streaming). Use ref-based multi-chat isolation (NOT AbortController). See patterns-mas-chat.md for complete code patterns.
Routing Animation (MANDATORY): Every chat loading state MUST show a stepper with: elapsed time counter, agent routing path with names (Supervisor → Genie Space, etc.), and dynamic status text. Users wait 10-30s+ — without this they assume the app is broken. See patterns-mas-chat.md Section 4.
Human-Readable Synthesis (MANDATORY): ALL chat responses — single agent or MAS — MUST be formatted, narrative summaries. Raw SQL tables, document excerpts, or JSON are NEVER acceptable. If a single agent can't produce readable output, either configure its instructions or wrap in MAS for synthesis. See patterns-mas-chat.md Section 5.
app.yaml resources grant SP access to serving endpoints and SQL warehouses only. Unity Catalog permissions require explicit SQL GRANTs. Without them, all SQL queries return empty results silently.
After databricks apps deploy:
databricks apps get {app-name} | jq -r '.service_principal.client_id'execute_sql:
GRANT USE CATALOG ON CATALOG {catalog} TO `{sp_client_id}`;
GRANT USE SCHEMA ON SCHEMA {catalog}.{schema} TO `{sp_client_id}`;
GRANT SELECT ON SCHEMA {catalog}.{schema} TO `{sp_client_id}`;
See patterns-auth-lakebase.md for full auth, Lakebase, and SP patterns.
GATE: Phase 7 → Phase 8 — ALL 4 sub-steps verified:
Load now: asset-bundle-guide.md
Every demo MUST be a Databricks Asset Bundle. See asset-bundle-guide.md for full structure, databricks.yml template, deployment workflow, and static asset handling.
Key requirements: Parameterize everything, include all resources, environment targets (dev/prod), README with deployment instructions, .gitignore that does NOT exclude images.
databricks bundle validate passesLoad now: validation-and-grading.md
CRITICAL: This is the phase that gets skipped and causes demo failures. Do NOT declare the demo complete until EVERY item below passes. Use Chrome DevTools MCP or the web-devloop-tester agent to test the live app. NEVER assume "it should work" — VERIFY.
SUCCEEDED and ACTIVE/api/health returns status: ok and pool_available: true/api/me returns the logged-in user's email (not "anonymous")Navigate to EVERY page/tab in the app and verify:
conversations table → rows exist with correct user_emailmessages table → user and assistant messages saved with correct conversation_idroute field populated for assistant messagesVerify demo provides value to 3+ personas:
completed.This phase treats the demo as a production prototype that a customer could deploy in their own environment. Every number, chart, KPI, and AI response MUST be traceable to the data we generated. Nothing fabricated. Nothing hardcoded. This phase CANNOT be skipped, abbreviated, or deferred.
Every demo that skipped this phase had the same failure mode: customer opens the app, clicks a different tab, sees a number that doesn't match the dashboard, asks "where does this come from?", and the AE has no answer. The demo loses credibility instantly. This phase prevents that.
For EVERY page in the app, systematically verify:
execute_sql against the same catalog/schema$102983K instead of $103.0M)Specific checks per component type:
| Component | What to Verify | How |
|---|---|---|
| KPI cards | Value matches SELECT SUM/COUNT/AVG on gold table | Run the exact query the backend uses |
| Bar/line/pie charts | Each bar/slice value matches grouped query | Run GROUP BY query, compare each category |
| Tables | Row count, column values, sort order | Run SELECT with same filters, compare first 5 rows |
| Percentages | Numerator and denominator are correct | Verify formula: delivered/booked * 100 etc. |
| Alert banners | Threshold logic matches data | Query the anomaly condition, verify it triggers |
| Chat responses | Numbers cited in AI responses match SQL | Ask the same question via Genie Space directly, compare |
Run these grep scans against the frontend source. Every match is a potential fabrication:
# Find hardcoded dollar amounts
grep -rn '\$[0-9]' frontend/src/ --include='*.tsx' --include='*.ts'
# Find hardcoded percentages
grep -rn '[0-9]\{2,\}%' frontend/src/ --include='*.tsx' --include='*.ts'
# Find hardcoded counts/numbers in JSX (not in CSS/styling)
grep -rn 'value={[0-9]' frontend/src/ --include='*.tsx'
# Find "Powered by" or attribution text
grep -rn -i 'powered by' frontend/src/ --include='*.tsx' --include='*.ts'
Acceptable hardcoded values: CSS sizes, animation durations, grid columns, array indices. Unacceptable: Any business metric, KPI, dollar amount, percentage, or count that should come from data.
For each unacceptable match: Replace with dynamic data from the API, or remove if it's a fallback that's no longer needed.
Hover over EVERY chart tooltip in the app and verify:
>= $1M → $X.XM, >= $1K → $XK, else $X94.1% not 94.1000% or 941,178 not 1178$102983000lib/format.ts, not per-page copies)For each chart/table component, temporarily break the data source (e.g., wrong endpoint) and verify:
$0 or $NaN or undefinedVerify the app's service principal has ALL required permissions. ANY model serving endpoint the app calls — whether it's an Agent Brick, a custom model, a provisioned throughput endpoint, or a pay-per-token Foundation Model — needs CAN_QUERY granted to the SP.
GRANT USE CATALOG, USE SCHEMA, SELECT on the demo schemaCAN_USE (via app.yaml resources or manual grant)CAN_CONNECT (via manual grant — app.yaml database resources are unreliable)CAN_RUN (via permissions API, object type: genie)For EVERY serving endpoint the app uses, grant CAN_QUERY:
| Endpoint Type | Example | Permission |
|---|---|---|
| MAS (Supervisor Agent) | versant-ad-sales-supervisor | CAN_QUERY on serving-endpoints |
| KA (Knowledge Assistant) | versant-ka-ad-sales-policies | CAN_QUERY on serving-endpoints |
| Foundation Model (pay-per-token) | databricks-claude-sonnet-4-5 | CAN_QUERY on serving-endpoints |
| Provisioned Throughput | my-llama-3-pt | CAN_QUERY on serving-endpoints |
| Custom Model Serving | fraud-classifier-endpoint | CAN_QUERY on serving-endpoints |
| External Model (e.g., OpenAI via gateway) | openai-gpt4-gateway | CAN_QUERY on serving-endpoints |
# Grant CAN_QUERY for each endpoint — repeat for EVERY endpoint the app calls
curl -X PUT "https://{host}/api/2.0/permissions/serving-endpoints/{endpoint_name}" \
-H "Authorization: Bearer {token}" \
-d '{"access_control_list": [{"service_principal_name": "{sp_client_id}", "permission_level": "CAN_QUERY"}]}'
How to find all endpoints the app uses: grep -rn 'SERVING_ENDPOINT\|endpoint' app.yaml server/ — list every endpoint name referenced in env vars and code.
Test: Send a chat message that exercises BOTH KA and Genie agents. If either returns "data warehouse connection temporarily unavailable" or empty results, SP permissions are incomplete. Also test any direct Foundation Model calls (e.g., summarization, classification endpoints).
Send at least 3 different questions across different agent types and verify:
**asterisks**, no quotes, no "Suggested follow-up:" prefix)If any response lacks a chip: Check backend _extract_followups() — the system message may not be reaching the agent, or the extraction regex isn't matching the agent's format.
After completing Steps 1-6, compile a report:
## Data Grounding Report
### Verified (PASS)
- Dashboard KPI: Q2 Booked Revenue = $173.4M ✓ (matches SELECT SUM(booked_amount) FROM gold_deals)
- ...
### Mismatches Found (FAIL)
1. [Page] [Component]: Shows [X], SQL returns [Y]
- Root cause: [explanation]
- Proposed fix: [what you'll change]
2. ...
### Hardcoded Values Found
1. [File:Line]: [value] — [acceptable/needs fix]
2. ...
STOP and present this report to the user. Do NOT fix anything until the user reviews and approves the proposed fixes. The user may have context about why a value differs or may want a different fix.
After user approval:
npm run build)After ALL mismatches are fixed and re-verified, present the handover:
## Demo Complete — Handover Summary
### App
- URL: https://{app-name}-{id}.aws.databricksapps.com/
- Status: ACTIVE, all pages verified
### Data
- Catalog: {catalog}
- Schema: {catalog}.{schema}
- Tables: bronze_* (X tables), silver_* (Y tables), gold_* (Z tables)
- Row counts: [list key tables with counts]
### Agent Bricks
- Knowledge Assistant: {name} (tile_id: {id}, endpoint: ONLINE)
- Genie Space: {name} (space_id: {id})
- Multi-Agent Supervisor: {name} (tile_id: {id}, endpoint: ONLINE)
### Dashboard
- Lakeview Dashboard: {name}
- URL: https://{workspace}/sql/dashboards/{id}
- Published: Yes
### Lakebase
- Instance: {name}
- Tables: conversations, messages
- Chat persistence: Verified
### Asset Bundle
- Path: {local path}
- Status: `databricks bundle validate` passes
All data is grounded. No hardcoded values. Ready for customer handover.
This is the ONLY acceptable way to end a demo build. Never say "done" without this summary.
After ALL Phase 9 and Phase 10 checks pass, run the quality grade from validation-and-grading.md.
Grading inputs (use results from Phase 9 + Phase 10):
Present the grade to the user as part of the handover summary:
## Demo Quality Grade: [A/B/C/F]
### Phase 9 Results
- App health: PASS/FAIL
- All tabs working: X/Y passed
- Chat functionality: X/Y passed
- Edge cases: X/Y passed
### Phase 10 Results
- Data grounding: X mismatches found, Y fixed
- Hardcoded value scan: X found, Y acceptable
- Formatting consistency: PASS/FAIL
- SP permissions: PASS/FAIL
- Follow-up chips: PASS/FAIL
### Overall: Grade [A] — [Production-ready / Needs rework / ...]
Demo MUST be Grade A to be considered complete. If Grade B or below, fix all issues and re-grade before handover.
completed. Present handover summary (Step 9) with grade (Step 10) to user. Demo is NOT complete until grade is presented and is Grade A.| Anti-Pattern | Fix |
|---|---|
| Loading skills but not MCP tools | Load MCP tools FIRST via ToolSearch, then skills |
| Using other tools before AI Dev Kit | AI Dev Kit is PRIMARY, everything else is FALLBACK |
| Drifting to CLI in long sessions | Check MCP tool table in Phase 0 BEFORE every Bash databricks command |
| Asking user to run data generation manually | Use databricks-synthetic-data-generation skill + MCP tools |
| Asking user to manually set up Agent Bricks | Create programmatically via MCP tools |
| Skipping workspace confirmation in Phase 0 | ALWAYS confirm target workspace before any work |
| Deploying without SP permissions on UC tables | app.yaml only covers endpoints/warehouses — UC needs explicit GRANTs |
| Using SSE for agent chat | Databricks Apps proxy buffers streaming — use async polling |
| Using AbortController to cancel MAS polls | Kills in-flight request — use ref-based multi-chat isolation (FloatingAssistant pattern) |
| Excluding images from deployment | NEVER exclude *.png/*.jpg/*.svg from sync or .gitignore |
| Declaring done without testing every tab | Phase 9 checklist is MANDATORY — test every page, every feature, every edge case |
| Skipping Lakebase / chat persistence | Phase 6 is NEVER optional for chat apps — user email, persistence, CRUD all required |
Using generate_database_credential() in Apps | SP tokens lack security labels — use user's forwarded OAuth token from proxy |
| Building multi-chat incrementally | Use FloatingAssistant template as-is (ref-based isolation) or full stateMap from patterns-mas-chat.md for full-page chat |
| Skipping Pre-Code Compliance Checklist | ALWAYS run the checklist in Phase 4 before writing ANY code — even for "quick" revamps or gap-fills |
| Coding chat/UI from memory instead of reading templates | Read templates/app/frontend/src/components/FloatingAssistant.tsx and reference files EVERY TIME — patterns drift in memory |
| Treating "revamp" as informal gap-fill | Revamps follow the same Phase 4 flow: read references → run compliance checklist → present gap analysis → fix all gaps |
| Uploading node_modules/.venv to workspace | Check workspace for bloat BEFORE deploying: databricks workspace list and delete any node_modules, .venv, src directories |
| Skipping silver tables (bronze → gold only) | All 3 medallion layers are MANDATORY. Silver tables demonstrate real transformations (joins, enrichment, unified models) — without them the Architecture page is misleading |
| App resources not attached after deploy | create_or_update_app MCP tool lacks resources param, and apps deploy may not apply app.yaml resources. ALWAYS verify with get_app() — if resources: [], patch via databricks api patch /api/2.0/apps/{name} with resources JSON, then redeploy |
| Skipping Lakeview Dashboard in Phase 7 | Dashboard is the Analyst persona's primary deliverable and proves gold layer works in native Databricks. Phase 7 has 4 sub-steps — Agent Bricks, Dashboard, App Deploy, SP Permissions — complete ALL in order. Dashboard is the most commonly skipped. |
| Skipping Phase 10 data grounding | EVERY number in the app must trace to a SQL query. Phase 10 is MANDATORY — present mismatch report, get approval, fix, then handover summary with all asset links |
Tooltip shows $102983K instead of $103.0M | MANDATORY: Use tiered formatter (>= 1M → $X.XM, >= 1K → $XK) in a shared lib/format.ts — never per-page copies |
| SQL alias doesn't match frontend field name | Charts silently show $0. ALWAYS use fallback: Number(p.booked || p.booked_revenue || 0). Verify aliases match after writing SQL |
| Follow-up shows both inline AND as chip | Backend MUST strip "Suggested follow-up:" section from response text when chips are extracted. Never show same text twice |
| Some responses have no follow-up chip | Inject system message into MAS call: "Always end with Suggested follow-up:". Extract with 4 strategies. If extraction fails, check agent response format |
| Follow-up chip looks like user message | Chip MUST be visually distinct: transparent bg, border, italic, arrow prefix (→), "Suggested follow-up" label. NEVER solid primary bg like user bubbles |
| "Powered by..." visible in customer demo | NEVER include attribution text. grep -rn 'powered by|Powered by' frontend/src/ and remove ALL matches |
| SP can't query KA endpoint or Genie Space | Grant CAN_QUERY on EVERY serving-endpoint the app calls (MAS, KA, Foundation Models, provisioned throughput, custom endpoints) AND CAN_RUN on genie (object type: genie, NOT genie-spaces) after first deploy |
| Charts render empty with axis labels but no bars | MANDATORY: Every chart/table MUST have a "No data available" fallback. Check data.length === 0 before rendering |
| # | Gotcha | Solution |
|---|---|---|
| 1 | server_settings in asyncpg silently breaks pool | Set search_path per-connection |
| 2 | DATABRICKS_HOST has no https:// in Apps | Always add https:// prefix |
| 3 | w.config.token returns None for OAuth | Use w.config.authenticate() |
| 4 | MAS uses {"input": msgs} not {"messages": msgs} | Check endpoint type |
| 5 | SSE streaming fails through Apps proxy | Use async polling instead |
| 6 | Deploy fails with "pending deployment" | Wait ~20 min cooldown |
| 7 | App SP has no UC table permissions | GRANT USE CATALOG, USE SCHEMA, SELECT after first deploy |
| 8 | Token expires after 1 hour (Lakebase) | User-token middleware (Phase 6 Step 4) refreshes on every request; for non-Apps deployments use background refresh loop (50 min) |
| 9 | requirements.txt with uv markers fails | Clean format: package>=version |
| 10 | Frontend images excluded from deploy | Never exclude *.png/*.jpg/*.svg |
| 11 | generate_database_credential() fails for SP in Apps | SP lacks security labels — use user's forwarded token via middleware |
| 12 | app.yaml database resource type not processed | Framework only picks up serving_endpoint — grant Lakebase perms manually |
| 13 | Conversations not persisting after page refresh | Lakebase tables not created, or middleware not capturing user token |
| 14 | User email shows "anonymous" | Proxy headers not being read — check X-Forwarded-Email in middleware |
| 15 | Multi-chat: messages/animation lost on switch | Using global React state instead of ref-based isolation — use FloatingAssistant template pattern (pendingConvsRef, completedResponsesRef) |
| 16 | node_modules uploaded to workspace (deploy hangs) | NEVER import-dir the full project — upload only dist/, server/, config files |
| 17 | App resources (warehouse, endpoint, Lakebase) not attached | create_or_update_app MCP tool has no resources parameter, and databricks apps deploy may not apply app.yaml resources. After deploy, check get_app() or databricks apps get {name} — if "resources": [], patch via CLI: databricks api patch /api/2.0/apps/{name} --json '{"resources": [...]}', then redeploy. This is a known AI Dev Kit gap. |
| 18 | Silver tables missing from medallion | Data gen jumps bronze→gold because gold powers the app. But Architecture page shows 3-layer diagram. ALWAYS create silver tables with real transformations (joins, enrichment, unified models, variance flags) |
| 19 | Recharts tooltip shows $102983K | Use tiered formatter in shared lib/format.ts: >= 1M → $X.XM, >= 1K → $XK. Apply to ALL pages via shared CustomTooltip component |
| 20 | SQL alias doesn't match frontend field name | Charts silently show $0. Use fallback: Number(p.booked || p.booked_revenue || 0). After writing SQL, verify column aliases match frontend destructuring |
| 21 | Follow-up shows both inline AND as chip | Backend _extract_followups() extracts chip, but text remains in response. MUST call _strip_followup_section() to remove "Suggested follow-up:" block from response before returning |
| 22 | Some MAS responses have no follow-up chip | Inject system message: "Always end with Suggested follow-up: [question]". Extract with 4 strategies: (1) explicit block, (2) trailing numbered lines, (3) last question sentence, (4) "Would you like..." patterns |
| 23 | Follow-up chip looks identical to user message | Style distinctly: transparent bg, subtle border, italic, arrow prefix (→), "Suggested follow-up" label above. NEVER use solid primary bg |
| 24 | "Powered by X" visible in customer demo | grep -rn 'powered by' frontend/src/ — remove ALL matches. Customer demos must feel like the customer's own product |
| 25 | SP has no permissions on serving endpoints or Genie Space | After first deploy, grant CAN_QUERY on EVERY serving-endpoint the app calls — KA, MAS, Foundation Models (databricks-claude-sonnet-4-5 etc.), provisioned throughput, custom endpoints — AND CAN_RUN on genie spaces. Object type is genie (NOT genie-spaces). Use grep -rn 'endpoint' app.yaml server/ to find all endpoint names |
| 26 | Charts render empty with orphaned axis labels | Every chart/table MUST check data.length === 0 and show "No data available" placeholder instead of rendering empty SVG |
| 27 | Permissions API format error | Use flat permission_level format, NOT all_permissions array. Example: {"access_control_list": [{"service_principal_name": "...", "permission_level": "CAN_QUERY"}]} |
User says: "Build a demo for Walmart around supply chain optimization"
Result: Research Walmart → Present story plan with supply chain narrative, KPIs, timeline → Wait for approval → Generate deterministic supply chain data → Create KA for policy docs + Genie for SQL + MAS to orchestrate → Build app with Executive/Analyst/Technical layers → Configure Lakebase → Package as Asset Bundle
User says: "Create a POC for JPMorgan Chase on fraud detection"
Result: Research JPMorgan → Present fraud detection story with metrics → Get approval → Generate synthetic transaction data → Create Agent Bricks for fraud reports + transaction queries → Build app with fraud dashboard + AI insights → Deploy via Asset Bundle
references/agent-bricks-decision-tree.md (opens in a new tab)references/app-design-checklist.md (opens in a new tab)references/app-design-philosophy.md (opens in a new tab)references/asset-bundle-guide.md (opens in a new tab)references/brand-extraction.md (opens in a new tab)references/patterns-auth-lakebase.md (opens in a new tab)references/patterns-mas-chat.md (opens in a new tab)references/patterns-ui-frontend.md (opens in a new tab)references/quick-reference.md (opens in a new tab)references/story-template.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/validation-and-grading.md (opens in a new tab)templates/README.md (opens in a new tab)templates/STORY.md (opens in a new tab)templates/app/CUSTOMIZE.md (opens in a new tab)templates/app/app.py (opens in a new tab)templates/app/app.yaml (opens in a new tab)templates/app/examples/fintech/values.json (opens in a new tab)templates/app/examples/healthcare/values.json (opens in a new tab)templates/app/examples/retail/values.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sarah-hord-db/vibe --plugin one-shot-demo