Claude-skill-registry agent-bricks
Create and manage Databricks Agent Bricks: Knowledge Assistants (KA) for document Q&A, Genie Spaces for SQL exploration, and Multi-Agent Supervisors (MAS) for multi-agent orchestration. Use when building conversational AI applications on Databricks.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/agent-bricks" ~/.claude/skills/majiayu000-claude-skill-registry-agent-bricks && rm -rf "$T"
skills/data/agent-bricks/SKILL.mdAgent Bricks
Create and manage Databricks Agent Bricks - pre-built AI components for building conversational applications.
Overview
Agent Bricks are three types of pre-built AI tiles in Databricks:
| Brick | Purpose | Data Source |
|---|---|---|
| Knowledge Assistant (KA) | Document-based Q&A using RAG | PDF/text files in Volumes |
| Genie Space | Natural language to SQL | Unity Catalog tables |
| Multi-Agent Supervisor (MAS) | Multi-agent orchestration | Model serving endpoints |
Prerequisites
Before creating Agent Bricks, ensure you have the required data:
For Knowledge Assistants
- Documents in a Volume: PDF, text, or other files stored in a Unity Catalog volume
- Generate synthetic documents using the
skill if neededunstructured-pdf-generation
For Genie Spaces
- Tables in Unity Catalog: Bronze/silver/gold tables with the data to explore
- Generate raw data using the
skillsynthetic-data-generation - Create tables using the
skillspark-declarative-pipelines
For Multi-Agent Supervisors
- Model Serving Endpoints: Deployed agent endpoints to orchestrate
- These could be custom agents, fine-tuned models, or other deployed services
MCP Tools
Knowledge Assistant Tools
create_or_update_ka - Create or update a Knowledge Assistant
: Name for the KAname
: Path to documents (e.g.,volume_path
)/Volumes/catalog/schema/volume/folder
: (optional) What the KA doesdescription
: (optional) How the KA should answerinstructions
: (optional) Existing tile_id to updatetile_id
: (optional, default: true) Auto-add examples from JSON filesadd_examples_from_volume
get_ka - Get Knowledge Assistant details
: The KA tile IDtile_id
delete_ka - Delete a Knowledge Assistant
: The KA tile ID to deletetile_id
Genie Space Tools
IMPORTANT: Before creating a Genie Space, you MUST first inspect the table schemas using
get_table_details to understand the data. This allows you to:
- Select the most relevant tables for the use case
- Write sample questions that reference actual column names and data patterns
- Create a description that accurately explains the data model
Genie Space Creation Workflow:
- Call
to fetch table schemasget_table_details(catalog, schema) - Analyze the columns, data types, and relationships
- Select tables appropriate for the user's use case (prefer silver/gold over bronze)
- Generate 5-10 sample questions based on actual columns and business context
- Write a description explaining what users can explore
- Call
with the prepared contentcreate_or_update_genie
create_or_update_genie - Create or update a Genie Space for SQL exploration
: Display name for the spacedisplay_name
: List of tables (e.g.,table_identifiers
)["catalog.schema.table1", "catalog.schema.table2"]
: (optional) SQL warehouse ID (auto-detects if not provided)warehouse_id
: (optional) What the space does - explain the data model and relationshipsdescription
: (optional) List of sample questions that reference actual columnssample_questions
: (optional) Existing space_id to updatespace_id
get_genie - Get Genie Space details
: The Genie space IDspace_id
delete_genie - Delete a Genie Space
: The Genie space ID to deletespace_id
Multi-Agent Supervisor Tools
create_or_update_mas - Create or update a Multi-Agent Supervisor
: Name for the MASname
: List of agent configurations:agents
: Agent namename
: Model serving endpoint nameendpoint_name
: What this agent handles (used for routing)description
: (optional) What the MAS doesdescription
: (optional) Routing instructionsinstructions
: (optional) Existing tile_id to updatetile_id
: (optional) List of example questions withexamples
andquestion
fieldsguideline
get_mas - Get Multi-Agent Supervisor details
: The MAS tile IDtile_id
delete_mas - Delete a Multi-Agent Supervisor
: The MAS tile ID to deletetile_id
Typical Workflow
1. Generate Source Data
Before creating Agent Bricks, generate the required source data:
For KA (document Q&A):
1. Use `unstructured-pdf-generation` skill to generate PDFs 2. PDFs are saved to a Volume with companion JSON files (question/guideline pairs)
For Genie (SQL exploration):
1. Use `synthetic-data-generation` skill to create raw parquet data 2. Use `spark-declarative-pipelines` skill to create bronze/silver/gold tables
2. Create the Agent Brick
Use the appropriate
create_or_update_* tool with your data sources.
3. Wait for Provisioning
Newly created KA and MAS tiles need time to provision. The endpoint status will progress:
- Being created (can take 2-5 minutes)PROVISIONING
- Ready to useONLINE
- Not runningOFFLINE
4. Add Examples (Automatic)
For KA, if
add_examples_from_volume=true, examples are automatically extracted from JSON files in the volume and added once the endpoint is ONLINE.
Best Practices
- Use meaningful names: Names are sanitized automatically (spaces become underscores)
- Provide descriptions: Helps users understand what the brick does
- Add instructions: Guide the AI's behavior and tone
- Include sample questions: Shows users how to interact with the brick
- Use the workflow: Generate data first, then create the brick
See Also
- Detailed KA patterns and examples1-knowledge-assistants.md
- Detailed Genie patterns and examples2-genie-spaces.md
- Detailed MAS patterns and examples3-multi-agent-supervisors.md