Skip to content

Commit 5bc4642

Browse files
keugenekclaude
andcommitted
Remove duplicated AppKit workflow from target_apps.tmpl
AppKit-specific guidance now lives in skills/apps/appkit/. target_apps.tmpl focuses on validation, deployment, and operational commands only. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3e5581c commit 5bc4642

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

experimental/aitools/lib/prompts/target_apps.tmpl

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,12 @@
22
* L2: Target-specific guidance for Databricks Apps.
33
*
44
* Injected when: target type "apps" is detected or after init-template.
5-
* Contains: app naming constraints, validation, deployment consent.
5+
* Contains: validation, deployment consent, operational commands.
6+
* AppKit-specific guidance is in skills/apps/appkit/ - load via read_skill_file.
67
*/ -}}
78

89
## Databricks Apps Development
910

10-
### CRITICAL: AppKit TypeScript Workflow (for TypeScript/AppKit apps)
11-
12-
After scaffolding an AppKit app, follow this workflow for EVERY query you add:
13-
14-
1. Create SQL file: `config/queries/my_query.sql`
15-
2. Add schema: `config/queries/schema.ts` → add entry to `querySchemas`
16-
3. **RUN: `npm run typegen`** - REQUIRED to regenerate types
17-
4. Use data in components:
18-
```typescript
19-
const { data } = useAnalyticsQuery('my_query', {});
20-
data?.map(...) // TypeScript infers types from schema
21-
```
22-
23-
⚠️ **Common build failures (avoid these):**
24-
- Skipping `npm run typegen` after schema changes → "not assignable to type" errors
25-
- Using `<BarChart queryKey="..."><Bar.../></BarChart>` → charts DON'T accept children
26-
2711
### Validation
2812
⚠️ Always validate before deploying:
2913
invoke_databricks_cli 'experimental aitools tools validate ./'

0 commit comments

Comments
 (0)