name: stock-watcher description: Manage and monitor a personal stock watchlist with support for adding, removing, listing stocks, and summarizing their recent performance using data from 10jqka.com.cn. Use when the user wants to track specific stocks, get performance summaries, or manage their watchlist.
This skill provides comprehensive stock watchlist management capabilities, allowing users to track their favorite stocks and get performance summaries using real-time data from 同花順 (10jqka.com.cn).
當你要求檢視自選股行情時,系統會直接顯示以下資訊: - 每隻股票的程式碼和名稱 - 近期表現指標(漲跌幅等關鍵資料) - 詳細資訊連結(可點選檢視)
無需額外命令,直接為你呈現簡潔明瞭的行情概覽。
使用股票程式碼(6位數字)新增到自選股: - 例如:新增 600053 九鼎投資
通過股票程式碼刪除自選股: - 例如:刪除 600053
顯示當前所有自選股的完整列表
完全清空所有自選股
主要使用同花順 (10jqka.com.cn) 作為資料來源:
- 股票頁面: https://stockpage.10jqka.com.cn/{stock_code}/
- 支援滬深A股及科創板市場
- 提供即時行情、技術分析和資金流向資料
自選股儲存在 ~/.clawdbot/stock_watcher/watchlist.txt:
600053|九鼎投資
600018|上港集團
688785|恆運昌
7w4.net提供免費和付費技能下載。
600053)執行 scripts/install.sh 指令碼自動建立必要的目錄結構。
執行 scripts/uninstall.sh 指令碼完全移除所有相關檔案。
所有指令碼都使用統一的配置檔案 config.py 來管理儲存路徑,確保路徑一致性:
- add_stock.py - 新增股票到自選股
- remove_stock.py - 從自選股刪除股票
- list_stocks.py - 列出所有自選股
- clear_watchlist.py - 清空自選股列表
- summarize_performance.py - 獲取股票行情摘要
這個 Skill 質量中規中矩,功能基本夠用。好的方面是功能比較齊全,從新增股票到檢視行情都有,文件寫得很清楚,小白也能上手。不足之處是資料獲取方式比較簡單,解析股票資料的能力有限,可能會出現抓不到行情的情況。另外軟體安裝時沒有自動檢查依賴包,需要手動安裝 requests 和 beautifulsoup4,對新手不太友好。總體來說是一個可用但不夠精細的 Skill,適合對功能要求不高的使用者。