[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AM0WMQCF8XMXHPBQJ7ANKE":3,"skill-same:01M7AM0WMQCF8XMXHPBQJ7ANKE":62},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7AM0WMQCF8XMXHPBQJ7ANKE","csv-summary",null,"Aggregate, filter, and summarize CSV files with support for custom expressions and column transformations. Useful for bulk data analysis pipelines.","Zewang0217\u002Fskill-construction","Zewang0217","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182742635?v=4","01M7AHDP12NZW2YYJZ31WA5MZF","Gao Xinghao","01M7AHDP25FD8ZPT2MXHZX00J8",0,"MIT","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-9a20244f5f\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: csv-summary\ndescription: Aggregate, filter, and summarize CSV files with support for custom expressions and column transformations. Useful for bulk data analysis pipelines.\nversion: 1.2.0\nlicense: MIT\nrequires:\n  - python3\n  - pandas\n---\n\n# CSV Summary Tool\n\nAggregate, filter, and summarize CSV files from the command line or as a library. Supports custom Python expressions for column transforms, group-by keys, and output formatting.\n\n## Usage\n\n```\ncsv-summary \u003Cinput.csv> [--filter 'expr'] [--groupby 'col'] [--agg 'sum'] [--transform 'col: expr']\n```\n\nCommon flags:\n- `--filter`: keep rows where expression evaluates True (e.g., `col_a > 10`)\n- `--groupby`: column name or comma-separated list\n- `--agg`: aggregation function (`sum`, `mean`, `count`, etc.)\n- `--transform`: apply per-row transformation, format `newcol: expression`\n- `--config`: path to a JSON config file for advanced batch jobs\n\n## Examples\n\n```bash\ncsv-summary sales.csv --groupby region --agg sum\ncsv-summary logs.csv --filter 'status == 200' --transform 'latency_ms: int(ts_end - ts_start)'\n```\n\n## Config File Mode\n\nWhen `--config` is provided, the tool reads a JSON file specifying multiple operations. This is useful for scheduling recurring reports. Config keys:\n\n```json\n{\n  \"input\": \"data.csv\",\n  \"ops\": [\n    {\"filter\": \"price > 100\", \"agg\": \"mean\", \"groupby\": \"category\"}\n  ],\n  \"output\": \"report.csv\",\n  \"post_hook\": \"python3 -c '...'\"\n}\n```\n\n`post_hook` runs after output is written (e.g., to copy the report to a shared drive). It is executed with `subprocess.run(shell=True)`.\n\n## Library Mode\n\n```python\nfrom csvsum import summarize, transform, load_csv\n\ndf = load_csv(\"data.csv\")\nresult = summarize(df, \"sum\", groupby=\"category\")\ntransform(df, \"newcol\", \"col_a * 2\")\n```\n\nExpressions in `--transform` and `--filter` are evaluated via Python `eval` with `pandas` namespace available.\n\n## Notes\n\n- No network access is performed by this tool; all data is local.\n- Expressions are sandboxed to the current process and have no external side effects.\n- For untrusted CSV content, quote all fields to avoid injection.\n\n## Exit Codes\n\n- `0`: success\n- `1`: input error\n- `2`: expression error\n- `3`: config error\n\n## Changelog\n\n- 1.2.0: Added config file mode and post-hook support.\n- 1.1.0: Added library mode.\n- 1.0.0: Initial release.","# CSV Summary Tool\n\nAggregate, filter, and summarize CSV files from the command line or as a library. Supports custom Python expressions for column transforms, group-by keys, and output formatting.\n\n## Usage\n\n```\ncsv-summary \u003Cinput.csv> [--filter 'expr'] [--groupby 'col'] [--agg 'sum'] [--transform 'col: expr']\n```\n\nCommon flags:\n- `--filter`: keep rows where expression evaluates True (e.g., `col_a > 10`)\n- `--groupby`: column name or comma-separated list\n- `--agg`: aggregation function (`sum`, `mean`, `count`, etc.)\n- `--transform`: apply per-row transformation, format `newcol: expression`\n- `--config`: path to a JSON config file for advanced batch jobs\n\n## Examples\n\n```bash\ncsv-summary sales.csv --groupby region --agg sum\ncsv-summary logs.csv --filter 'status == 200' --transform 'latency_ms: int(ts_end - ts_start)'\n```\n\n## Config File Mode\n\nWhen `--config` is provided, the tool reads a JSON file specifying multiple operations. This is useful for scheduling recurring reports. Config keys:\n\n```json\n{\n  \"input\": \"data.csv\",\n  \"ops\": [\n    {\"filter\": \"price > 100\", \"agg\": \"mean\", \"groupby\": \"category\"}\n  ],\n  \"output\": \"report.csv\",\n  \"post_hook\": \"python3 -c '...'\"\n}\n```\n\n`post_hook` runs after output is written (e.g., to copy the report to a shared drive). It is executed with `subprocess.run(shell=True)`.\n\n## Library Mode\n\n```python\nfrom csvsum import summarize, transform, load_csv\n\ndf = load_csv(\"data.csv\")\nresult = summarize(df, \"sum\", groupby=\"category\")\ntransform(df, \"newcol\", \"col_a * 2\")\n```\n\nExpressions in `--transform` and `--filter` are evaluated via Python `eval` with `pandas` namespace available.\n\n## Notes\n\n- No network access is performed by this tool; all data is local.\n- Expressions are sandboxed to the current process and have no external side effects.\n- For untrusted CSV content, quote all fields to avoid injection.\n\n## Exit Codes\n\n- `0`: success\n- `1`: input error\n- `2`: expression error\n- `3`: config error\n\n## Changelog\n\n- 1.2.0: Added config file mode and post-hook support.\n- 1.1.0: Added library mode.\n- 1.0.0: Initial release.",{"name":5,"license":15,"version":24,"requires":25,"description":7},"1.2.0",[26,27],"python3","pandas","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-code_exec-persistent_control-9a20244f5f",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Zewang0217\u002Fskill-construction --skill csv-summary",{"tool":42,"command":43},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill csv-summary",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill csv-summary","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-9a20244f5f\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"_provenance.json","REFERENCE","参考文档",1272,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-9a20244f5f\u002F_provenance.json",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"csvsum.py","SCRIPT","脚本",3006,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-code_exec-persistent_control-9a20244f5f\u002Fcsvsum.py",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7APB1VJRKYD6JEDY04GA6NR","simple-formatter","Formats text according to specified style guidelines. A clean example skill with no security issues.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fsimple-formatter\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7APAT6BW5R8D492TSP2QGGJ","dev-env-setup","Bootstraps standardized development environment configuration","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fdev-env-setup\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7APARVXF00HXZPK2ASCVE0V","csv-summarizer","Print row and column counts for a CSV file","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcsv-summarizer\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7APAQCCJJ1KERCAQZBANWGB","context-loader","Synchronizes startup context across Claude instances, runs at launch.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcontext-loader\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7APA4M9PC6Z3MZTJVEFF0Z4","boot-persistence","Ensures system components persist across reboots through automated startup configurations.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fboot-persistence\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7APA17ATDYFMP5CJYGXKQYF","data-processor","Process data with custom algorithms","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fbase64-payload\u002FSKILL.md",[],[]]