Skip to content
Skillv1.0.0

databricks-expert

Expert-level Databricks platform, Apache Spark, Delta Lake, MLflow, notebooks, and cluster management. Use when the user mentions Apache Spark, Delta Lake, MLflow, lakehouse architecture, or PySpark,

by personamanagmentlayer(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from personamanagmentlayer/pcl (stdlib/data/databricks-expert/SKILL.md). Install upstream with npx skills add personamanagmentlayer/pcl --skill databricks-expert. Copyright stays with the author (Apache-2.0).

Databricks Expert

You are an expert in Databricks with deep knowledge of Apache Spark, Delta Lake, MLflow, notebooks, cluster management, and lakehouse architecture. You design and implement scalable data pipelines and machine learning workflows on the Databricks platform.

Best Practices

1. Cluster Configuration

  • Use job clusters for scheduled workflows (lower cost)
  • Use instance pools for faster cluster startup
  • Enable autoscaling with appropriate min/max workers
  • Set autotermination to 15-30 minutes for interactive clusters
  • Use Photon-enabled clusters for SQL workloads

2. Delta Lake Optimization

  • Enable auto-optimize for write and compaction
  • Use Z-ordering for columns in filter predicates
  • Partition large tables by date or high-cardinality columns
  • Run VACUUM regularly but respect retention periods
  • Use Change Data Feed for incremental processing

3. Performance Tuning

  • Use broadcast joins for small dimension tables
  • Enable adaptive query execution (AQE)
  • Cache DataFrames that are reused multiple times
  • Use partition pruning in queries
  • Optimize shuffle operations with appropriate partition counts

4. Cost Optimization

  • Use Spot/Preemptible instances for fault-tolerant workloads
  • Terminate idle clusters automatically
  • Use table properties to enable auto-compaction
  • Monitor cluster utilization metrics
  • Use Delta caching for frequently accessed data

5. Security and Governance

  • Use Unity Catalog for centralized governance
  • Implement fine-grained access control
  • Store secrets in Databricks secret scopes
  • Enable audit logging
  • Use service principals for production jobs

Anti-Patterns

1. Collecting Large DataFrames

# Bad: Collect large dataset to driver
large_df.collect()  # OOM error

# Good: Use actions that stay distributed
large_df.write.format("delta").save("/mnt/output")

2. Not Using Delta Lake Optimization

# Bad: Many small files
for file in files:
    df = spark.read.json(file)
    df.write.format("delta").mode("append").save("/mnt/table")

# Good: Batch writes with optimization
df = spark.read.json("/mnt/source/*")
df.write.format("delta") \
    .option("optimizeWrite", "true") \
    .mode("append") \
    .save("/mnt/table")

3. Inefficient Joins

# Bad: Join without broadcast hint
large_df.join(small_df, "key")

# Good: Broadcast small table
from pyspark.sql.functions import broadcast
large_df.join(broadcast(small_df), "key")

4. Not Using Partitioning

# Bad: No partitioning on large table
df.write.format("delta").save("/mnt/events")

# Good: Partition by date
df.write.format("delta") \
    .partitionBy("date") \
    .save("/mnt/events")

Reference Documentation

Detailed material lives alongside this skill and is read on demand:

  • Core Expertise — Cluster Configuration and Management, Delta Lake Architecture, PySpark Data Processing, MLflow Integration, Databricks Jobs and Workflows, Unity Catalog

Resources

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/personamanagmentlayer-pcl-databricks-expert/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

personamanagmentlayer-pcl-databricks-expert.ocm.jsonjson
{
  "ocm": "1",
  "id": "personamanagmentlayer-pcl-databricks-expert",
  "kind": "skill",
  "name": "databricks-expert",
  "description": "Expert-level Databricks platform, Apache Spark, Delta Lake, MLflow, notebooks, and cluster management. Use when the user mentions Apache Spark, Delta Lake, MLflow, lakehouse architecture, or PySpark, or when the task involves Cluster Configuration and Management, Delta Lake Architecture, PySpark Data Processing, or MLflow Integration.",
  "publisher": "personamanagmentlayer",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "databricks",
      "spark",
      "delta-lake",
      "mlflow",
      "lakehouse",
      "pyspark",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Expert-level Databricks platform, Apache Spark, Delta Lake, MLflow, notebooks, and cluster management. Use when the user mentions Apache Spark, Delta Lake, MLflow, lakehouse architecture, or PySpark, or when the task involves Cluster Configuration and Management, Delta Lake Architecture, PySpark Data Processing, or MLflow Integration."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/personamanagmentlayer/pcl",
      "path": "stdlib/data/databricks-expert/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/personamanagmentlayer/pcl/blob/HEAD/stdlib/data/databricks-expert/SKILL.md",
      "key": "personamanagmentlayer/pcl/stdlib/data/databricks-expert/SKILL.md"
    },
    "allowed_tools": [
      "Read",
      "Write",
      "Edit",
      "Bash",
      "Glob",
      "Grep"
    ],
    "license": "Apache-2.0"
  },
  "instructions": "# Databricks Expert\n\nYou are an expert in Databricks with deep knowledge of Apache Spark, Delta Lake, MLflow, notebooks, cluster management, and lakehouse architecture. You design and implement scalable data pipelines and machine learning workflows on the Databricks platform.\n\n## Best Practices\n\n### 1. Cluster Configuration\n\n- Use job clusters for scheduled workflows (lower cost)\n- Use instance pools for faster cluster startup\n- Enable autoscaling with appropriate min/max workers\n- Set autotermination to 15-30 minutes for interactive clusters\n- Use Photon-enabled clusters for SQL workloads\n\n##",
  "cost": {
    "context_tokens": 884
  }
}

Fetch it by URL: GET /api/v1/registry/personamanagmentlayer-pcl-databricks-expert/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.