ihkreddy/agent-skills-ts · Archived

data-analysis

Data analysis workflows and patterns for exploring, transforming, and visualizing data. Use when working with data, creating reports, or when users mention "data analysis", "analyze data", "data exploration", or "reporting".

First seen Mar 1, 2026

Installation

$ npx skills add ihkreddy/agent-skills-ts --skill data-analysis

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from ihkreddy/agent-skills-ts · top by installs.

npx skills add ihkreddy/agent-skills-ts

Browse all from ihkreddy/agent-skills-ts

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License MIT
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0
LicenseMIT
CompatibilityWorks with any programming language or framework
More metadata
author
IHKREDDY
version
1.0
category
data

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,168 B
  • docs SUMMARY.md 245 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Data Analysis Skill

When to Use This Skill

Use this skill when:

  • Exploring and analyzing datasets
  • Creating data reports
  • Transforming or cleaning data
  • Building visualizations
  • Users mention "data analysis", "analyze data", or "reporting"

Data Analysis Process

1. Data Understanding

Before analysis, understand your data:

  • What is the source?
  • What does each field represent?
  • What is the data quality?
  • What are the business questions to answer?

2. Data Loading

C# / .NET

// Using CsvHelper
using var reader = new StreamReader("data.csv");
using var csv = new CsvReader(reader, CultureInfo.InvariantCulture);
var records = csv.GetRecords<DataRecord>().ToList();

TypeScript

import { parse } from 'csv-parse/sync';
import { readFileSync } from 'fs';

const data = parse(readFileSync('data.csv'), {
  columns: true,
  skip_empty_lines: true
});

3. Data Exploration

Key questions to answer:

  • How many records?
  • What are the column types?
  • Are there missing values?
  • What are the value distributions?
  • Are there outliers?
// C# - Basic exploration
Console.WriteLine($"Total records: {data.Count}");
Console.WriteLine($"Columns: {string.Join(", ", data.First().GetType().GetProperties().Select(p => p.Name))}");
Console.WriteLine($"Missing values: {data.Count(r => r.SomeField == null)}");

4. Data Cleaning

Common cleaning tasks:

  • Handle missing values
  • Remove duplicates
  • Fix data types
  • Standardize formats
  • Handle outliers
// C# - Cleaning examples
var cleaned = data
    .Where(r => r.Date != null)  // Remove nulls
    .DistinctBy(r => r.Id)       // Remove duplicates
    .Select(r => new {
        r.Id,
        Date = DateTime.Parse(r.DateString),
        Amount = decimal.Parse(r.AmountString)
    })
    .ToList();

5. Data Transformation

Aggregation

// C# - Group and aggregate
var summary = data
    .GroupBy(r => r.Category)
    .Select(g => new {
        Category = g.Key,
        Count = g.Count(),
        TotalAmount = g.Sum(r => r.Amount),
        AvgAmount = g.Average(r => r.Amount)
    })
    .OrderByDescending(x => x.TotalAmount);

Pivoting

// C# - Pivot data
var pivot = data
    .GroupBy(r => new { r.Year, r.Month })
    .ToDictionary(
        g => $"{g.Key.Year}-{g.Key.Month:D2}",
        g => g.Sum(r => r.Amount)
    );

6. Statistical Analysis

Common metrics:

  • Mean: Average value
  • Median: Middle value
  • Mode: Most frequent value
  • Std Dev: Spread of values
  • Percentiles: Distribution points
// C# - Basic statistics
var values = data.Select(r => r.Amount).OrderBy(x => x).ToList();
var mean = values.Average();
var median = values[values.Count / 2];
var stdDev = Math.Sqrt(values.Average(x => Math.Pow(x - mean, 2)));

7. Reporting

Console Output

Console.WriteLine("=== Sales Report ===");
Console.WriteLine($"Total Sales: {total:C}");
Console.WriteLine($"Average Order: {average:C}");
Console.WriteLine("\nTop Categories:");
foreach (var cat in topCategories.Take(5))
{
    Console.WriteLine($"  {cat.Name}: {cat.Amount:C}");
}

Export to CSV

using var writer = new StreamWriter("report.csv");
using var csv = new CsvWriter(writer, CultureInfo.InvariantCulture);
csv.WriteRecords(reportData);

Best Practices

  1. Document assumptions about the data
  2. Validate data quality before analysis
  3. Use appropriate data types for accuracy
  4. Handle edge cases (nulls, zeros, negative values)
  5. Version control analysis scripts
  6. Create reproducible workflows
  7. Visualize distributions to understand data
  8. Test calculations with known values