stock-analysis
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock…
от HKU-MMLab★ 40 звёзд на GitHub
Установить stock-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
FAQ
Что делает скилл 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.
Как установить скилл stock-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stock-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…