Karthik Data Cleaningのロゴ

Karthik Data Cleaning

コミュニティ
skthewimp
karthik-data-cleaning

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

概要

公開者skthewimp
リポジトリkarthik-data-visualization-skill
スキル名karthik-data-cleaning
スター
49
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    skthewimpがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Karthik Data Cleaning」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-data-cleaning/claude
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでKarthik Data Cleaningを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にKarthik Data Cleaningを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Karthik Data Cleaningは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「Karthik Data Cleaning」では何ができますか?

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

TypingMindでKarthik Data Cleaningを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Karthik Data Cleaningはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにKarthik Data Cleaningをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/skthewimp/karthik-data-visualization-skill/tree/main/karthik-data-cleaning/claudeを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Karthik Data Cleaningを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Karthik Data Cleaningで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもKarthik Data Cleaningを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Karthik Data Cleaning」は無料ですか?

はい。skthewimpがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇