agentleFS
arjunprabhulalarjunprabhulal/agent-skills/skills/data/data-analysis/SKILL.md

data-analysis

Skill4 starsChanged 4 months agoMITView on GitHub

Answers a question from data — checking the data is trustworthy, choosing the right comparison, and reporting a number with its caveats. Use this whenever the user asks what the data says, wants metrics or a report, asks whether something went up or down, needs to interpret an experiment, or asks you to analyse a dataset or spreadsheet. For writing the query, use sql-queries; for visual design of charts, use the dataviz guidance.

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use algorithm-design, review-r and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lingzhi227Skill

    algorithm-design

    Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments, Mermaid class/sequence diagrams, and ensure consistency between pseudocode and implementation. Use when formalizing methods for a paper.

    Also in 4 projects that use this

  • luischanciSkill

    review-r

    Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.

    Also in 3 projects that use this

  • lingzhi227Skill

    latex-formatting

    Handle LaTeX formatting, templates, and styling for academic papers. Set up conference templates (ICML, ICLR, NeurIPS, AAAI, ACL), fix formatting issues, manage packages, and ensure venue-specific compliance. Use when the user needs to set up a paper template, fix LaTeX formatting, or prepare for submission.

    Also in 3 projects that use this

  • thoitiettxl-cyberSkill

    consulting-analysis

    Build consulting-grade analysis frameworks and final reports in two phases: (1) define a structured analysis blueprint with hypotheses, data requirements, and visualization plan; (2) synthesize collected evidence into a polished consulting-style report. Use when the user explicitly wants a professional research report, market/industry/consumer/brand/financial analysis deck-in-markdown, or a framework for downstream evidence collection.

    Also in 3 projects that use this

  • michaelboedingSkill

    slide-generation

    Use this skill to create presentation slides from structured content. Triggers: "create slides", "generate presentation", "make powerpoint", "create pptx", "build slides", "presentation from content", "slide deck", "slides for" Outputs: PPTX files, Markdown slides, or HTML presentations. Used by: pitch-deck-agent, market-researcher-agent, and other agents needing slides.

    Also in 3 projects that use this

  • BlockSkill

    github-research

    Search GitHub issues, PRs, and code using the gh CLI.

    Also in 3 projects that use this

  • +4 more from lingzhi227

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 34 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always, even when the source is familiar:

    line 32
  2. Distinctive:

    Multiple comparisons: check twenty segments and one will look significant by chance

    line 72
  3. Distinctive:

    Done when: every causal word in your write-up is supported or removed.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 34 edited versions of this file we could read. “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

Data analysis

A number is easy to produce and hard to trust. Most analytical errors are not statistical — they are a filter nobody mentioned, a join that double-counted, a date range that clipped a week, or test accounts left in.

Check the data before you analyse it. The most common way to be confidently wrong is to answer a well-posed question with a badly-built dataset.

1. Pin down the question

Vague questions produce numbers nobody can act on. Establish:

  • The metric, defined precisely. "Active users" — active how, over what window, counted per what? Two reasonable definitions give different numbers and both are "right"
  • The population: who is included, and who is deliberately excluded
  • The period, and what it is being compared against
  • The decision this feeds. An analysis with no decision attached usually produces a number nobody uses

Done when: you could write the definition down and someone else would compute the same figure.

2. Interrogate the data before trusting it

Always, even when the source is familiar:

SELECT COUNT(*), MIN(created_at), MAX(created_at) FROM t;        -- coverage
SELECT COUNT(*) - COUNT(col) AS nulls FROM t;                     -- missingness
SELECT col, COUNT(*) FROM t GROUP BY 1 ORDER BY 2 DESC LIMIT 20;  -- distribution
SELECT DATE(created_at), COUNT(*) FROM t GROUP BY 1 ORDER BY 1;   -- gaps and spikes

Look for:

  • Gaps: a day with no rows usually means a broken pipeline, not zero activity
  • Duplicates at your intended grain
  • Test and internal accounts. Excluding them is nearly always right and nearly always forgotten
  • Sudden distribution changes, which usually mean an instrumentation change rather than a behaviour change — this trap catches experienced analysts regularly
  • Timezone: is created_at UTC or local? Day boundaries shift results

Done when: you can explain every anomaly in the raw data or have excluded it deliberately.

3. Choose a comparison that means something

A number alone says nothing. "4,200 signups" needs a baseline.

  • Compare like with like. Week over week, not this week against last month
  • Watch for seasonality: day of week and holidays swamp most real effects
  • Beware changing denominators. A rising rate with a shrinking population may be a composition change, not an improvement
  • Segment before concluding. An aggregate that is flat frequently hides one segment rising and another falling — this is where the actual finding usually is

Done when: the comparison controls for the obvious confounders.

4. Do not overclaim

  • Correlation is not causation, and the sentence around the number is where this gets smuggled in. "Signups rose after the launch" is observation; "the launch drove signups" is a claim needing a control
  • Small numbers are noisy. A move from 3 to 6 is not a doubling worth reporting
  • Survivorship: you are usually analysing who remained, not who started
  • Multiple comparisons: check twenty segments and one will look significant by chance
  • Simpson's paradox: a trend in every segment can reverse in the aggregate. If the aggregate contradicts the segments, the segments are usually the real story

Done when: every causal word in your write-up is supported or removed.

5. Make it reproducible

Save the query and the parameters with the result. A number in a message with no query behind it cannot be checked, cannot be re-run next month, and will be quoted long after it stopped being true.

Date the analysis and state the data as of when.

Done when: someone else could re-run it and get the same number.

6. Report the caveats with the number

**Signups rose 18% week over week** (4,210 vs 3,570)

Excludes internal accounts (n=340) and one duplicate batch from the 12th.
Comparison is the equivalent weekday range. The rise is concentrated
entirely in mobile — desktop is flat.

Not established: whether the launch caused this. It coincides with a
referral push that started the same day.

Lead with the answer. Follow with what was excluded, what is segmented, and — most importantly — what the data cannot tell you. That last line is what stops a correlation becoming a strategy.

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.