agentleFS
xiejunrico-devxiejunrico-dev/openclaw-top100-skills/skills/data-analysis/SKILL.md

Data Analysis

Skill0 starsChanged 8 months agoMITView on GitHub

Turn raw data into decisions with statistical rigor, proper methodology, and awareness of analytical pitfalls.

The file

Files
SKILL.md

When to Load

User asks about: analyzing data, finding patterns, understanding metrics, testing hypotheses, cohort analysis, A/B testing, churn analysis, statistical significance.

Core Principle

Analysis without a decision is just arithmetic. Always clarify: What would change if this analysis shows X vs Y?

Methodology First

Before touching data:

  1. What decision is this analysis supporting?
  2. What would change your mind? (the real question)
  3. What data do you actually have vs what you wish you had?
  4. What timeframe is relevant?

Statistical Rigor Checklist

  • Sample size sufficient? (small N = wide confidence intervals)
  • Comparison groups fair? (same time period, similar conditions)
  • Multiple comparisons? (20 tests = 1 "significant" by chance)
  • Effect size meaningful? (statistically significant ≠ practically important)
  • Uncertainty quantified? ("12-18% lift" not just "15% lift")

Analytical Pitfalls to Catch

PitfallWhat it looks likeHow to avoid
Simpson's ParadoxTrend reverses when you segmentAlways check by key dimensions
Survivorship biasOnly analyzing current usersInclude churned/failed in dataset
Comparing unequal periodsFeb (28d) vs March (31d)Normalize to per-day or same-length windows
p-hackingTesting until something is "significant"Pre-register hypotheses or adjust for multiple comparisons
Correlation in time seriesBoth went up = "related"Check if controlling for time removes relationship
Aggregating percentagesAveraging percentages directlyRe-calculate from underlying totals

For detailed examples of each pitfall, see pitfalls.md.

Approach Selection

Question typeApproachKey output
"Is X different from Y?"Hypothesis testp-value + effect size + CI
"What predicts Z?"Regression/correlationCoefficients + R² + residual check
"How do users behave over time?"Cohort analysisRetention curves by cohort
"Are these groups different?"SegmentationProfiles + statistical comparison
"What's unusual?"Anomaly detectionFlagged points + context

For technique details and when to use each, see techniques.md.

Output Standards

  1. Lead with the insight, not the methodology
  2. Quantify uncertainty — ranges, not point estimates
  3. State limitations — what this analysis can't tell you
  4. Recommend next steps — what would strengthen the conclusion

Red Flags to Escalate

  • User wants to "prove" a predetermined conclusion
  • Sample size too small for reliable inference
  • Data quality issues that invalidate analysis
  • Confounders that can't be controlled for

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.