[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K0ES9CYPJFWVDVH1S1ZQ3J":3,"skill-same:01M6K0ES9CYPJFWVDVH1S1ZQ3J":84},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6K0ES9CYPJFWVDVH1S1ZQ3J","analyze-csv-files",null,"Analyze CSV files — load, inspect, clean, filter, aggregate, and summarize tabular data from CSV and TSV files. Use when the user has a CSV file and wants to understand its contents, find patterns, compute statistics, filter rows, or answer questions about the data, even if they just say \"look at this spreadsheet\" or \"what's in this file.\"","anjijava16\u002FAgent_Skills","anjijava16","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F5849522?v=4","01M6JZVCV62H56AYM59D11EGAW","Anjaiah Methuku","01M6JZVD04H0QP910VNCZMJFAG",0,"MIT","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fanalyze-csv-files\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"analyze csv files","csv","analyze","files","clean","load","pip","inspect","answer","questions","filter","statistics","compute","python","say","use","find","just","spreadsheet","file","2026-11-10 10:12:30",false,"---\nname: analyze-csv-files\ndescription: >\n  Analyze CSV files — load, inspect, clean, filter, aggregate, and summarize\n  tabular data from CSV and TSV files. Use when the user has a CSV file and\n  wants to understand its contents, find patterns, compute statistics, filter\n  rows, or answer questions about the data, even if they just say \"look at\n  this spreadsheet\" or \"what's in this file.\"\nlicense: MIT\ncompatibility: Requires Python 3.10+ and pip\nmetadata:\n  author: welcome\n  version: \"1.0\"\n---\n\n# Analyze CSV Files\n\n## When to use this skill\n\nUse this skill when the user needs to:\n- Load and inspect a CSV or TSV file\n- Get summary statistics (row count, column types, missing values)\n- Filter, sort, or search rows by conditions\n- Aggregate data (group by, sum, count, average)\n- Find top\u002Fbottom N items by a column\n- Answer specific questions about CSV data\n- Clean CSV data (fix types, handle missing values, deduplicate)\n\n## Prerequisites\n\n```bash\npip install pandas tabulate\n```\n\n## Quick Inspection\n\nAlways start by inspecting the file before any analysis:\n\n```python\nimport pandas as pd\n\ndf = pd.read_csv(\"data.csv\")\n\nprint(f\"Shape: {df.shape[0]} rows × {df.shape[1]} columns\\n\")\nprint(f\"Columns and types:\\n{df.dtypes.to_string()}\\n\")\nprint(f\"First 5 rows:\\n{df.head().to_markdown(index=False)}\\n\")\n\nmissing = df.isnull().sum()\nif missing.any():\n    print(f\"Missing values:\\n{missing[missing > 0].to_string()}\")\nelse:\n    print(\"No missing values\")\n```\n\nRun `scripts\u002Finspect_csv.py` for a one-command overview.\n\n## Filtering Rows\n\n```python\n# By condition\nhigh_revenue = df[df[\"revenue\"] > 10000]\n\n# Multiple conditions\nfiltered = df[(df[\"status\"] == \"active\") & (df[\"age\"] >= 18)]\n\n# String contains (case-insensitive)\nmatches = df[df[\"name\"].str.contains(\"smith\", case=False, na=False)]\n\n# Date range\ndf[\"date\"] = pd.to_datetime(df[\"date\"])\nrecent = df[df[\"date\"] >= \"2025-01-01\"]\n```\n\n## Sorting\n\n```python\n# Sort by one column (descending)\ntop = df.sort_values(\"revenue\", ascending=False)\n\n# Sort by multiple columns\nsorted_df = df.sort_values([\"category\", \"revenue\"], ascending=[True, False])\n\n# Top N\ntop_10 = df.nlargest(10, \"revenue\")\nbottom_5 = df.nsmallest(5, \"price\")\n```\n\n## Aggregation\n\n```python\n# Group by and aggregate\nsummary = df.groupby(\"category\").agg(\n    count=(\"id\", \"count\"),\n    total=(\"revenue\", \"sum\"),\n    average=(\"revenue\", \"mean\"),\n).sort_values(\"total\", ascending=False)\n\nprint(summary.to_markdown())\n```\n\n```python\n# Pivot table\npivot = df.pivot_table(\n    values=\"revenue\",\n    index=\"region\",\n    columns=\"quarter\",\n    aggfunc=\"sum\",\n    fill_value=0,\n)\nprint(pivot.to_markdown())\n```\n\n## Summary Statistics\n\n```python\n# Full numeric summary\nprint(df.describe().to_markdown())\n\n# Value counts for a categorical column\nprint(df[\"status\"].value_counts().to_markdown())\n\n# Unique values\nprint(f\"Unique categories: {df['category'].nunique()}\")\nprint(df[\"category\"].unique())\n```\n\n## Cleaning\n\n```python\n# Remove duplicates\nbefore = len(df)\ndf = df.drop_duplicates()\nprint(f\"Removed {before - len(df)} duplicates\")\n\n# Handle missing values\ndf[\"numeric_col\"] = df[\"numeric_col\"].fillna(df[\"numeric_col\"].median())\ndf[\"text_col\"] = df[\"text_col\"].fillna(\"Unknown\")\n\n# Fix currency strings → float\ndf[\"price\"] = df[\"price\"].str.replace(r\"[$,]\", \"\", regex=True).astype(float)\n\n# Strip whitespace from string columns\nfor col in df.select_dtypes(include=\"object\"):\n    df[col] = df[col].str.strip()\n```\n\n## Saving Results\n\n```python\n# Save cleaned\u002Ffiltered data\ndf.to_csv(\"output.csv\", index=False)\n\n# Save specific columns\ndf[[\"name\", \"email\", \"revenue\"]].to_csv(\"subset.csv\", index=False)\n\n# Save as TSV\ndf.to_csv(\"output.tsv\", sep=\"\\t\", index=False)\n```\n\n## Gotchas\n\n- **Always inspect first**: Run `df.shape`, `df.dtypes`, `df.head()` before any analysis. Wrong assumptions about column types cause silent bugs.\n- **Encoding issues**: If `read_csv` fails with UnicodeDecodeError, try `encoding=\"latin1\"` or `encoding=\"utf-8-sig\"` (for files with BOM).\n- **CSV delimiter**: Not all \"CSV\" files use commas. Check for semicolons (`sep=\";\"`) or tabs (`sep=\"\\t\"`). Use `pd.read_csv(\"file.csv\", sep=None, engine=\"python\")` to auto-detect.\n- **Header row**: Some files have no header. Use `header=None` and assign `df.columns = [...]`.\n- **Numbers as strings**: Columns with `$`, `,`, or `%` load as strings. Strip formatting first, then convert to float.\n- **Dates**: Always convert with `pd.to_datetime(col, errors=\"coerce\")` so bad dates become `NaT` instead of crashing.\n- **Index in output**: Always use `index=False` in `to_csv()` and `to_markdown()` unless the index is meaningful.\n\n## Validation\n\nAfter analysis:\n1. Verify row counts — no unintended data loss from filters or dedup\n2. Check computed values are within expected ranges\n3. Ensure output CSV is readable: `pd.read_csv(\"output.csv\").head()`\n4. Never overwrite the original file — always save to a new filename\n\n## References\n\n- See [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for advanced patterns (multi-file joins, window functions, large file handling)\n","# Analyze CSV Files\n\n## When to use this skill\n\nUse this skill when the user needs to:\n- Load and inspect a CSV or TSV file\n- Get summary statistics (row count, column types, missing values)\n- Filter, sort, or search rows by conditions\n- Aggregate data (group by, sum, count, average)\n- Find top\u002Fbottom N items by a column\n- Answer specific questions about CSV data\n- Clean CSV data (fix types, handle missing values, deduplicate)\n\n## Prerequisites\n\n```bash\npip install pandas tabulate\n```\n\n## Quick Inspection\n\nAlways start by inspecting the file before any analysis:\n\n```python\nimport pandas as pd\n\ndf = pd.read_csv(\"data.csv\")\n\nprint(f\"Shape: {df.shape[0]} rows × {df.shape[1]} columns\\n\")\nprint(f\"Columns and types:\\n{df.dtypes.to_string()}\\n\")\nprint(f\"First 5 rows:\\n{df.head().to_markdown(index=False)}\\n\")\n\nmissing = df.isnull().sum()\nif missing.any():\n    print(f\"Missing values:\\n{missing[missing > 0].to_string()}\")\nelse:\n    print(\"No missing values\")\n```\n\nRun `scripts\u002Finspect_csv.py` for a one-command overview.\n\n## Filtering Rows\n\n```python\n# By condition\nhigh_revenue = df[df[\"revenue\"] > 10000]\n\n# Multiple conditions\nfiltered = df[(df[\"status\"] == \"active\") & (df[\"age\"] >= 18)]\n\n# String contains (case-insensitive)\nmatches = df[df[\"name\"].str.contains(\"smith\", case=False, na=False)]\n\n# Date range\ndf[\"date\"] = pd.to_datetime(df[\"date\"])\nrecent = df[df[\"date\"] >= \"2025-01-01\"]\n```\n\n## Sorting\n\n```python\n# Sort by one column (descending)\ntop = df.sort_values(\"revenue\", ascending=False)\n\n# Sort by multiple columns\nsorted_df = df.sort_values([\"category\", \"revenue\"], ascending=[True, False])\n\n# Top N\ntop_10 = df.nlargest(10, \"revenue\")\nbottom_5 = df.nsmallest(5, \"price\")\n```\n\n## Aggregation\n\n```python\n# Group by and aggregate\nsummary = df.groupby(\"category\").agg(\n    count=(\"id\", \"count\"),\n    total=(\"revenue\", \"sum\"),\n    average=(\"revenue\", \"mean\"),\n).sort_values(\"total\", ascending=False)\n\nprint(summary.to_markdown())\n```\n\n```python\n# Pivot table\npivot = df.pivot_table(\n    values=\"revenue\",\n    index=\"region\",\n    columns=\"quarter\",\n    aggfunc=\"sum\",\n    fill_value=0,\n)\nprint(pivot.to_markdown())\n```\n\n## Summary Statistics\n\n```python\n# Full numeric summary\nprint(df.describe().to_markdown())\n\n# Value counts for a categorical column\nprint(df[\"status\"].value_counts().to_markdown())\n\n# Unique values\nprint(f\"Unique categories: {df['category'].nunique()}\")\nprint(df[\"category\"].unique())\n```\n\n## Cleaning\n\n```python\n# Remove duplicates\nbefore = len(df)\ndf = df.drop_duplicates()\nprint(f\"Removed {before - len(df)} duplicates\")\n\n# Handle missing values\ndf[\"numeric_col\"] = df[\"numeric_col\"].fillna(df[\"numeric_col\"].median())\ndf[\"text_col\"] = df[\"text_col\"].fillna(\"Unknown\")\n\n# Fix currency strings → float\ndf[\"price\"] = df[\"price\"].str.replace(r\"[$,]\", \"\", regex=True).astype(float)\n\n# Strip whitespace from string columns\nfor col in df.select_dtypes(include=\"object\"):\n    df[col] = df[col].str.strip()\n```\n\n## Saving Results\n\n```python\n# Save cleaned\u002Ffiltered data\ndf.to_csv(\"output.csv\", index=False)\n\n# Save specific columns\ndf[[\"name\", \"email\", \"revenue\"]].to_csv(\"subset.csv\", index=False)\n\n# Save as TSV\ndf.to_csv(\"output.tsv\", sep=\"\\t\", index=False)\n```\n\n## Gotchas\n\n- **Always inspect first**: Run `df.shape`, `df.dtypes`, `df.head()` before any analysis. Wrong assumptions about column types cause silent bugs.\n- **Encoding issues**: If `read_csv` fails with UnicodeDecodeError, try `encoding=\"latin1\"` or `encoding=\"utf-8-sig\"` (for files with BOM).\n- **CSV delimiter**: Not all \"CSV\" files use commas. Check for semicolons (`sep=\";\"`) or tabs (`sep=\"\\t\"`). Use `pd.read_csv(\"file.csv\", sep=None, engine=\"python\")` to auto-detect.\n- **Header row**: Some files have no header. Use `header=None` and assign `df.columns = [...]`.\n- **Numbers as strings**: Columns with `$`, `,`, or `%` load as strings. Strip formatting first, then convert to float.\n- **Dates**: Always convert with `pd.to_datetime(col, errors=\"coerce\")` so bad dates become `NaT` instead of crashing.\n- **Index in output**: Always use `index=False` in `to_csv()` and `to_markdown()` unless the index is meaningful.\n\n## Validation\n\nAfter analysis:\n1. Verify row counts — no unintended data loss from filters or dedup\n2. Check computed values are within expected ranges\n3. Ensure output CSV is readable: `pd.read_csv(\"output.csv\").head()`\n4. Never overwrite the original file — always save to a new filename\n\n## References\n\n- See [references\u002FREFERENCE.md](references\u002FREFERENCE.md) for advanced patterns (multi-file joins, window functions, large file handling)\n",{"name":5,"license":15,"metadata":44,"description":47,"compatibility":48},{"author":45,"version":46},"welcome","1.0","Analyze CSV files — load, inspect, clean, filter, aggregate, and summarize tabular data from CSV and TSV files. Use when the user has a CSV file and wants to understand its contents, find patterns, compute statistics, filter rows, or answer questions about the data, even if they just say \"look at this spreadsheet\" or \"what's in this file.\"\n","Requires Python 3.10+ and pip","develop","d85a5e71a5e3e82038a005e5dfa50b6a78cafa7e",".github\u002Fskills\u002Fanalyze-csv-files",1,"https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills","https:\u002F\u002Fgithub.com\u002Fanjijava16","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fanjaiahmethuku\u002F","AI & Data Engineer ■ Real-time Streaming ■ BigData ■ Machine Learning ■ CLOUD ■ JAVA ■ PYTHON ■ Blog ■  Remain Curious And Keep Learning .....","2026-10-08 08:03:12",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add anjijava16\u002FAgent_Skills --skill analyze-csv-files",{"tool":64,"command":65},"bunx","bunx skills add anjijava16\u002FAgent_Skills --skill analyze-csv-files",{"tool":67,"command":68},"pnpm","pnpm dlx skills add anjijava16\u002FAgent_Skills --skill analyze-csv-files","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fanalyze-csv-files\u002FSKILL.md",true,[72,78],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002FREFERENCE.md","REFERENCE","参考文档",2211,"https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fanalyze-csv-files\u002Freferences\u002FREFERENCE.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Finspect_csv.py","SCRIPT","脚本",1331,"https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002F.github\u002Fskills\u002Fanalyze-csv-files\u002Fscripts\u002Finspect_csv.py",[85,104,126,142,156,173],{"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":39},"01M6K52P5M72CRGAHJTVAWSNRA","roll-dice","Roll dice using a random number generator. Use when asked to roll a die (d4, d6, d8, d10, d12, d20, d100), roll multiple dice, or generate random dice rolls for tabletop RPGs, board games, or decision making.","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002Froll-dice\u002FSKILL.md",[],[92,93,45,94,95,96,97,34,98,99,100,101,102,103],"roll dice","dice","generate","tabletop","decision","board","decision making","random","games","generator","number","for",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":39},"01M6K52JJKRBM0A5EXT12G87RW","pdf-service","Extract text and tables from PDFs, fill PDF forms, merge and split PDF files, and convert PDFs to other formats. Use when the user mentions PDFs, document extraction, form filling, or needs to manipulate PDF files.","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002Fpdf-service\u002FSKILL.md",[],[111,112,113,32,114,45,115,116,117,118,119,34,22,120,121,122,123,124,25,125],"PDF","service","pdf service","merge","extraction","convert","text","user","extract","document","forms","form","formats","split","fill",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M6K52EVG86E60AQFMJAZ1G09","pdf-processing","Extract text, tables, and metadata from PDF documents. Parse scanned PDFs with OCR, analyze PDF structure, and convert PDFs to other formats. Use when the user needs to read, parse, or extract content from PDF files, even if they just say \"get the text from this document.\"","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002Fpdf-processing\u002FSKILL.md",[],[111,133,134,32,135,136,116,21,117,36,137,34,33,22,120,138,139,140,141,25],"pdf processing","processing","documents","ocr","read","structure","get","tesseract","with",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":39},"01M6K52A7EC35DTS48PP0VX5TB","my-skill","A template skill for [describe task]. Use when the user asks to [trigger phrases].","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002Fmy-skill\u002FSKILL.md",[],[149,150,151,152,118,34,153,154,155,103],"my skill","my","template skill","template","task","trigger","name",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":39},"01M6K51Y5QVHMDX3F01JJRRV33","data-analysis","Analyze datasets — compute summary statistics, clean messy data, add derived columns, detect outliers, and generate charts. Use when the user has a CSV, TSV, Excel, or JSON data file and wants to explore, transform, visualize, or understand the data, even if they don't explicitly mention \"analysis.\"","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002Fdata-analysis\u002FSKILL.md",[],[163,164,165,166,32,167,45,94,38,20,168,169,21,34,23,30,170,171,172,25],"data analysis","data","analysis","xlsx","visualize","Charts","explore","add","transform","columns",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":39},"01M6K51P73MWRNWFM80SYVBST0","code-review","Review code for bugs, security vulnerabilities, performance issues, and style problems. Provide actionable feedback with severity levels and fix suggestions. Use when the user asks to review, audit, or check code quality, or wants a second pair of eyes on a pull request, diff, or code change.","https:\u002F\u002Fgithub.com\u002Fanjijava16\u002FAgent_Skills\u002Fblob\u002Fdevelop\u002Fcode-review\u002FSKILL.md",[],[180,181,182,183,184,185,186,187,188,189,190,191,192,34,193,194,195,141,103,196],"code review","review","code","performance","change","code quality","issues","pull","audit","severity","feedback","check","fix","diff","style","actionable","bugs"]