agentleFS
KemetraKemetra/Seshat-BI/skills/bi-bigdata-knowledge/SKILL.md

bi-bigdata-knowledge

Skill2 starsChanged 4 months agoApache-2.0View on GitHub

Big-data / distributed-compute reasoning and review layer for BI and data agents in the Seshat BI project. Use when data is too large for single-node pandas and the agent must reason about distributed or larger-than-memory processing — choosing an engine (Spark / Dask / Polars / DuckDB / warehouse), controlling partitioning and shuffle, avoiding skew and fan-out, aggregating at a declared grain at scale, choosing file formats (Parquet / Delta / Iceberg), incremental/idempotent processing, validating and reconciling at scale, diagnosing partial/retried output, reviewing backfills/partition evolution/compaction, and collecting performance/cost evidence. This is a reasoning layer, not an executor or Spark tutorial. It does not run jobs, define metrics, or own gating.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not read the whole knowledge base: Start at INDEX.md.

    line 29
  2. Distinctive:

    Execution adapters: run jobs; they never define meaning, mapping, metrics, semantic logic, or approval.

    line 78
  3. Distinctive:

    Do not scale out before confirming the workload truly needs it (single-node first).

    line 86
  4. Distinctive:

    Do not shuffle/repartition before knowing the data's size and key distribution.

    line 87
  5. Distinctive:

    Do not join before knowing key cardinality, skew, and which side is broadcastable.

    line 88
  6. Distinctive:

    Do not aggregate before declaring grain and additivity.

    line 89
  7. Very specific:

    Do not collect() / pull a distributed result to the driver to "check" it.

    line 90
  8. Distinctive:

    Do not claim reconciliation passed without scale-appropriate evidence.

    line 91
  9. Distinctive:

    Do not infer atomic publication from job success/failure.

    line 92
  10. Very specific:

    Do not run/retry/backfill/compact from this layer.

    line 93
  11. Distinctive:

    Do not write production job code in this reasoning layer.

    line 94
  12. Distinctive:

    Do not use big-data tooling to bypass SQL/readiness validation gates.

    line 95
  13. Distinctive:

    Do not read the whole knowledge base when a router can select files.

    line 96
  14. Very specific:

    Do not copy source/article text.

    line 97
  15. Very specific:

    All examples use the fictional retail schema in references/retail-bigdata-schema.md.

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BI Big-Data Knowledge

A thin router into a distributed / large-scale data-processing reasoning layer for BI/data agents. It helps an agent think correctly about big-data work and hand off cleanly into the SQL, DAX, readiness, and dashboard layers. It does not execute jobs or define business meaning.

This layer is the scale-out companion to bi-python-knowledge. The conceptual spine — grain, fan-out, additivity, null semantics, reconciliation — is shared and referenced, not repeated (see references/cross-layer-map.md). This layer owns only what changes when compute becomes distributed or larger-than-memory.

How to use this skill

  1. Do not read the whole knowledge base. Start at INDEX.md.
  2. Match the task or symptom to a route in INDEX.md.
  3. Open only the knowledge file(s) that route names.
  4. Finish on the route's named artifact — a checklist, a JSON pattern set, or a verdict.
SKILL.md  ->  INDEX.md  ->  only the relevant file(s)  ->  checklist / verdict / handoff

Use when

The agent needs to:

  • decide whether a workload needs distributed/larger-than-memory processing at all;
  • choose an engine (Spark, Dask, Polars, DuckDB, or push to a cloud warehouse);
  • reason about partitioning, shuffle, and skew;
  • choose join strategy (broadcast vs shuffle) and avoid fan-out at scale;
  • aggregate at a declared grain over very large data;
  • choose a storage/file format (Parquet, Delta, Iceberg) and avoid the small-files problem;
  • design incremental, idempotent processing and handle late-arriving data;
  • validate and reconcile results at scale (control totals, sampling, scalable checks);
  • diagnose performance/cost (caching, spill, collect(), UDFs);
  • diagnose partial outputs, attempt/retry safety, and distributed commit visibility;
  • review backfills, partition-spec evolution, compaction, publication, and rollback evidence;
  • review a distributed pipeline.

Do not use when

  • writing production Spark/job code (this layer reasons, it does not run);
  • defining what a KPI means — definition, additivity, grain intent, required fields (retail-kpi-knowledge owns metric meaning; implement its ready contract at scale);
  • defining the measure or semantic logic (DAX owns that);
  • writing SQL transformation logic (SQL layer owns that);
  • single-node pandas source-prep (use bi-python-knowledge);
  • approving readiness / granting a gate (readiness owns that);
  • designing dashboard visuals (dashboard layer owns that).

Boundaries

  • Readiness owns stage and gating.
  • Retail KPI knowledge owns the business meaning of a KPI (definition, additivity, grain intent, required fields, ambiguity). This layer implements a ready contract at scale; it never defines the meaning.
  • SQL knowledge owns SQL reasoning, SQL reconciliation, SQL transformation logic.
  • DAX knowledge owns measures, semantic-model prerequisites (implements a business contract; does not define KPI meaning).
  • Python knowledge owns single-node dataframe / source-prep reasoning.
  • Big-data knowledge owns distributed / larger-than-memory execution reasoning and distributed-pipeline review.
  • Dashboard design owns visual/page design after metric contracts.
  • Execution adapters run jobs; they never define meaning, mapping, metrics, semantic logic, or approval.

Reason up to your edge, then hand off. Frequently the right big-data answer is "push this step to the SQL/warehouse layer" — that is a boundary call, not a failure.

Stop rules

  • Do not scale out before confirming the workload truly needs it (single-node first).
  • Do not shuffle/repartition before knowing the data's size and key distribution.
  • Do not join before knowing key cardinality, skew, and which side is broadcastable.
  • Do not aggregate before declaring grain and additivity.
  • Do not collect() / pull a distributed result to the driver to "check" it.
  • Do not claim reconciliation passed without scale-appropriate evidence.
  • Do not infer atomic publication from job success/failure; require manifests and commit evidence.
  • Do not run/retry/backfill/compact from this layer; return the evidence packet and owner action.
  • Do not write production job code in this reasoning layer.
  • Do not use big-data tooling to bypass SQL/readiness validation gates.
  • Do not read the whole knowledge base when a router can select files.
  • Do not copy source/article text; see references/copyright-and-sources.md.

Conventions

  • ID families: references/id-conventions.md.
  • Sources & copyright: references/copyright-and-sources.md.
  • Shared concepts & boundaries with the Python layer: references/cross-layer-map.md.
  • All examples use the fictional retail schema in references/retail-bigdata-schema.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.