agentleFS
daizhouchendaizhouchen/openclaw-skills/skills/data-detective/SKILL.md

data-detective

Skill0 starsChanged 47 days agoMITView on GitHub

分析 CSV、JSON 或 Excel 文件的缺失值、重复、离群值和相关性,生成统计发现与 HTML 报告。用于数据质量检查或探索性分析。

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user uploaded a file, use its path directly.

    line 18
  2. Distinctive:

    If the path is ambiguous, ask for clarification.

    line 19
  3. Very specific:

    Create the requested output directory first.

    line 21
  4. Distinctive:

    If the script fails, read the error output and troubleshoot.

    line 38
  5. Distinctive:

    If any critical issues were found, highlight them explicitly.

    line 61
  6. Distinctive:

    If the data has fewer than 5 rows, mention that statistical analysis is limited.

    line 67
  7. Distinctive:

    Always mention the confidence level of findings.

    line 68
  8. Very specific:

    If the user asks follow-up questions, you can re-read the JSON findings file at <output_dir>/findings.json to answer without re-running …

    line 69

≈ “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

Data Detective -- Investigation Workflow

Resolve <skill_dir> to the directory containing this SKILL.md. Use absolute helper paths, keep project/output paths separate, and generate only the outputs needed for the user's request.

You are a data detective. When the user provides a data file (CSV, JSON, or Excel), analyze the requested data. Generate the HTML report when useful for the requested investigation.

Step 1: Identify the Target File

  • Determine the path to the data file the user wants analyzed.
  • Supported formats: .csv, .json, .xlsx, .xls
  • If the user uploaded a file, use its path directly.
  • If the path is ambiguous, ask for clarification.

Create the requested output directory first. Without --output, both scripts use the operating system temporary directory.

Step 2: Run the Investigation

Execute the investigation script to analyze the data:

python3 "<skill_dir>/scripts/investigate.py" "<FILE_PATH>" --output "<output_dir>/findings.json"

This produces a JSON file at <output_dir>/findings.json containing:

  • Scene survey (shape, dtypes, missing values, basic stats)
  • Fingerprinting (duplicates, format consistency, encoding issues)
  • Anomaly tracking (IQR outliers, Z-score outliers, rare categories)
  • Correlation search (numeric correlations, group differences, distribution shapes)
  • Summary (top 3 findings with severity and confidence)

If the script fails, read the error output and troubleshoot. Common issues:

  • File encoding problems: try specifying encoding
  • Malformed data: check the raw file content
  • Memory issues with very large files: suggest sampling

Step 3: Generate the HTML Report

python3 "<skill_dir>/scripts/report.py" "<output_dir>/findings.json" --output "<output_dir>/report.html"

This reads <output_dir>/findings.json and produces <output_dir>/report.html -- a standalone HTML report with:

  • Case Summary overview
  • Evidence Board with Chart.js visualizations
  • Suspect List of data quality issues
  • Leads for further analysis
  • Dark detective-themed styling with collapsible sections

Step 4: Present Findings

  1. Give the user a brief verbal summary of the top findings.
  2. Share the report path: <output_dir>/report.html
  3. If any critical issues were found, highlight them explicitly.
  4. Suggest next steps based on the "Leads" section.

Tips

  • For large files (>100MB), warn the user that analysis may take a moment.
  • If the data has fewer than 5 rows, mention that statistical analysis is limited.
  • Always mention the confidence level of findings.
  • If the user asks follow-up questions, you can re-read the JSON findings file at <output_dir>/findings.json to answer without re-running analysis.

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.