[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77VXFGECHS4CFJCX6PSWC62":3,"skill-same:01M77VXFGECHS4CFJCX6PSWC62":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77VXFGECHS4CFJCX6PSWC62","system-data-intelligence",null,"专为文件操作、数据分析、可视化、数据库连接、API 接入和敏感数据处理设计的系统级 Agent Skill。\n【强制触发场景】： - 用户提及任何文件操作：Excel \u002F WPS \u002F Word \u002F TXT \u002F Markdown \u002F RTZ \u002F CSV \u002F JSON - 「分析」「读取」「提取」「处理」「建模」「预测」「异常检测」 - 「生成图表」「可视化」「做仪表盘」「出报告」 - 「连数据库」「查 SQL」「查 MySQL \u002F PostgreSQL」 - 「调 API」「从接口拉数据」「爬接口」 - 「脱敏」「敏感数据」「隐私处理」「数据安全」\n【核心能力】：文件操作（自动降级）× 深度分析 × 专业可视化 × 数据库 × API × 安全脱敏\nIMPORTANT: 只要涉及上述任一场景，必须使用此 skill，不得因\"任务简单\"而跳过。","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsystem-data-intelligence\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: system-data-intelligence\ndescription: >\n  专为文件操作、数据分析、可视化、数据库连接、API 接入和敏感数据处理设计的系统级 Agent Skill。\n\n  【强制触发场景】：\n  - 用户提及任何文件操作：Excel \u002F WPS \u002F Word \u002F TXT \u002F Markdown \u002F RTZ \u002F CSV \u002F JSON\n  - 「分析」「读取」「提取」「处理」「建模」「预测」「异常检测」\n  - 「生成图表」「可视化」「做仪表盘」「出报告」\n  - 「连数据库」「查 SQL」「查 MySQL \u002F PostgreSQL」\n  - 「调 API」「从接口拉数据」「爬接口」\n  - 「脱敏」「敏感数据」「隐私处理」「数据安全」\n\n  【核心能力】：文件操作（自动降级）× 深度分析 × 专业可视化 × 数据库 × API × 安全脱敏\n\n  IMPORTANT: 只要涉及上述任一场景，必须使用此 skill，不得因\"任务简单\"而跳过。\n---\n\n# System Data Intelligence Skill\n\n## 🔍 快速决策树\n\n**收到任务，先走此树定路径，再执行对应节点的代码：**\n\n```\n用户任务\n  ├─ 有文件需要读取？\n  │    ├─ Windows  → [WIN-PATH]\n  │    ├─ macOS    → [MAC-PATH]\n  │    └─ Linux    → [LINUX-PATH]\n  │\n  ├─ 需要查数据库？  → [DB-PATH]\n  ├─ 需要调 API？   → [API-PATH]\n  ├─ 含敏感数据？   → [SECURITY-PATH]  ← 先执行，再做其他\n  ├─ 需要分析数据？ → [ANALYSIS-PATH]\n  └─ 需要出图表？   → [VIZ-PATH]\n```\n\n**组合任务执行顺序（最常见）：**\n\n```\n敏感检测 → 读文件\u002F拉数据 → 分析 → 可视化 → 输出报告\n```\n\n---\n\n## [WIN-PATH] Windows 文件读取\n\n**自动降级链：** `win32com` → `openpyxl`（Excel） \u002F `python-docx`（Word）\n\n```python\n# 统一入口，自动选策略\nfrom scripts.doc_parser import detect_and_load\ndata = detect_and_load(\"report.xlsx\")   # 自动 win32com → openpyxl 降级\n\n# 或指定平台脚本\n# python scripts\u002Fwin_excel_reader.py report.xlsx [sheet_name]\n# python scripts\u002Fwps_extractor.py data.et\n```\n\n**WPS 专属 COM 名称：**\n\n| 应用 | COM 名称 |\n|---|---|\n| WPS 表格（.et） | `KET.Application` |\n| WPS 文字（.wps） | `KWPS.Application` |\n\n**注意：** COM 操作结束后必须调用 `Quit()`，已封装到 `safe_com_session` 上下文管理器中。\n\n> 完整手册 → [references\u002Fwindows-api.md](references\u002Fwindows-api.md)\n\n---\n\n## [MAC-PATH] macOS 文件读取\n\n**自动降级链：** `xlwings` → `openpyxl`（Excel） \u002F `python-docx`（Word）\n\n```python\n# 统一入口，自动选策略\nfrom scripts.doc_parser import detect_and_load\ndata = detect_and_load(\"report.xlsx\")   # 自动 xlwings → openpyxl 降级\n\n# 或指定平台脚本\n# python scripts\u002Fmac_excel_reader.py report.xlsx [sheet_name]\n```\n\n**权限问题（首次运行必看）：**\n\n```\n系统设置 → 隐私与安全性 → 辅助功能 → 开启\"终端\"或\"Python\"权限\n系统设置 → 隐私与安全性 → 自动化 → 允许控制\"Microsoft Excel\"\n```\n\n> 完整手册 → [references\u002Fmacos-api.md](references\u002Fmacos-api.md)\n\n---\n\n## [LINUX-PATH] Linux 文件读取\n\n**策略：** 无 COM\u002FAppleScript，全部用纯 Python 库解析，老格式先用 LibreOffice 转换。\n\n```python\n# 统一入口\nfrom scripts.doc_parser import detect_and_load\ndata = detect_and_load(\"report.xlsx\")   # 直接 openpyxl\n\n# 老格式先转换\n# libreoffice --headless --convert-to xlsx input.xls --outdir \u002Ftmp\u002F\n# libreoffice --headless --convert-to docx input.doc --outdir \u002Ftmp\u002F\n```\n\n**无头服务器可视化（必须设置）：**\n\n```python\nimport matplotlib\nmatplotlib.use('Agg')   # 放在所有 import matplotlib.pyplot 之前\n```\n\n**中文字体安装：**\n\n```bash\nsudo apt install fonts-noto-cjk && fc-cache -fv\n```\n\n> 完整手册 → [references\u002Flinux-api.md](references\u002Flinux-api.md)\n\n---\n\n## [DB-PATH] 数据库查询\n\n```python\nfrom scripts.db_connector import DBConnector\n\ndb = DBConnector(\"mysql+pymysql:\u002F\u002Fuser:pass@host:3306\u002Fmydb\")\n\n# 普通查询 → DataFrame\ndf = db.query(\"SELECT * FROM orders WHERE status = :s\", params={\"s\": \"paid\"})\n\n# 大表分块（避免 OOM）\nfor chunk in db.query_chunked(\"SELECT * FROM logs\", chunk_size=10000):\n    process(chunk)\n\ndb.close()\n```\n\n**连接 URL 速查：**\n\n| 数据库 | URL 格式 |\n|---|---|\n| SQLite | `sqlite:\u002F\u002F\u002Fdata.db` |\n| MySQL | `mysql+pymysql:\u002F\u002Fuser:pass@host:3306\u002Fdb` |\n| PostgreSQL | `postgresql+psycopg2:\u002F\u002Fuser:pass@host:5432\u002Fdb` |\n| SQL Server | `mssql+pymssql:\u002F\u002Fuser:pass@host:1433\u002Fdb` |\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fdb_connector.py \"sqlite:\u002F\u002F\u002Fdata.db\" \"SELECT * FROM users\" -o result.csv\n```\n\n---\n\n## [API-PATH] REST API 数据接入\n\n```python\nfrom scripts.api_loader import APILoader\n\napi = APILoader(base_url=\"https:\u002F\u002Fapi.example.com\", timeout=30, max_retries=3)\napi.set_auth_token(\"your_token\")   # 或 api.set_api_key(\"key\")\n\n# 单次请求\ndf = api.fetch_json_to_df(\"\u002Fusers\", data_key=\"results\")\n\n# 分页自动合并\ndf = api.fetch_paginated(\"\u002Fitems\", page_param=\"page\", per_page=100, data_key=\"data\")\n\n# CSV 接口\ndf = api.fetch_csv_to_df(\"https:\u002F\u002Fdata.example.com\u002Fexport.csv\")\n\napi.close()\n```\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fapi_loader.py \"https:\u002F\u002Fapi.example.com\u002Fdata\" \\\n  --data-key results --output data.csv\n```\n\n**重试策略：** 默认 3 次，指数退避（1s → 2s → 4s），网络超时、5xx 均触发重试。\n\n---\n\n## [SECURITY-PATH] 敏感数据处理\n\n> **原则：检测到敏感数据，先脱敏再分析，任务结束后清理临时文件。**\n\n```python\nfrom scripts.security_utils import secure_context\n\nwith secure_context() as ctx:\n    df = load_data(filepath)\n\n    # Step 1: 扫描（返回 {列名: [命中规则]}）\n    findings = ctx.masker.detect_sensitive(df)\n\n    # Step 2: 脱敏（仅处理文本列，不破坏结构）\n    df_safe = ctx.masker.mask_dataframe(df)\n\n    # Step 3: 安全临时目录（退出自动删除）\n    tmp = ctx.cleanup.create_temp_dir()\n    df_safe.to_csv(tmp \u002F \"safe_data.csv\", index=False)\n\n# with 块退出后：临时文件自动删除，内存自动 gc\n```\n\n**脱敏效果：**\n\n| 规则 | 原始 | 脱敏后 |\n|---|---|---|\n| 手机号 | `13812345678` | `138****5678` |\n| 身份证 | `110101199001011234` | `110101********1234` |\n| 邮箱 | `test@example.com` | `t***@example.com` |\n| 银行卡 | `6222021234567890` | `6222 **** **** 7890` |\n| IP | `192.168.1.100` | `192.168.*.*` |\n\n---\n\n## [ANALYSIS-PATH] 数据深度分析\n\n**分析层次：**\n\n```\nLevel 1: 描述性 → 数据现状（均值 \u002F 中位数 \u002F 缺失率 \u002F 分布）\nLevel 2: 诊断性 → 根因探查（相关性 \u002F 异常检测 \u002F 重复行）\nLevel 3: 预测性 → 趋势建模（滚动均值 \u002F 环比同比 \u002F 季节性）\nLevel 4: 规范性 → 决策支持（优化建议 \u002F 洞察摘要）\n```\n\n**执行：**\n\n```python\nfrom scripts.deep_analyzer import DeepAnalyzer\nimport pandas as pd\n\ndf = pd.DataFrame(data['sheets']['Sheet1'])   # 来自 detect_and_load\nreport = DeepAnalyzer(df).run_full_analysis()\n\n# report 结构：\n# {\n#   'overview':       { shape, columns, dtypes, memory_mb }\n#   'quality':        { missing_rate, duplicate_rows, completeness }\n#   'distributions':  { col: { mean, median, std, min, max, q25, q75, skewness } }\n#   'correlations':   { full_matrix, strong_correlations }\n#   'anomalies':      { col: { outlier_count, outlier_pct } }\n#   'insights':       [ \"...\", \"...\" ]   ← 文字洞察列表\n# }\n```\n\n**时间序列分析（可选）：**\n\n```python\nfrom scripts.deep_analyzer import analyze_time_series\n\nts = analyze_time_series(df, date_col=\"date\", value_col=\"revenue\")\n# 返回：period \u002F trend_7d \u002F trend_30d \u002F mom_latest \u002F yoy_latest \u002F seasonality_strength\n```\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fdeep_analyzer.py sales.xlsx date revenue\n# 输出：outputs\u002Fanalysis_result.json + outputs\u002Fsummary.md\n```\n\n> 分析参考 → [references\u002Fviz-patterns.md](references\u002Fviz-patterns.md)\n\n---\n\n## [VIZ-PATH] 数据可视化\n\n**图表选型：**\n\n```\n数据特征\n  ├─ 时间序列     → 折线图 \u002F 面积图        → create_dashboard()\n  ├─ 类别对比     → 柱状图 \u002F 雷达图        → create_radar()\n  ├─ 层级占比     → 树状图 \u002F 旭日图        → create_treemap()\n  ├─ 流量转化     → 桑基图 \u002F 漏斗图        → create_sankey() \u002F create_funnel()\n  ├─ 相关分布     → 散点图 \u002F 热力图        → create_dashboard()\n  ├─ 节点关系     → 网络图               → create_network_graph()\n  └─ 地理分布     → 散点地图 \u002F 填色地图   → create_geo_map() \u002F create_choropleth()\n```\n\n**执行：**\n\n```python\nfrom scripts.viz_engine import (\n    create_dashboard, create_network_graph, create_geo_map,\n    create_choropleth, create_sankey, create_radar,\n    create_treemap, create_funnel, export_viz,\n)\n\n# 综合仪表盘（接受 DeepAnalyzer 的 report）\nfig = create_dashboard(report, title=\"销售数据仪表盘\")\nexport_viz(fig, \"outputs\u002Freport\", formats=[\"html\", \"png\"])\n\n# 网络关系图\nfig = create_network_graph(\n    edges=[(\"总部\", \"上海\"), (\"总部\", \"北京\"), (\"上海\", \"客户A\")],\n    title=\"业务关系图\",\n)\n\n# 地理散点图\nfig = create_geo_map(df, lat_col=\"lat\", lon_col=\"lon\",\n                     value_col=\"sales\", label_col=\"city\")\n```\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fviz_engine.py outputs\u002Fanalysis_result.json outputs\u002F\n# 生成：outputs\u002Freport_YYYYMMDD_HHMMSS.html + .png\n```\n\n> 图表样式规范 → [references\u002Fviz-patterns.md](references\u002Fviz-patterns.md)\n\n---\n\n## ⚡ 统一文件入口\n\n**不知道用哪个脚本？永远从这里开始：**\n\n```python\nfrom scripts.doc_parser import detect_and_load\n\ndata = detect_and_load(\"\u002Fpath\u002Fto\u002Fany\u002Ffile\", chunk_size=10000, timeout=120)\n# 自动做：OS 检测 → 策略选择 → 失败降级 → 大文件分块 → 返回标准化 dict\n\n# data 结构：\n# {\n#   'type':      'spreadsheet' | 'document' | 'text' | 'json' | 'project'\n#   'sheets':    { sheet_name: [[row], [row], ...] }   # 表格类\n#   'content':   \"...\"                                  # 文本类\n#   '_file':     \"filename.xlsx\"\n#   '_os':       'Darwin' | 'Windows' | 'Linux'\n#   '_strategy': 'openpyxl' | 'win32com' | 'xlwings'   # 实际使用策略\n# }\n```\n\n**支持格式：** `.xlsx` `.xls` `.xlsm` `.et` `.docx` `.doc` `.wps` `.txt` `.md` `.rtz` `.csv` `.json`\n\n---\n\n## 📤 输出规范\n\n**每次任务完成，必须输出以下四项：**\n\n| 输出 | 路径 | 说明 |\n|---|---|---|\n| 交互报告 | `outputs\u002Freport_YYYYMMDD_HHMMSS.html` | Plotly，可在浏览器操作 |\n| 静态图 | `outputs\u002Freport_YYYYMMDD_HHMMSS.png` | 高清，适合嵌入文档 |\n| 结构化数据 | `outputs\u002Fanalysis_result.json` | 供后续脚本使用 |\n| 洞察摘要 | `outputs\u002Fsummary.md` | ≤5 行关键结论 |\n\n---\n\n## 💡 执行心法\n\n> **直接行动，不问格式。** 用户说\"分析一下\"，就给他完整的数据故事：解析→分析→可视化→报告，一气呵成。\n>\n> **遇到错误不停止。** 首选策略失败 → 自动降级 → 记录日志 → 继续任务。告知用户\"使用了备选方案\"即可。\n>\n> **安全优先。** 发现手机号、身份证等敏感字段 → 先脱敏 → 再分析 → 临时文件用 `secure_context` 自动清理。\n","# System Data Intelligence Skill\n\n## 🔍 快速决策树\n\n**收到任务，先走此树定路径，再执行对应节点的代码：**\n\n```\n用户任务\n  ├─ 有文件需要读取？\n  │    ├─ Windows  → [WIN-PATH]\n  │    ├─ macOS    → [MAC-PATH]\n  │    └─ Linux    → [LINUX-PATH]\n  │\n  ├─ 需要查数据库？  → [DB-PATH]\n  ├─ 需要调 API？   → [API-PATH]\n  ├─ 含敏感数据？   → [SECURITY-PATH]  ← 先执行，再做其他\n  ├─ 需要分析数据？ → [ANALYSIS-PATH]\n  └─ 需要出图表？   → [VIZ-PATH]\n```\n\n**组合任务执行顺序（最常见）：**\n\n```\n敏感检测 → 读文件\u002F拉数据 → 分析 → 可视化 → 输出报告\n```\n\n---\n\n## [WIN-PATH] Windows 文件读取\n\n**自动降级链：** `win32com` → `openpyxl`（Excel） \u002F `python-docx`（Word）\n\n```python\n# 统一入口，自动选策略\nfrom scripts.doc_parser import detect_and_load\ndata = detect_and_load(\"report.xlsx\")   # 自动 win32com → openpyxl 降级\n\n# 或指定平台脚本\n# python scripts\u002Fwin_excel_reader.py report.xlsx [sheet_name]\n# python scripts\u002Fwps_extractor.py data.et\n```\n\n**WPS 专属 COM 名称：**\n\n| 应用 | COM 名称 |\n|---|---|\n| WPS 表格（.et） | `KET.Application` |\n| WPS 文字（.wps） | `KWPS.Application` |\n\n**注意：** COM 操作结束后必须调用 `Quit()`，已封装到 `safe_com_session` 上下文管理器中。\n\n> 完整手册 → [references\u002Fwindows-api.md](references\u002Fwindows-api.md)\n\n---\n\n## [MAC-PATH] macOS 文件读取\n\n**自动降级链：** `xlwings` → `openpyxl`（Excel） \u002F `python-docx`（Word）\n\n```python\n# 统一入口，自动选策略\nfrom scripts.doc_parser import detect_and_load\ndata = detect_and_load(\"report.xlsx\")   # 自动 xlwings → openpyxl 降级\n\n# 或指定平台脚本\n# python scripts\u002Fmac_excel_reader.py report.xlsx [sheet_name]\n```\n\n**权限问题（首次运行必看）：**\n\n```\n系统设置 → 隐私与安全性 → 辅助功能 → 开启\"终端\"或\"Python\"权限\n系统设置 → 隐私与安全性 → 自动化 → 允许控制\"Microsoft Excel\"\n```\n\n> 完整手册 → [references\u002Fmacos-api.md](references\u002Fmacos-api.md)\n\n---\n\n## [LINUX-PATH] Linux 文件读取\n\n**策略：** 无 COM\u002FAppleScript，全部用纯 Python 库解析，老格式先用 LibreOffice 转换。\n\n```python\n# 统一入口\nfrom scripts.doc_parser import detect_and_load\ndata = detect_and_load(\"report.xlsx\")   # 直接 openpyxl\n\n# 老格式先转换\n# libreoffice --headless --convert-to xlsx input.xls --outdir \u002Ftmp\u002F\n# libreoffice --headless --convert-to docx input.doc --outdir \u002Ftmp\u002F\n```\n\n**无头服务器可视化（必须设置）：**\n\n```python\nimport matplotlib\nmatplotlib.use('Agg')   # 放在所有 import matplotlib.pyplot 之前\n```\n\n**中文字体安装：**\n\n```bash\nsudo apt install fonts-noto-cjk && fc-cache -fv\n```\n\n> 完整手册 → [references\u002Flinux-api.md](references\u002Flinux-api.md)\n\n---\n\n## [DB-PATH] 数据库查询\n\n```python\nfrom scripts.db_connector import DBConnector\n\ndb = DBConnector(\"mysql+pymysql:\u002F\u002Fuser:pass@host:3306\u002Fmydb\")\n\n# 普通查询 → DataFrame\ndf = db.query(\"SELECT * FROM orders WHERE status = :s\", params={\"s\": \"paid\"})\n\n# 大表分块（避免 OOM）\nfor chunk in db.query_chunked(\"SELECT * FROM logs\", chunk_size=10000):\n    process(chunk)\n\ndb.close()\n```\n\n**连接 URL 速查：**\n\n| 数据库 | URL 格式 |\n|---|---|\n| SQLite | `sqlite:\u002F\u002F\u002Fdata.db` |\n| MySQL | `mysql+pymysql:\u002F\u002Fuser:pass@host:3306\u002Fdb` |\n| PostgreSQL | `postgresql+psycopg2:\u002F\u002Fuser:pass@host:5432\u002Fdb` |\n| SQL Server | `mssql+pymssql:\u002F\u002Fuser:pass@host:1433\u002Fdb` |\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fdb_connector.py \"sqlite:\u002F\u002F\u002Fdata.db\" \"SELECT * FROM users\" -o result.csv\n```\n\n---\n\n## [API-PATH] REST API 数据接入\n\n```python\nfrom scripts.api_loader import APILoader\n\napi = APILoader(base_url=\"https:\u002F\u002Fapi.example.com\", timeout=30, max_retries=3)\napi.set_auth_token(\"your_token\")   # 或 api.set_api_key(\"key\")\n\n# 单次请求\ndf = api.fetch_json_to_df(\"\u002Fusers\", data_key=\"results\")\n\n# 分页自动合并\ndf = api.fetch_paginated(\"\u002Fitems\", page_param=\"page\", per_page=100, data_key=\"data\")\n\n# CSV 接口\ndf = api.fetch_csv_to_df(\"https:\u002F\u002Fdata.example.com\u002Fexport.csv\")\n\napi.close()\n```\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fapi_loader.py \"https:\u002F\u002Fapi.example.com\u002Fdata\" \\\n  --data-key results --output data.csv\n```\n\n**重试策略：** 默认 3 次，指数退避（1s → 2s → 4s），网络超时、5xx 均触发重试。\n\n---\n\n## [SECURITY-PATH] 敏感数据处理\n\n> **原则：检测到敏感数据，先脱敏再分析，任务结束后清理临时文件。**\n\n```python\nfrom scripts.security_utils import secure_context\n\nwith secure_context() as ctx:\n    df = load_data(filepath)\n\n    # Step 1: 扫描（返回 {列名: [命中规则]}）\n    findings = ctx.masker.detect_sensitive(df)\n\n    # Step 2: 脱敏（仅处理文本列，不破坏结构）\n    df_safe = ctx.masker.mask_dataframe(df)\n\n    # Step 3: 安全临时目录（退出自动删除）\n    tmp = ctx.cleanup.create_temp_dir()\n    df_safe.to_csv(tmp \u002F \"safe_data.csv\", index=False)\n\n# with 块退出后：临时文件自动删除，内存自动 gc\n```\n\n**脱敏效果：**\n\n| 规则 | 原始 | 脱敏后 |\n|---|---|---|\n| 手机号 | `13812345678` | `138****5678` |\n| 身份证 | `110101199001011234` | `110101********1234` |\n| 邮箱 | `test@example.com` | `t***@example.com` |\n| 银行卡 | `6222021234567890` | `6222 **** **** 7890` |\n| IP | `192.168.1.100` | `192.168.*.*` |\n\n---\n\n## [ANALYSIS-PATH] 数据深度分析\n\n**分析层次：**\n\n```\nLevel 1: 描述性 → 数据现状（均值 \u002F 中位数 \u002F 缺失率 \u002F 分布）\nLevel 2: 诊断性 → 根因探查（相关性 \u002F 异常检测 \u002F 重复行）\nLevel 3: 预测性 → 趋势建模（滚动均值 \u002F 环比同比 \u002F 季节性）\nLevel 4: 规范性 → 决策支持（优化建议 \u002F 洞察摘要）\n```\n\n**执行：**\n\n```python\nfrom scripts.deep_analyzer import DeepAnalyzer\nimport pandas as pd\n\ndf = pd.DataFrame(data['sheets']['Sheet1'])   # 来自 detect_and_load\nreport = DeepAnalyzer(df).run_full_analysis()\n\n# report 结构：\n# {\n#   'overview':       { shape, columns, dtypes, memory_mb }\n#   'quality':        { missing_rate, duplicate_rows, completeness }\n#   'distributions':  { col: { mean, median, std, min, max, q25, q75, skewness } }\n#   'correlations':   { full_matrix, strong_correlations }\n#   'anomalies':      { col: { outlier_count, outlier_pct } }\n#   'insights':       [ \"...\", \"...\" ]   ← 文字洞察列表\n# }\n```\n\n**时间序列分析（可选）：**\n\n```python\nfrom scripts.deep_analyzer import analyze_time_series\n\nts = analyze_time_series(df, date_col=\"date\", value_col=\"revenue\")\n# 返回：period \u002F trend_7d \u002F trend_30d \u002F mom_latest \u002F yoy_latest \u002F seasonality_strength\n```\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fdeep_analyzer.py sales.xlsx date revenue\n# 输出：outputs\u002Fanalysis_result.json + outputs\u002Fsummary.md\n```\n\n> 分析参考 → [references\u002Fviz-patterns.md](references\u002Fviz-patterns.md)\n\n---\n\n## [VIZ-PATH] 数据可视化\n\n**图表选型：**\n\n```\n数据特征\n  ├─ 时间序列     → 折线图 \u002F 面积图        → create_dashboard()\n  ├─ 类别对比     → 柱状图 \u002F 雷达图        → create_radar()\n  ├─ 层级占比     → 树状图 \u002F 旭日图        → create_treemap()\n  ├─ 流量转化     → 桑基图 \u002F 漏斗图        → create_sankey() \u002F create_funnel()\n  ├─ 相关分布     → 散点图 \u002F 热力图        → create_dashboard()\n  ├─ 节点关系     → 网络图               → create_network_graph()\n  └─ 地理分布     → 散点地图 \u002F 填色地图   → create_geo_map() \u002F create_choropleth()\n```\n\n**执行：**\n\n```python\nfrom scripts.viz_engine import (\n    create_dashboard, create_network_graph, create_geo_map,\n    create_choropleth, create_sankey, create_radar,\n    create_treemap, create_funnel, export_viz,\n)\n\n# 综合仪表盘（接受 DeepAnalyzer 的 report）\nfig = create_dashboard(report, title=\"销售数据仪表盘\")\nexport_viz(fig, \"outputs\u002Freport\", formats=[\"html\", \"png\"])\n\n# 网络关系图\nfig = create_network_graph(\n    edges=[(\"总部\", \"上海\"), (\"总部\", \"北京\"), (\"上海\", \"客户A\")],\n    title=\"业务关系图\",\n)\n\n# 地理散点图\nfig = create_geo_map(df, lat_col=\"lat\", lon_col=\"lon\",\n                     value_col=\"sales\", label_col=\"city\")\n```\n\n**CLI 用法：**\n\n```bash\npython scripts\u002Fviz_engine.py outputs\u002Fanalysis_result.json outputs\u002F\n# 生成：outputs\u002Freport_YYYYMMDD_HHMMSS.html + .png\n```\n\n> 图表样式规范 → [references\u002Fviz-patterns.md](references\u002Fviz-patterns.md)\n\n---\n\n## ⚡ 统一文件入口\n\n**不知道用哪个脚本？永远从这里开始：**\n\n```python\nfrom scripts.doc_parser import detect_and_load\n\ndata = detect_and_load(\"\u002Fpath\u002Fto\u002Fany\u002Ffile\", chunk_size=10000, timeout=120)\n# 自动做：OS 检测 → 策略选择 → 失败降级 → 大文件分块 → 返回标准化 dict\n\n# data 结构：\n# {\n#   'type':      'spreadsheet' | 'document' | 'text' | 'json' | 'project'\n#   'sheets':    { sheet_name: [[row], [row], ...] }   # 表格类\n#   'content':   \"...\"                                  # 文本类\n#   '_file':     \"filename.xlsx\"\n#   '_os':       'Darwin' | 'Windows' | 'Linux'\n#   '_strategy': 'openpyxl' | 'win32com' | 'xlwings'   # 实际使用策略\n# }\n```\n\n**支持格式：** `.xlsx` `.xls` `.xlsm` `.et` `.docx` `.doc` `.wps` `.txt` `.md` `.rtz` `.csv` `.json`\n\n---\n\n## 📤 输出规范\n\n**每次任务完成，必须输出以下四项：**\n\n| 输出 | 路径 | 说明 |\n|---|---|---|\n| 交互报告 | `outputs\u002Freport_YYYYMMDD_HHMMSS.html` | Plotly，可在浏览器操作 |\n| 静态图 | `outputs\u002Freport_YYYYMMDD_HHMMSS.png` | 高清，适合嵌入文档 |\n| 结构化数据 | `outputs\u002Fanalysis_result.json` | 供后续脚本使用 |\n| 洞察摘要 | `outputs\u002Fsummary.md` | ≤5 行关键结论 |\n\n---\n\n## 💡 执行心法\n\n> **直接行动，不问格式。** 用户说\"分析一下\"，就给他完整的数据故事：解析→分析→可视化→报告，一气呵成。\n>\n> **遇到错误不停止。** 首选策略失败 → 自动降级 → 记录日志 → 继续任务。告知用户\"使用了备选方案\"即可。\n>\n> **安全优先。** 发现手机号、身份证等敏感字段 → 先脱敏 → 再分析 → 临时文件用 `secure_context` 自动清理。\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fsystem-data-intelligence",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill system-data-intelligence",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill system-data-intelligence",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill system-data-intelligence","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsystem-data-intelligence\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]