spark-and-distributed-processing

spark-and-distributed-processing is a skill for Claude Code, Codex from vaquarkhan/data-engineering-agent-skills. It costs 38 tokens per session (652 once invoked), scanned A, original, MIT.

Guidance for processing large datasets with Apache Spark, a system that splits data work across multiple machines. It covers managed Spark services such as AWS Glue and Amazon EMR, along with partitioning, joins, and storage layout.

In plain words
What is it for?
It is for building or reviewing Spark batch pipelines, choosing between Spark, Glue, EMR, and smaller tools, and diagnosing skew, shuffle, memory, or partition problems.
Why use it?
Large jobs can become slow, expensive, or fail when data is divided poorly or joins create too much network and memory work. This helps decide when distributed processing is needed and how to structure it safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for building or reviewing Spark batch pipelines, choosing between Spark, Glue, EMR, and smaller tools, and diagnosing skew, shuffle, memory, or partition problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vaquarkhan/data-engineering-agent-skills --skill spark-and-distributed-processing
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spark-and-distributed-processing

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing/github.svg)](https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spark-and-distributed-processing

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/spark-and-distributed-processing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00652
Opus 5 $0.00019 $0.00326
Sonnet 5 $0.00008 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 9d ago against content hash 459223114e01, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spark-and-distributed-processing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (anti-patterns/collect_on_driver.py, checks/partition_skew.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/spark-and-distributed-processing/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spark And Distributed Processing

Overview

Use this skill for batch workloads that exceed single-node processing and need distributed execution discipline. It helps agents reason about Spark, managed Spark services such as Glue and EMR, partitioning, joins, storage layout, and failure-safe processing.

When to Use

  • building or changing Spark jobs
  • choosing between Spark, Glue, EMR, or smaller engines
  • debugging expensive joins, skew, shuffle, or memory issues
  • designing batch pipelines over large files or partitioned tables
  • implementing transformations against lakehouse tables such as Iceberg, Delta, or Hudi

Do not use this for lightweight local transforms that fit comfortably in a single process.

Workflow

  1. Confirm distributed execution is actually required. Check:

    • input volume
    • latency expectations
    • transformation complexity
    • file sizes and partition counts
    • cost compared with simpler engines
  2. Choose the runtime intentionally.

    • Spark: direct control and broad ecosystem support
    • Glue: managed AWS-native Spark execution
    • EMR: broader cluster control for Spark and related engines
    • short-lived or serverless Spark (Lambda, serverless Glue, hard timeout ceilings): load spark-serverless-reliability-and-state-management
  3. Design the physical plan, not just the logical one. Account for:

    • partitioning and file layout
    • shuffle-heavy joins
    • skewed keys
    • checkpoint or intermediate persistence
    • write mode and idempotency behavior
  4. Keep data contracts visible at the edges. Validate input assumptions before expensive execution and verify output contracts before publish.

  5. Make backfills and reruns safe. Historical batch recomputation should define overwrite, merge, or append semantics explicitly.

Common Rationalizations

Rationalization Reality
"Spark will handle optimization for us." Engine optimizations help, but poor partitioning, skew, and write strategy still create failures or huge cost.
"We can just scale the cluster." Scaling often masks bad physical design and can still fail on skew or bad shuffles.
"Managed Spark means we do not need runtime design." Glue and EMR still require deliberate partitioning, retries, and storage strategy.

Read the full file on GitHub · 74 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 74 lines · 38 tokens per session scan A 459223114e01

Subscribe to this mod's changes

spark-and-distributed-processing is a skill published in the GitHub repository vaquarkhan/data-engineering-agent-skills (45 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 652 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

kafka-shadowtraffic

Generate a ShadowTraffic configuration to populate a Kafka topic with realistic synthetic data. Discovers the target topic, its key and value schemas, and the correct serializers from the live cluster via any attached Kafka MCP server, then writes a ready-to-run shadowtraffic-config.json and Docker command. Use when…

lensesio/agentic-engineering-for-apache-kafka · 134 tokens

spark-training-gotchas

Preflight and diagnose the ten known failure modes for ML training on NVIDIA DGX Spark. Use when a training run on DGX Spark fails to start, OOMs below the 128GB limit, slows down mid-run, or before any multi-hour training job on GB10.

wshobson/agents · 63 tokens

9router

Entry point for 9Router — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions 9Router, NINEROUTERURL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability…

decolua/9router · 84 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

synthetic-sciences/openscience · 74 tokens

lookml_ingest

Map a LookML view/model/explore into ktx semantic layer sources. Covers the LookML to ktx primitive table, provenance tagging, and three worked examples (overlay, standalone from derivedtable, standalone with sqlalwayswhere). Load when the turn contains .lkml content.

Kaelio/ktx · 63 tokens

markitdown

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

synthetic-sciences/openscience · 53 tokens