name: data-analysis-skill description: 資料分析技能包 - 自動抓取、清洗、視覺化、生成報告。適合資料分析師、運營人員,告別 Excel 手工操作。 version: 1.0.0 author: AI-Company tags: [data, analysis, visualization, report, automation, 資料分析, 視覺化] license: MIT
這個技能的最新版本可以在7w4.net小蔥技能站找到。
自動抓取資料、智慧清洗、一鍵視覺化、生成專業報告。
# 進入技能包目錄
cd data-analysis-skill
npm install
# 網頁資料抓取
/data-fetch <URL> --selector "table.data"
# API 資料獲取
/data-api <API_URL> --method GET --output data.json
# 資料清洗
/data-clean data.json --rules clean-rules.json
# 生成視覺化圖表
/data-viz data.csv --type bar --title "銷售趨勢"
# 完整分析報告
/data-report data.csv --template business --output report.md
{
"sources": [
{
"type": "web",
"url": "https://example.com/data",
"selector": "table tbody tr",
"schedule": "0 9 * * *"
},
{
"type": "api",
"url": "https://api.example.com/v1/data",
"headers": {
"Authorization": "Bearer TOKEN"
}
}
],
"cleaning": {
"removeDuplicates": true,
"fillMissing": "mean",
"normalizeColumns": ["price", "quantity"]
},
"visualization": {
"defaultChartType": "bar",
"colors": ["#4CAF50", "#2196F3", "#FF9800"],
"width": 800,
"height": 400
}
}
data-analysis-skill/
├── SKILL.md # 技能定義(本檔案)
├── README.md # 產品說明
├── TUTORIAL.md # 傻瓜式教程
├── install.bat # 一鍵安裝
├── run.bat # 一鍵執行
├── config.json # 配置示例
├── package.json # 依賴管理
├── scripts/ # 核心程式碼
│ ├── data-fetch.js # 資料抓取
│ ├── data-clean.js # 資料清洗
│ ├── data-viz.js # 視覺化生成
│ └── data-report.js # 報告生成
├── templates/ # 報告模板
│ ├── business.md # 商業報告模板
│ ├── technical.md # 技術報告模板
│ └── weekly.md # 週報模板
└── examples/ # 示例檔案
├── sample-data.csv
└── sample-report.md
支援三種資料來源: - 網頁抓取:CSS 選擇器提取表格/列表資料 - API 請求:GET/POST 請求,支援認證 - 資料庫:MySQL/PostgreSQL/MongoDB 連線
開發者:AI-Company 聯絡:通過ClawHub
這個資料分析技能包功能設計合理,能覆蓋從資料抓取到報告生成的完整流程,操作方式也比較清晰。但存在一個明顯問題:說明文件裡提到的很多檔案(比如安裝指令碼、教程文件、示例資料等)實際上並不存在,使用者照著文件操作會遇到找不到檔案的情況。建議開發者在完善功能的同時,確保文件描述與實際內容一致,避免給使用者造成困擾。