PySpark Expert Agent

PySpark Expert Agent is an agent for Claude Code from KIMISKI33/awesome-copilot. It costs 37 tokens per session (1,977 once invoked), scanned A, a copy of PySpark Expert Agent, MIT.

A PySpark performance review assistant for PySpark, the Python interface to Apache Spark, a system for processing large datasets across multiple machines. It diagnoses slow distributed work and reviews ways to use Python functions safely in Spark jobs.

In plain words
What is it for?
Use it to investigate PySpark bottlenecks, avoid distributed-processing anti-patterns, choose between Pandas UDFs and related functions, and rewrite work using Spark-native operations.
Why use it?
It helps expose code that causes unnecessary data movement, memory pressure, uneven work, or accidentally runs on one machine instead of across the cluster.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to investigate PySpark bottlenecks, avoid distributed-processing anti-patterns, choose between Pandas UDFs and related functions, and rewrite work using Spark-native operations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kimiski33/awesome-copilot/spark-performance
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.

Clone the repo
git clone --depth 1 https://github.com/KIMISKI33/awesome-copilot

Made for: Claude Code.

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 PySpark Expert Agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/spark-performance/github.svg)](https://agentmods.dev/agents/kimiski33/awesome-copilot/spark-performance)
Your own site
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/spark-performance"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/spark-performance/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 PySpark Expert Agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/spark-performance"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/spark-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,977 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 100% copy Near-identical to another mod 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.00037 $0.01977
Opus 5.5 $0.00015 $0.00791
Sonnet 5.5 $0.00007 $0.00395
Haiku 4.5 $0.00004 $0.00198

Measured 1mo ago against content hash 346020476403, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

PySpark Expert Agent 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 1mo ago.

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.

Origin

This is a copy

100% identical to PySpark Expert Agent — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/spark-performance.agent.md · 141 lines

How it starts

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

PySpark Performance & Parallelism Reviewer (Agent)

You are an expert PySpark developer and engineer with experience across PySpark versions, and you stay up to date with changes in PySpark and distributed data processing. You have deep expertise in diagnosing performance bottlenecks in PySpark code, identifying distributed execution anti-patterns, and recommending Spark-native rewrites and optimizations. You are also well versed in the nuances of vectorized Python UDFs (pandas_udf, applyInPandas, and mapInPandas) and can advise on when to use each based on the user's needs. Your job is to:

  1. Detect likely bottlenecks and distributed anti-patterns in PySpark code.
  2. Recommend Spark-native fixes first (reduce shuffle, handle skew/spill, avoid driver collection).
  3. When custom Python is required, advise on vectorized options such as Pandas UDF / applyInPandas / mapInPandas, and discourage RDD conversions unless unavoidable.
  4. Ensure the user’s approach is truly distributed/parallel, and flag patterns that accidentally serialize work.

You must not invent Spark UI metrics or runtime evidence. If evidence is missing, ask for it explicitly.


Inputs you can accept

  • PySpark code snippet (preferred: the slow section).
  • Optional evidence:
    • Spark UI symptoms (Stage summary metrics / spill / skew signs) 【5-cfdd26】【6-be0163】
    • df.explain() / df.explain("formatted") output
    • Data size, partition counts, cluster sizing (executors/cores/memory), AQE on/off

If optional evidence is absent, proceed with static code heuristics and ask for the minimum evidence needed to confirm.


Output format (always follow)

Return your answer in exactly these sections:

step 1 - Quick Verdict

  • Primary bottleneck hypothesis: (one of: skew, spill/memory pressure, excessive shuffle, Python overhead, too many small tasks, driver-side collection,etc.)
  • Confidence: Critical /High / Medium / Low
  • Why (1–3 sentences max)

Read the full file on GitHub · 141 lines

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. 1mo ago First seen · 141 lines · 37 tokens per session scan A 346020476403

Subscribe to this mod's changes

PySpark Expert Agent is an agent published in the GitHub repository KIMISKI33/awesome-copilot (1 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,977 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to PySpark Expert Agent, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

dgx-spark-ops-engineer

NVIDIA DGX Spark environment doctor for GB10/aarch64/CUDA-13 systems. Diagnoses and fixes ML stack setup, unified-memory, and thermal issues. Use PROACTIVELY when preparing or debugging any training or inference workload on DGX Spark hardware.

wshobson/agents · 63 tokens

pytorch-build-resolver

PyTorch runtime, CUDA, and training error resolution specialist. Fixes tensor shape mismatches, device errors, gradient issues, DataLoader problems, and mixed precision failures with minimal changes. Use when PyTorch training or inference crashes.

loulanyue/awesome-claude-notes · 52 tokens

workflow-prompt-writer

Use this agent when writing, reviewing, or debugging LLM prompt files (.prompt). Specializes in Liquid.js template syntax, YAML frontmatter configuration, and Output SDK prompt conventions.

growthxai/output · 42 tokens

alchemist

Code/data transmutation via four-stage alchemical process (nigredo/albedo/citrinitas/rubedo) with meditate/heal checkpoints.

pjt222/agent-almanac · 32 tokens

integration-checker

Validates that analysis components are properly connected by tracing data flows, verifying file references resolve, and detecting orphaned components. Invoked by orchestrator at Stages 9, 11, and 12 to confirm end-to-end pipeline wiring.

brycewang-stanford/Auto-Empirical-Research-Skills · 53 tokens

pixeltable-debugger

Diagnoses failing or stale Pixeltable pipelines. Errored computed columns, no-op recomputes, retrieval problems, rate limits, deprecated-API misuse. Use when Pixeltable code errors, returns empty/stale results, or behaves unexpectedly.

pixeltable/pixeltable-skill · 56 tokens