/major-ai-skills:sparkfrom major-ai-skills
Build Spark DataFrame and SQL jobs, tune partitions and shuffle behavior, and diagnose local or cluster execution failures.
Ships in major-ai-skills. 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.
None: SKILL.md is the whole skill.
Spark distributes DataFrame/Dataset work across executors. Transformations build a lineage; actions (count, write) trigger jobs split into stages at shuffle boundaries. Agents design partition keys, avoid wide shuffles, cache only reused hot datasets, and read Spark UI / explain plans before throwing more cores at a bad query.
Driver (SparkSession)
-> jobs / stages / tasks
-> executors (partitions)
-> shuffle / reduce
-> sink (Parquet, table)
repartition(200) blindly.collect() to the driver as a bug on large results.from pyspark.sql import SparkSession, functions as F
spark = SparkSession.builder.appName("orders-mart").getOrCreate()
orders = spark.read.parquet("s3a://lake/orders/")
daily = (
orders
.where(F.col("created_at") >= "2025-01-01")
.groupBy(F.to_date("created_at").alias("day"), "customer_id")
.agg(F.sum("amount").alias("revenue"), F.count("*").alias("orders"))
)
daily.write.mode("overwrite").parquet("s3a://lake/marts/daily_revenue/")
daily.explain(extended=True)
# Spark UI: Stages -> look for long-tail tasks / spill
| Symptom | Cause | Fix |
|---|---|---|
| Shuffle spill | uneven keys / wide join | salt keys; broadcast small side |
| Driver OOM | .collect / huge broadcast | write out; sample |
| Tiny files | too many partitions on write | coalesce / maxRecordsPerFile |
| Slow job | UDF per row | built-in functions / Pandas UDFs carefully |
cache) only multi-action reuse; then unpersist.dt=YYYY-MM-DD).@duckdb / @polars - single-node alternatives@airflow / @prefect - schedule Spark jobs@dbt - SQL models on Spark/Databricks SQL warehousesWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job