Skip to content

Commit db358e7

Browse files
authored
updated install to Genie Code steps (#357)
changed script name from assistant to Genie Code. Updated script logic to install skills to ensure they are available before uploading to workspace. Updated main README with description and install instructions
1 parent f5c3592 commit db358e7

2 files changed

Lines changed: 35 additions & 14 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ AI-Driven Development (vibe coding) on Databricks just got a whole lot better. T
3939
| [**Visual Builder App**](#visual-builder-app) | Web-based UI for Databricks development | `databricks-builder-app/` |
4040
| [**Core Library**](#core-library) | Building custom integrations (LangChain, OpenAI, etc.) | `pip install` |
4141
| [**Skills Only**](databricks-skills/) | Provide Databricks patterns and best practices (without MCP functions) | Install skills |
42+
| [**Genie Code Skills**](databricks-skills/install_skills_to_genie_code.sh) | Install Databricks skills for Genie Code to reference | [Genie Code skills (install)](#genie-code-skills) |
4243
| [**MCP Tools Only**](databricks-mcp-server/) | Just executable actions (no guidance) | Register MCP server |
4344
---
4445

@@ -157,6 +158,29 @@ results = execute_sql("SELECT * FROM my_catalog.schema.table LIMIT 10")
157158
Works with LangChain, OpenAI Agents SDK, or any Python framework. See [databricks-tools-core/](databricks-tools-core/) for details.
158159

159160
---
161+
## Genie Code Skills
162+
163+
Will install and deploy all available skills to your personal skills directory for all Genie Code sessions to reference while planning/building anything directly in the UI. No post-install steps as workspace is automatically configured during install process for Genie Code to use the skills.
164+
165+
**Basic installation** (uses DEFAULT profile)
166+
167+
```bash
168+
cd ai-dev-kit/databricks-skills
169+
./install_skills_to_genie_code.sh
170+
```
171+
172+
**Advance installation** (uses provided profile)
173+
174+
```bash
175+
cd ai-dev-kit/databricks-skills
176+
./install_skills_to_genie_code <profile_name>
177+
```
178+
179+
**Skill modification or Custom Skill**
180+
181+
After the script successfully installs the skills to your workspace, you may find the skills under `/Workspace/Users/<your_user_name>/.assistant/skills`.
182+
183+
This directory is customizable if you wish to only use certain skills or even create custom skills that are related to your organization to make Genie Code even better. You can modify/remove existing skills or create new skills folders that Genie Code will automatically use in any session.
160184

161185
## What's Included
162186

databricks-skills/install_to_dbx_assistant.sh renamed to databricks-skills/install_skills_to_genie_code.sh

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,17 @@ echo "================================================"
1919
echo "Profile: $PROFILE"
2020
echo ""
2121

22-
# Check if local skills are installed
23-
if [ ! -d "$LOCAL_SKILLS_DIR" ] || [ -z "$(ls -A "$LOCAL_SKILLS_DIR" 2>/dev/null)" ]; then
24-
echo "Error: Local skills not found at $LOCAL_SKILLS_DIR"
25-
echo ""
26-
echo "Please run ./install_skills.sh first to install skills locally."
27-
echo "This will install both Databricks and MLflow skills."
28-
echo ""
29-
echo "Example:"
30-
echo " cd databricks-skills"
31-
echo " ./install_skills.sh"
32-
echo " ./install_to_dbx_assistant.sh $PROFILE"
33-
exit 1
22+
# Install all skills (databricks + MLflow + APX) via install_skills.sh
23+
echo " Installing all skills via install_skills.sh..."
24+
INSTALL_SKILLS_SCRIPT="$PROJECT_ROOT/databricks-skills/install_skills.sh"
25+
if [ ! -f "$INSTALL_SKILLS_SCRIPT" ]; then
26+
echo -e "${RED}Error: install_skills.sh not found at ${INSTALL_SKILLS_SCRIPT}${NC}"
27+
exit 1
3428
fi
3529

30+
# Run install_skills.sh to download all skills (databricks, MLflow, APX)
31+
(bash "$INSTALL_SKILLS_SCRIPT")
32+
3633
# Get current user email
3734
USER_EMAIL=$(databricks current-user me --profile "$PROFILE" --output json 2>/dev/null | python3 -c "import sys, json; d=json.load(sys.stdin); print(d.get('userName', ''))" 2>/dev/null || echo "")
3835
if [ -z "$USER_EMAIL" ]; then
@@ -113,8 +110,8 @@ skills_count=$(find "$LOCAL_SKILLS_DIR" -maxdepth 1 -type d -exec test -f {}/SKI
113110
echo " $skills_count skills deployed to: $SKILLS_PATH"
114111
echo ""
115112
echo "To use:"
116-
echo " 1. Open a Databricks notebook"
117-
echo " 2. Open the Assistant panel"
113+
echo " 1. Open a Databricks notebook/sql query/anywhere in the workspace"
114+
echo " 2. Open the Genie Code panel"
118115
echo " 3. Switch to 'Agent' mode"
119116
echo " 4. Ask: 'Create a dashboard for my sales data'"
120117
echo ""

0 commit comments

Comments
 (0)