Data analysis

From RUC-NLPIR/ClawTrojan · View interactive version

Data analysis is an AI agent skill from the GitHub repository RUC-NLPIR/ClawTrojan. Data analysis and visualization. Query databases, generate reports, automate spreadsheets, and turn raw data into clear, actionable insights. Use when (1) you need to analyze, visualize, or explain data; (2) the user wants reports, dashboards, or metrics turned into a decision; (3) the work involves

How to use this skill

Skill file

When to Use

Use this skill when the user needs to analyze, explain, or visualize data from SQL, spreadsheets, notebooks, dashboards, exports, or ad hoc tables.

Use it for KPI debugging, experiment readouts, funnel or cohort analysis, anomaly reviews, executive reporting, and quality checks on metrics or query logic.

Prefer this skill over generic coding or spreadsheet help when the hard part is analytical judgment: metric definition, comparison design, interpretation, or recommendation.

User asks about: analyzing data, finding patterns, understanding metrics, testing hypotheses, cohort analysis, A/B testing, churn analysis, or 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

Architecture

This skill does not require local folders, persistent memory, or setup state.

Use the included reference files as lightweight guides:

Quick Reference

Load only the smallest relevant file to keep context focused.

| Topic | File |

|-------|------|

| Metric definition contracts | metric-contracts.md |

| Visual selection and chart anti-patterns | chart-selection.md |

| Decision-ready output formats | decision-briefs.md |

| Failure modes to catch early | pitfalls.md |

| Method selection by question type | techniques.md |

Core Rules

1. Start from the decision, not the dataset

2. Lock the metric contract before calculating

3. Separate extraction, transformation, and interpretation

4. Choose visuals to answer a question

5. Brief every result in decision format

6. Stress-test claims before recommending action

7. Escalate when the data cannot support the claim

Common Traps

Approach Selection

| Question type | Approach | Key output |

|---------------|----------|------------|

| "Is X different from Y?" | Hypothesis test | p-value + effect size + CI |

| "What predicts Z?" | Regression/correlation | Coefficients + R² + residual check |

| "How do users behave over time?" | Cohort analysis | Retention curves by cohort |

| "Are these groups different?" | Segmentation | Profiles + statistical comparison |

| "What's unusual?" | Anomaly detection | Flagged 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

External Endpoints

This skill makes no external network requests.

| Endpoint | Data Sent | Purpose |

|----------|-----------|---------|

| None | None | N/A |

No data is sent externally.

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Related Skills

Install with clawhub install <slug> if user confirms:

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.