stock-analysis
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection, and rumor / early-signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
- License 许可
- MIT
- 最近更新
- 2026-07-28
- Stars
- ★ 40
- Forks
- 1
01 前言 Front Matter
- name
- stock-analysis
- metadata
- { "clawdbot": { "emoji": "📈", "requires": { "bins": [ "python3" ] } } }
- description
- Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection, and rumor / early-signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
02 资源文件 1
- 参考文档_meta.json114 B
03 SKILL.md 正文
Stock Analysis Skill
Yahoo-Finance-powered analysis toolkit for equities, ETFs, and crypto. The
default data path is the yfinance library, but the skill also accepts a local
OHLCV snapshot as a stand-in source when the user provides one — in that case
the snapshot is canonical and the skill must not call out to a live API.
Core capabilities
- Fetch and cache OHLCV history for one or more tickers over an arbitrary
window. When a snapshot file is supplied (e.g.
snapshot.jsonwith aohlcv_per_tickermap), prefer it. - Compute total return over a window from open-on-first-day to close-on-last- day, expressed as a percentage. Distinguish raw return from split/dividend-adjusted total return.
- Compute peak-to-trough max drawdown over the window using daily closes.
- Compute additional risk metrics on demand: realized volatility (std of daily log returns), beta vs. a sector or market proxy, and Sharpe-like risk-adjusted scores.
- Render comparison charts:
- Cumulative-return overlay (one normalized line per ticker, indexed to 1.0 at the first window day) — best for cross-ticker comparison when starting prices differ widely.
- K-line / candlestick chart for a single ticker.
- Sparkline / mini-chart for a watchlist row.
- Save chart output as PNG suitable for embedding in a Markdown report.
- 8-dimension scoring (momentum, value, quality, etc.) and dividend-history summary are available but optional — only run them when the user asks.
Snapshot mode workflow
When the user hands you a local snapshot rather than asking for live data:
- Read the snapshot file. Validate that it contains a tickers list, a declared window, and per-ticker OHLCV bars.
- Treat the snapshot's window as authoritative — do not extend it with live data, and do not silently substitute live prices.
- For each ticker, compute the requested metrics directly from the bars in
the snapshot. Total return uses the
openof the first bar and thecloseof the last bar. Drawdown is computed over the daily-close series. - When rendering a comparison chart, normalize each ticker's close series to 1.0 at the first window day so a single y-axis can show every ticker meaningfully — five tickers on a raw-price y-axis are not comparable because the absolute price levels differ by an order of magnitude.
- Always include all snapshot tickers as legend entries on the chart, in the order the user listed them. Use a distinct color per ticker.
Output contract for snapshot reports
When asked to produce an analysis report from a snapshot, write:
analysis.md— a Markdown report. Include at minimum:- A short summary paragraph.
- A per-ticker table with total-return % and max-drawdown % for the window.
- Brief commentary that interprets the numbers (which ticker won the quarter, who had the worst pullback, etc.).
chart.png— one comparison chart with all tickers as legend entries, cumulative-return overlay style by default.
Anti-patterns
- Do not call
yfinance.downloadwhen a snapshot is supplied — that bypasses the user's frozen window. - Do not invent ticker prices that are not in the snapshot.
- Do not drop tickers from the chart legend; users compare across all of them.
04 同仓库更多 Skills
cli-anything-zoom
Command-line interface for Zoom — manage meetings, participants, and recordings from the command line via the Zoom REST API.
netease-music-cli
CLI for NetEase Cloud Music — search songs/albums/playlists, get lyrics, and manage your music library from the terminal.
google-calendar-gcalcli
Install and use gcalcli for live Google Calendar read access using the provided OAuth cache.
Excel / XLSX
Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation. Use when (1) the task is about Excel, `.xlsx`, `.xlsm`, `.xls`, `.csv`, or `.tsv`; (2) formulas, formatting, workbook structure, or compatibility matter; (3) the file must stay reliable after edits.
duckdb-en
DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV/Parquet/JSON analysis, database queries, or data conversion. Triggers on "duckdb", "sql", "query", "data analysis", "parquet", "convert data".
automate-excel
Automates reading, writing, merging, transforming, and validating Excel (.xlsx/.xls) files. Use when the user works with spreadsheets, .xlsx files, Excel data — for cleaning, joining, validating, deduplicating, aggregating, filtering, or auditing tabular data.