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

bi-python-knowledge

Skill2 starsChanged 4 months agoApache-2.0View on GitHub

Python/pandas reasoning and review layer for BI and data agents in the Seshat BI project. Use when an agent must reason about dataframe work — profiling a source, judging dtypes/schema, cleaning and standardizing, merging without fan-out, aggregating at a declared grain, parsing dates, validating/reconciling against SQL and readiness, diagnosing performance/memory, or reviewing a Python pipeline. This is a reasoning layer, not an executor and not a Python tutorial. It does not run pipelines, define metrics, or own gating. See INDEX.md for the live routes.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Open INDEX.md: Do not read the whole knowledge base.

    line 39
  2. Distinctive:

    Stop at boundaries: If the task is metric definition, semantic logic, SQL transformation, or gating, hand off.

    line 44
  3. Distinctive:

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

    line 62
  4. Distinctive:

    Do not clean data before source meaning and grain are understood.

    line 67
  5. Distinctive:

    Do not merge dataframes before join keys and cardinality are known.

    line 68
  6. Distinctive:

    Do not aggregate before declaring grain and additivity.

    line 69
  7. Distinctive:

    Do not infer business meaning from column names alone.

    line 70
  8. Distinctive:

    Do not claim reconciliation passed without evidence.

    line 71
  9. Distinctive:

    Do not fill nulls, coerce dtypes, or join frames without an evidence ledger.

    line 72
  10. Distinctive:

    Do not write production pipeline code in this layer.

    line 73
  11. Distinctive:

    Do not use Python to bypass SQL/readiness validation gates.

    line 74
  12. Distinctive:

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

    line 75
  13. Very specific:

    Do not copy book examples or prose.

    line 76
  14. Very specific:

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

    line 82

≈ “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 Python Knowledge Skill

A thin router into a Python/pandas reasoning layer for BI/data agents. It helps an agent think correctly about dataframe work and hand off cleanly into the SQL, DAX, readiness, and dashboard layers. It does not execute code or define business meaning.

Status: core routes live. Dataframe semantics, profiling, dtypes, missing values, cleaning, merge/fan-out, aggregation grain, dates/calendars, validation, performance, active-rule review, positive patterns, and pipeline review all resolve through INDEX.md.

Use this skill when

Source profiling, dtype/schema issues, cleaning and standardization, merge/fan-out reasoning, groupby/grain reasoning, null handling, date parsing, validation / reconciliation preparation, Python pipeline review, or performance/memory diagnosis.

Do not use this skill for

Metric definition, DAX measures, SQL transformation logic, readiness approval, dashboard design, or Power BI execution. Those belong to other layers (see boundaries below). Reason up to your edge, then hand off.

Mandatory workflow

  1. Open INDEX.md. Do not read the whole knowledge base.
  2. Pick the smallest route that matches the task or symptom.
  3. Open only the file(s) that route names.
  4. End on the route's named artifact — a checklist, a JSON pattern set, or an analyzer-style verdict. Never end on an open-ended explanation.
  5. Stop at boundaries. If the task is metric definition, semantic logic, SQL transformation, or gating, hand off.
SKILL.md  ->  INDEX.md  ->  only the named file(s)  ->  artifact / checklist / verdict

What this layer owns

Dataframe / pandas / source-prep reasoning and Python pipeline review.

What this layer does NOT own

  • Readiness owns stage and gating.
  • SQL knowledge owns SQL reasoning, SQL reconciliation, SQL transformation logic.
  • Retail KPI knowledge owns metric meaning and contracts.
  • DAX knowledge owns measures and semantic-model prerequisites for ready contracts.
  • Dashboard design owns visual/page design after metric contracts.
  • Execution adapters run things; they never define meaning, mapping, metrics, semantic logic, or approval.

Global stop rules

  • Do not clean data before source meaning and grain are understood.
  • Do not merge dataframes before join keys and cardinality are known.
  • Do not aggregate before declaring grain and additivity.
  • Do not infer business meaning from column names alone.
  • Do not claim reconciliation passed without evidence.
  • Do not fill nulls, coerce dtypes, or join frames without an evidence ledger.
  • Do not write production pipeline code in this layer.
  • Do not use Python to bypass SQL/readiness validation gates.
  • Do not read the whole knowledge base when a router can select files.
  • Do not copy book examples or prose. See references/copyright-safety.md.

Conventions

  • ID families and their meaning: references/id-conventions.md.
  • Copyright rules for all content: references/copyright-safety.md.
  • All examples use the fictional retail schema in references/retail-dataframe-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.