By hsinchi-yen
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.
Simplify code for clarity and maintainability — reduce complexity without changing behavior
Break work into small verifiable tasks with acceptance criteria and dependency ordering
Conduct a five-axis code review — correctness, readability, architecture, security, performance
Run the pre-launch checklist via parallel fan-out to specialist personas, then synthesize a go/no-go decision
Start spec-driven development — write a structured specification before writing code
FastAPI + 靜態前端(Plotly)台股深度分析工具,支援 PC 瀏覽器與 Android App(WebView + Chaquopy)並行執行。
資料源:FinMind API(需免費/付費帳號取得 API Key)。
| Tab | 內容 |
|---|---|
| 基本資訊 | 最新股價、法人買賣超、外資持股比例趨勢、EPS 季度趨勢 |
| 營收分析 | 月營收 + MA(3/6/12)、股價 vs 營收對照、YoY 年增率、趨勢摘要 |
| 獲利能力 | 毛利率 / 營業利益率 / 淨利率、ROE / ROA 趨勢 |
| 財務健康 | 流動比率 / 速動比率、每股淨值 (BVPS)、負債比率、自由現金流 |
| 估值 | DCF 內在價值、本益比河流圖、PEG Ratio、葛拉漢數 (Graham Number) |
查詢完成後自動顯示三項訊號燈(綠/黃/紅):
cd "c:\Users\lance.tn\AI Project\StockAnalysisDashBoard"
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
.\run.cmd
# 打開瀏覽器 → http://localhost:8000
首次使用需要輸入 FinMind API Key 並按「儲存 Key」(儲存至 localStorage,下次自動帶入)。
pytest -q
http://127.0.0.1:8000,完全重用後端 API 與前端檔案# 同步 Python 原始檔 + 靜態資源到 android_app/
.\android_prepare.cmd
# 用 Android Studio 開啟 android_app/
# → Gradle Sync → Run on device / emulator
.\android_sync.cmd
# 然後在 Android Studio 重新 Build APK
android_sync.cmd 會同步:
api.py, cache.py, datasource_*.py, series_builder.py, charts.py, android_launcher.pystatic/index.html, static/app.js, static/styles.csslxml 相依性而不可用| 端點 | 說明 |
|---|---|
GET /api/stocks/{id}/latest | 最新股價 + 法人買賣超 |
GET /api/stocks/{id}/revenue | 月營收 + MA 均線 |
GET /api/stocks/{id}/price_history | 月收盤價歷史 |
GET /api/stocks/{id}/dividend_yield | 殖利率歷史 |
GET /api/stocks/{id}/dividends_cash | 現金股利 |
GET /api/stocks/{id}/roe_roa | ROE / ROA 趨勢 |
GET /api/stocks/{id}/debt_ratio | 負債比率 |
GET /api/stocks/{id}/free_cash_flow | 自由現金流 |
GET /api/stocks/{id}/dcf | DCF 內在價值試算 |
GET /api/stocks/{id}/pe_river | 本益比河流圖 |
GET /api/stocks/{id}/shareholding | 董監事持股 |
GET /api/stocks/{id}/turnover_days | 存貨 / 應收款週轉天數 |
GET /api/stocks/{id}/margins | 毛利率 / 營業利益率 / 淨利率 |
GET /api/stocks/{id}/eps_trend | EPS 季度趨勢 + YoY |
GET /api/stocks/{id}/liquidity | 流動比率 / 速動比率 / BVPS |
GET /api/stocks/{id}/foreign_holding | 外資持股比例趨勢 |
GET /api/stocks/{id}/valuation_extra | PEG Ratio + 葛拉漢數 |
GET /api/token_usage | API Key 剩餘用量 |
所有端點接受 ?token=<api_key> 或 X-FinMind-Token header。
| 變數 | 預設 | 說明 |
|---|---|---|
FINMIND_API_KEY | — | FinMind API Key(選填,也可在前端輸入) |
MICROECO_CACHE_DIR | ./cache | 快取目錄路徑 |
MICROECO_STATIC_DIR | ./static | 靜態檔案目錄 |
MICROECO_FINMIND_TIMEOUT | 30 | FinMind API 逾時秒數(Android launcher 預設 60) |
docker build -t stock-dashboard .
docker run --rm -p 8000:8000 -e FINMIND_API_KEY="<your_key>" stock-dashboard
# → http://localhost:8000
如需部署到 Render / Fly.io / Azure 等平台,請告知平台名稱。
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.
npx claudepluginhub hsinchi-yen/stockanalysisdashboardComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Consult multiple AI coding agents (Gemini, OpenAI, Grok, Perplexity, plus codex, antigravity, and grok CLIs when installed) to get diverse perspectives on coding problems
Complete developer toolkit for Claude Code
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.