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.
npx skills add hamzabellouch/agent-skills --skill pyspark-and-apache-spark-analyticsgit clone --depth 1 https://github.com/hamzabellouch/agent-skillsWrote 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.
[](https://agentmods.dev/skills/hamzabellouch/agent-skills/pyspark-and-apache-spark-analytics)<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/pyspark-and-apache-spark-analytics"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/pyspark-and-apache-spark-analytics/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.
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/pyspark-and-apache-spark-analytics"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/pyspark-and-apache-spark-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00038 | $0.02101 |
| Opus 5.5 | $0.00015 | $0.00840 |
| Sonnet 5.5 | $0.00008 | $0.00420 |
| Haiku 4.5 | $0.00004 | $0.00210 |
Grade A, and why
pyspark-and-apache-spark-analytics 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PySpark & Apache Spark Analytics
Comprehensive engineering guide for architecting, optimizing, and operating large-scale distributed data processing pipelines using PySpark and Apache Spark 3.x/4.x.
1. Core Principles & Architecture
1.1 Execution Model
- Driver: Plans execution, constructs DAGs, manages SparkSession, coordinates tasks, and collects metrics.
- Executors: Worker processes executing task threads, maintaining in-memory storage (RAM), and handling spill to disk.
- Transformations vs Actions:
- Narrow Transformations: Operations where each input partition maps to at most one output partition (
map,filter,flatmap). No network shuffle. - Wide Transformations: Operations requiring data exchange across cluster partitions (
groupByKey,reduceByKey,join,distinct,repartition). Triggers a Shuffle Stage. - Actions: Trigger execution of physical execution plan (
count,collect,write,first,take).
- Narrow Transformations: Operations where each input partition maps to at most one output partition (
1.2 Data Lake storage Formats: Delta Lake & Apache Iceberg
- Acid Transactions: Transaction log (
_delta_logor Iceberg metadata trees) providing ACID semantics, time travel, and rollback. - Medallion Architecture:
- Bronze (Raw): Append-only ingestion layer preserving original schema (JSON, CSV, Parquet).
- Silver (Cleaned/Enriched): Deduplicated, typed, normalized, and joined domain entities.
- Gold (Aggregated/Business): Star-schema dimensions/facts, aggregated metrics, wide tables optimized for BI/ML queries.
2. Idempotency & Partitioning Strategies
2.1 Dynamic Partition Overwrite & Upserts
Idempotence guarantees that re-running a pipeline execution produces identical state without duplicate records or partial writes.
PySpark Dynamic Partition Overwrite
from pyspark.sql import SparkSession
spark = SparkSession.builder \
.appName("IdempotentPartitionWriter") \
.config("spark.sql.sources.partitionOverwriteMode", "dynamic") \
.getOrCreate()
# Ensures only affected partitions are replaced upon re-run
df_processed.write \
.format("parquet") \
.mode("overwrite") \
.partitionBy("event_date") \
.save("s3a://data-warehouse/silver/user_events/")
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.
- 2mo ago First seen · 217 lines · 38 tokens per session scan A eb92d7bd5979
pyspark-and-apache-spark-analytics is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 2,101 once invoked, about $0.0002 per session on Opus 5.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.
pyspark-and-apache-spark-analytics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pyspark-and-apache-spark-analyticshamzabellouch/agent-skills | Skill | 8 | 1mo ago | MIT | A | 38 | Claude Code, Codex |
| spec-investigatebenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 229 | Claude Code |
| spec-implementbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 137 | Claude Code |
| spec-shipbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 119 | Claude Code |
| spec-walkthroughbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 172 | Claude Code |
| spec-setupbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 223 | Claude Code |
| spec-escapesbenjaminthomas/spec-driven-dev | Skill | 2 | yesterday | MIT | A | 148 | Claude Code |