[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRR6GRBY9TYR5QJ9FG5MNE":3,"skill-same:01M7CRR6GRBY9TYR5QJ9FG5MNE":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7CRR6GRBY9TYR5QJ9FG5MNE","eda-and-data-profiling",null,"Use when you meet a new dataset, table, file or source, before building features or a model on it, or when a number looks wrong — profile grain, keys, nulls, cardinality, time coverage and target balance, and persist what you learn as code","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fdata-scientist\u002Fskills\u002Feda-and-data-profiling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: eda-and-data-profiling\ncategory: data\ndescription: Use when you meet a new dataset, table, file or source, before building features or a model on it, or when a number looks wrong — profile grain, keys, nulls, cardinality, time coverage and target balance, and persist what you learn as code\ntech_stack: Python\nsource: anthropics\u002Fknowledge-work-plugins explore-data (Apache-2.0), adapted; DuckDB SUMMARIZE and pandas docs cited\n---\n# EDA and Data Profiling\n\n## Overview\n\nExploration answers \"what is actually in this data?\" before anything is built on it. In this role exploration has a deliverable: the facts you learn become a schema, a test or a documented assumption in the repository — not a notebook cell nobody re-runs.\n\n**Core principle:** every surprise you find in EDA ends up as a check that would catch it next time (data-validation-contracts) or a written assumption in your closing message.\n\n## 1. Structure first\n\nAnswer these before looking at any distribution:\n\n- **Grain:** one row is one what? (an order, an order line, a customer-day)\n- **Key:** which column(s) identify a row — and are they actually unique?\n- **Size and span:** row count, earliest and latest timestamp, any missing days.\n- **Freshness:** when was it last updated; is the latest period complete?\n- **Column roles:** identifier, dimension, metric, timestamp, free text, boolean, nested.\n\n```python\ndef assert_grain(df: pd.DataFrame, key: list[str]) -> None:\n    dupes = df.duplicated(subset=key, keep=False)\n    if dupes.any():\n        raise ValueError(f\"{int(dupes.sum())} rows share a {key} key, e.g. {df.loc[dupes, key].head(3).to_dict('records')}\")\n```\n\n## 2. Profile every column\n\n| Column kind | Look at |\n|---|---|\n| All | null rate, distinct count, cardinality ratio, top and bottom values |\n| Numeric | min, p1, p25, median, mean, p75, p99, max; zeros; negatives where impossible |\n| String \u002F category | empty strings, whitespace, case variants (\"US\", \"us\", \"USA\"), unexpected categories |\n| Timestamp | min\u002Fmax, future dates, gaps per day\u002Fweek, timezone (naive vs aware) |\n| Target | class balance or distribution, by time period |\n\nFast paths:\n\n```python\nduckdb.sql(\"SUMMARIZE SELECT * FROM 'data\u002Fevents\u002F*.parquet'\").df()\n```\n\n```python\ndef profile(df: pd.DataFrame) -> pd.DataFrame:\n    return pd.DataFrame({\n        \"dtype\": df.dtypes.astype(str),\n        \"null_rate\": df.isna().mean(),\n        \"n_unique\": df.nunique(dropna=True),\n        \"example\": df.apply(lambda s: s.dropna().iloc[0] if s.notna().any() else None),\n    })\n```\n\nProfile on the full data or a documented sample — a 1,000-row head of a file sorted by date tells you about one day.\n\n## 3. Quality signals that need a decision\n\n| Signal | Likely cause | Decide |\n|---|---|---|\n| Null rate > 5% in a key column | upstream gap, late arrival, optional field | impute in the pipeline, exclude with a reason, or flag |\n| Placeholder values (0, -1, 999999, \"N\u002FA\", \"test\", 1970-01-01) | defaults standing in for missing | convert to NA at ingestion, with a test |\n| One value with suspicious frequency | a default or a backfill | confirm with the source owner, or note it |\n| ID with far fewer distinct values than rows expected | wrong join key or truncated extract | stop and trace before modelling |\n| Status says done but the done-timestamp is null | cross-column inconsistency | a schema check across columns |\n| Values all ending in 0 or 5 | estimates, not measurements | note it as a precision limit |\n| Distribution shift between old and recent months | drift, a tracking change, a definition change | evaluate on the recent period separately |\n\nDo not silently drop outliers: decide whether each group is an error (fix or remove, with a count), a genuine extreme (keep, use robust statistics) or another population (segment it).\n\n## 4. Relationships and joins\n\n- For every join you plan, measure coverage: what share of left rows find a match, and how many matches each gets.\n- Check foreign keys that point at nothing (referential gaps) and keys that appear many times on the side you expected to be unique.\n- Look for derived or redundant columns (a total next to its parts) and columns that are suspiciously predictive of the target — a single-feature ROC-AUC near 1.0 is usually leakage.\n\n```python\nmerged = events.merge(users, on=\"user_id\", how=\"left\", validate=\"many_to_one\", indicator=True)\nunmatched = (merged[\"_merge\"] == \"left_only\").mean()\n```\n\n## 5. Persist what you learned\n\n- A schema at the ingestion boundary encoding the facts: key uniqueness, allowed ranges, allowed categories, nullable columns (data-validation-contracts).\n- A test for every cleaning rule EDA motivated (\"placeholder -1 in `age` becomes NA\").\n- Plots and long profiles go to `\u002Ftmp\u002Ftt-\u003Ctask key>\u002F` while you work; commit them only where the repository keeps reports.\n- Your closing message states the key numbers: rows, span, null rates that mattered, what you excluded and how many rows that was.\n\n## Common Mistakes\n\n- Profiling a head or a non-random sample and generalising.\n- Assuming a key is unique because its name ends in `_id`.\n- Treating the latest, incomplete day or month as a real drop.\n- Fixing a quality issue in a notebook and never in the pipeline.\n- Comparing timestamps from sources in different timezones.\n\n## Red Flags\n\n- Row count changes after a join you believed was one-to-one.\n- A target rate that jumps on a specific date — check for a definition or tracking change before modelling it.\n- Exact round totals or 0%\u002F100% rates — usually a filter or a default value.\n- \"The data looks fine\" without a single number to show for it.\n","# EDA and Data Profiling\n\n## Overview\n\nExploration answers \"what is actually in this data?\" before anything is built on it. In this role exploration has a deliverable: the facts you learn become a schema, a test or a documented assumption in the repository — not a notebook cell nobody re-runs.\n\n**Core principle:** every surprise you find in EDA ends up as a check that would catch it next time (data-validation-contracts) or a written assumption in your closing message.\n\n## 1. Structure first\n\nAnswer these before looking at any distribution:\n\n- **Grain:** one row is one what? (an order, an order line, a customer-day)\n- **Key:** which column(s) identify a row — and are they actually unique?\n- **Size and span:** row count, earliest and latest timestamp, any missing days.\n- **Freshness:** when was it last updated; is the latest period complete?\n- **Column roles:** identifier, dimension, metric, timestamp, free text, boolean, nested.\n\n```python\ndef assert_grain(df: pd.DataFrame, key: list[str]) -> None:\n    dupes = df.duplicated(subset=key, keep=False)\n    if dupes.any():\n        raise ValueError(f\"{int(dupes.sum())} rows share a {key} key, e.g. {df.loc[dupes, key].head(3).to_dict('records')}\")\n```\n\n## 2. Profile every column\n\n| Column kind | Look at |\n|---|---|\n| All | null rate, distinct count, cardinality ratio, top and bottom values |\n| Numeric | min, p1, p25, median, mean, p75, p99, max; zeros; negatives where impossible |\n| String \u002F category | empty strings, whitespace, case variants (\"US\", \"us\", \"USA\"), unexpected categories |\n| Timestamp | min\u002Fmax, future dates, gaps per day\u002Fweek, timezone (naive vs aware) |\n| Target | class balance or distribution, by time period |\n\nFast paths:\n\n```python\nduckdb.sql(\"SUMMARIZE SELECT * FROM 'data\u002Fevents\u002F*.parquet'\").df()\n```\n\n```python\ndef profile(df: pd.DataFrame) -> pd.DataFrame:\n    return pd.DataFrame({\n        \"dtype\": df.dtypes.astype(str),\n        \"null_rate\": df.isna().mean(),\n        \"n_unique\": df.nunique(dropna=True),\n        \"example\": df.apply(lambda s: s.dropna().iloc[0] if s.notna().any() else None),\n    })\n```\n\nProfile on the full data or a documented sample — a 1,000-row head of a file sorted by date tells you about one day.\n\n## 3. Quality signals that need a decision\n\n| Signal | Likely cause | Decide |\n|---|---|---|\n| Null rate > 5% in a key column | upstream gap, late arrival, optional field | impute in the pipeline, exclude with a reason, or flag |\n| Placeholder values (0, -1, 999999, \"N\u002FA\", \"test\", 1970-01-01) | defaults standing in for missing | convert to NA at ingestion, with a test |\n| One value with suspicious frequency | a default or a backfill | confirm with the source owner, or note it |\n| ID with far fewer distinct values than rows expected | wrong join key or truncated extract | stop and trace before modelling |\n| Status says done but the done-timestamp is null | cross-column inconsistency | a schema check across columns |\n| Values all ending in 0 or 5 | estimates, not measurements | note it as a precision limit |\n| Distribution shift between old and recent months | drift, a tracking change, a definition change | evaluate on the recent period separately |\n\nDo not silently drop outliers: decide whether each group is an error (fix or remove, with a count), a genuine extreme (keep, use robust statistics) or another population (segment it).\n\n## 4. Relationships and joins\n\n- For every join you plan, measure coverage: what share of left rows find a match, and how many matches each gets.\n- Check foreign keys that point at nothing (referential gaps) and keys that appear many times on the side you expected to be unique.\n- Look for derived or redundant columns (a total next to its parts) and columns that are suspiciously predictive of the target — a single-feature ROC-AUC near 1.0 is usually leakage.\n\n```python\nmerged = events.merge(users, on=\"user_id\", how=\"left\", validate=\"many_to_one\", indicator=True)\nunmatched = (merged[\"_merge\"] == \"left_only\").mean()\n```\n\n## 5. Persist what you learned\n\n- A schema at the ingestion boundary encoding the facts: key uniqueness, allowed ranges, allowed categories, nullable columns (data-validation-contracts).\n- A test for every cleaning rule EDA motivated (\"placeholder -1 in `age` becomes NA\").\n- Plots and long profiles go to `\u002Ftmp\u002Ftt-\u003Ctask key>\u002F` while you work; commit them only where the repository keeps reports.\n- Your closing message states the key numbers: rows, span, null rates that mattered, what you excluded and how many rows that was.\n\n## Common Mistakes\n\n- Profiling a head or a non-random sample and generalising.\n- Assuming a key is unique because its name ends in `_id`.\n- Treating the latest, incomplete day or month as a real drop.\n- Fixing a quality issue in a notebook and never in the pipeline.\n- Comparing timestamps from sources in different timezones.\n\n## Red Flags\n\n- Row count changes after a join you believed was one-to-one.\n- A target rate that jumps on a specific date — check for a definition or tracking change before modelling it.\n- Exact round totals or 0%\u002F100% rates — usually a filter or a default value.\n- \"The data looks fine\" without a single number to show for it.\n",{"name":5,"source":24,"category":25,"tech_stack":26,"description":7},"anthropics\u002Fknowledge-work-plugins explore-data (Apache-2.0), adapted; DuckDB SUMMARIZE and pandas docs cited","data","Python","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fdata-scientist\u002Fskills\u002Feda-and-data-profiling",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill eda-and-data-profiling",{"tool":42,"command":43},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill eda-and-data-profiling",{"tool":45,"command":46},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill eda-and-data-profiling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fdata-scientist\u002Fskills\u002Feda-and-data-profiling\u002FSKILL.md",true,[],[51,57,64,71,78,85],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]