Logo: Karthik Data Cleaning

Karthik Data Cleaning

Communautéit
skthewimp
karthik-data-cleaning

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

Iwwersiicht

Editeurskthewimp
Repositorykarthik-data-visualization-skill
Skill-Nummkarthik-data-cleaning
Stären
49
Forks
5
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    skthewimp huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Karthik Data Cleaning an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-data-cleaning/claude
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Karthik Data Cleaning an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Karthik Data Cleaning automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Karthik Data Cleaning net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill Karthik Data Cleaning?

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

Firwat Karthik Data Cleaning op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Karthik Data Cleaning besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Karthik Data Cleaning an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-data-cleaning/claude an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Karthik Data Cleaning benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Karthik Data Cleaning benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Karthik Data Cleaning domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Karthik Data Cleaning gratis?

Jo. skthewimp huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇