Karthik Data Cleaning logo

Karthik Data Cleaning

Community
skthewimp
karthik-data-cleaning

Clean and validate data with context-sensitive, human-supervised rules before analysis or visualization.

Overview

Publisherskthewimp
Repositorykarthik-data-visualization-skill
Skill namekarthik-data-cleaning
Stars
49
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by skthewimp on GitHub. Read the source before you install it.

Installation

Install the Karthik Data Cleaning AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-data-cleaning/claude
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skthewimp/karthik-data-visualization-skill.git /tmp/karthik-data-visualization-skill
mkdir -p .claude/skills
cp -r /tmp/karthik-data-visualization-skill/karthik-data-cleaning/claude .claude/skills/karthik-data-cleaning
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Karthik Data Cleaning in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Karthik Data Cleaning on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Karthik Data Cleaning is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Karthik Data Cleaning

Own contextual profiling, parsing, reshaping, joining, recoding, missingness decisions, and validation. Do not define the analytical question, prescribe exploratory notebook voice, or choose the final visual; those belong to karthik-analysis-planner, karthik-r-analysis-style, and dataviz-selector.

Clean data like an analyst, not like an automated janitor. Cleaning is part of the analysis. It depends on the question, the unit of analysis, the source quirks, and the domain rules.

Default stack: R/Rmd/Quarto with tidyverse-style pipelines. Use Python/SQL when the project already does, but keep the same judgement pattern.

Core rule

Use this loop:

text
question/context → inspect → clean one layer → inspect again → encode visible rule → sanity check → proceed

Do not do one-shot unsupervised cleaning. Do not silently standardize, impute, drop, dedupe, or recode because a generic rule says so.

Workflow

  1. Start by identifying the analytical context:
    • question or intended chart/model/story
    • unit of analysis: row, event, transaction, person, match ball, order item, day, hour, constituency, etc.
    • required denominator/numerator/metric if known
    • canonical raw/source files
  2. Inspect before changing:
    • names(), glimpse()/str(), summary()
    • count()/table() for categories
    • date ranges and duplicate keys
    • missingness by important dimensions
    • impossible values and obvious source sentinels
  3. Clean in small visible steps, preferably in an Rmd/qmd/notebook when exploring.
  4. After each non-trivial step, inspect again. Compare counts before/after.
  5. Convert types deliberately: dates, times, numerics, booleans, factors/categories.
  6. Normalize strings only when needed for joins, grouping, or parsing. Preserve original values if useful.
  7. Reshape to the useful grain:
    • wide repeated fields → long entity/event table
    • JSON/list columns → unnested rows
    • timestamp pairs → event intervals or start/end rows
    • monthly columns → date, value
  8. Apply domain rules explicitly:
    • known bad IDs/files
    • category collapses
    • spelling/name/location mappings
    • exclusion rules
    • parser hacks
    • impossible-value rules
  9. Join carefully:
    • check join keys and grain first
    • use anti_join()/unmatched counts where mismatches matter
    • make one-to-many expansion intentional
    • build small lookup/default tables when the data/domain supports it
  10. Treat missingness contextually:
    • drop only when row cannot answer the question
    • infer/default only with a visible reason
    • use coalesce()/modal defaults only when defensible
    • mark impossible values as missing rather than pretending they are real
  11. Validate before using cleaned data:
    • row counts before/after
    • key uniqueness at intended grain
    • date coverage
    • missingness of analysis fields
    • impossible values after cleaning
    • denominator sanity
    • spot checks of suspicious rows
  12. Preserve raw/canonical files. Never overwrite source data unless explicitly asked.

Working-file rule

Do not create working/intermediate files by default.

Create/cache a working file only when the canonical/raw source is too huge, slow, remote, unstable, expensive to parse, or annoying enough that repeated inspection becomes impractical. If you create one, say why and keep its contents clearly derived from canonical data.

R/Rmd style

Prefer this exploratory shape:

r
raw <- readr::read_csv(path)

raw %>%
  count(category, sort = TRUE)

cleaned <- raw %>%
  mutate(
    date = lubridate::ymd(date),
    amount = readr::parse_number(amount),
    city = stringr::str_to_title(city),
city = dplyr::recode(city,
  source_value_a = "canonical_value_a",
  source_value_b = "canonical_value_b",
  .default = city
)
  )

cleaned %>%
  summarise(
    rows = n(),
    start = min(date, na.rm = TRUE),
    end = max(date, na.rm = TRUE),
    missing_amount = sum(is.na(amount))
  )

Use scripts/functions only after the cleaning loop stabilizes or when the same parsing logic repeats.

What to avoid

  • Do not invent generic cleaning rules unrelated to the analysis.
  • Do not drop rows merely because they contain some missing values.
  • Do not impute without a domain reason.
  • Do not normalize strings if the raw distinction may matter later.
  • Do not dedupe without checking the intended grain.
  • Do not make polished pipeline code before understanding the mess.
  • Do not create *_working, cleaned.csv, or .RData intermediates unless the working-file rule is met.
  • Do not regenerate derived artifacts unless asked.

Output expectations

When asked to clean data, produce or edit code that includes:

  • the inspection checks
  • the cleaning transformations
  • the domain assumptions as short comments
  • the validation checks
  • any remaining caveats

When giving a summary, state:

  • raw rows and cleaned rows
  • unit of analysis
  • key filters/exclusions
  • important recodes/mappings
  • missingness decisions
  • join mismatches, if any
  • what still needs human judgement

Frequently asked questions

What does the Karthik Data Cleaning AI skill do?

Clean and validate data with context-sensitive, human-supervised rules before analysis or visualization.

Why use Karthik Data Cleaning on TypingMind?

Because you install it once and use it with any model. Karthik Data Cleaning is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Karthik Data Cleaning in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-data-cleaning/claude. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Karthik Data Cleaning?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Karthik Data Cleaning?

As many as you like. As long as a model supports skills, you can use Karthik Data Cleaning with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Karthik Data Cleaning AI skill free?

Yes. It is published on GitHub by skthewimp under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇