财经分析工具包

财经分析工具包 is a skill for Claude Code, Codex from wanxingai/LightAgent. It costs 35 tokens per session (894 once invoked), scanned A, original, Apache-2.0.

A set of finance analysis tools for stocks, markets, portfolios, and financial news. It includes data retrieval, technical indicators such as moving averages and RSI, trend analysis, risk assessment, and allocation suggestions.

In plain words
What is it for?
Use it to retrieve current or historical stock data, calculate indicators, examine companies and sectors, monitor market news, assess risk, and analyse portfolio choices.
Why use it?
It brings common market data and analysis tasks into one Python toolkit instead of requiring separate scripts for each step.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to retrieve current or historical stock data, calculate indicators, examine companies and sectors, monitor market news, assess risk, and analyse portfolio choices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wanxingai/lightagent/gupiaozhushou
About the project

LightAgent is a lightweight Python framework for building AI agents with tools, memory, guardrails, tracing, workflows, and collaboration between multiple agents. It supports developers who want reusable agent capabilities and OpenAI-compatible streaming interfaces.

wanxingai/LightAgent · 1,217 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wanxingai/LightAgent --skill gupiaozhushou
Clone the repo
git clone --depth 1 https://github.com/wanxingai/LightAgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 财经分析工具包

README.md
[![agentmods](https://agentmods.dev/badge/skills/wanxingai/lightagent/gupiaozhushou/github.svg)](https://agentmods.dev/skills/wanxingai/lightagent/gupiaozhushou)
Your own site
<a href="https://agentmods.dev/skills/wanxingai/lightagent/gupiaozhushou"><img src="https://agentmods.dev/badge/skills/wanxingai/lightagent/gupiaozhushou/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 财经分析工具包

Your own site · 80×15
<a href="https://agentmods.dev/skills/wanxingai/lightagent/gupiaozhushou"><img src="https://agentmods.dev/badge/skills/wanxingai/lightagent/gupiaozhushou.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00894
Opus 5 $0.00017 $0.00447
Sonnet 5 $0.00007 $0.00179
Haiku 4.5 $0.00003 $0.00089

Measured 11d ago against content hash db83ece53793, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

财经分析工具包 scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (examples/basic_usage.py, finance_toolkit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bins: ["python", "curl"]
skills/gupiaozhushou/SKILL.md · 122 lines

What it actually says

财经分析工具包

专业的财经分析工具包,为AI Agent提供全面的财经分析能力。包含股票数据分析、市场趋势预测、投资组合优化等功能。

📊 功能模块

1. 股票数据分析

  • 实时股票价格获取
  • 历史数据查询与分析
  • 技术指标计算(MA, RSI, MACD等)
  • 基本面数据获取

2. 市场趋势分析

  • 大盘指数监控
  • 行业板块分析
  • 市场情绪指标
  • 宏观经济数据集成

3. 投资建议引擎

  • 风险评估模型
  • 投资组合优化
  • 资产配置建议
  • 止损止盈策略

4. 财经新闻聚合

  • 实时财经新闻
  • 热点事件分析
  • 舆情监控
  • 影响评估

🚀 快速开始

安装依赖

pip install yfinance pandas numpy matplotlib

基本使用示例

from finance_toolkit import StockAnalyzer

# 创建分析器
analyzer = StockAnalyzer()

# 获取股票数据
data = analyzer.get_stock_data("AAPL", period="1mo")

# 技术分析
analysis = analyzer.technical_analysis(data)
print(analysis)

📁 文件结构

finance-toolkit/
├── SKILL.md              # 技能说明文档
├── README.md             # 用户文档
├── finance_toolkit.py    # 核心Python模块
├── stock_analyzer.py     # 股票分析模块
├── market_trends.py      # 市场趋势模块
├── investment_advisor.py # 投资建议模块
├── news_aggregator.py    # 新闻聚合模块
└── examples/             # 使用示例

🔧 工具函数

股票分析工具

  • get_stock_price(symbol) - 获取实时股价
  • get_historical_data(symbol, period) - 获取历史数据
  • calculate_technical_indicators(data) - 计算技术指标
  • analyze_fundamentals(symbol) - 分析基本面

市场分析工具

  • get_market_indices() - 获取大盘指数
  • analyze_sector_performance() - 分析行业表现
  • get_market_sentiment() - 获取市场情绪
  • predict_market_trend() - 预测市场趋势

投资建议工具

  • assess_risk_profile() - 评估风险偏好
  • optimize_portfolio(assets) - 优化投资组合
  • generate_investment_advice() - 生成投资建议
  • set_stop_loss_targets() - 设置止损止盈

📈 数据源

  • Yahoo Finance (yfinance)
  • 公开市场数据API
  • 财经新闻API
  • 宏观经济数据库

⚠️ 免责声明

本工具包提供的分析结果仅供参考,不构成投资建议。投资有风险,决策需谨慎。

🔗 相关资源

📝 更新日志

  • v1.0.0 (2026-02-20): 初始版本发布,包含基础股票分析和市场趋势功能
Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 122 lines · 35 tokens per session scan A db83ece53793

Subscribe to this mod's changes

财经分析工具包 is a skill published in the GitHub repository wanxingai/LightAgent (1,217 stars, last pushed 6d ago), licensed Apache-2.0. It adds 35 tokens to every session and 894 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

risk-scoring

Score how concentrated and risky a portfolio is on a 0-100 scale from its position weights. Use when the user asks how risky their portfolio is, whether it is too concentrated, or for a diversification check.

microsoft/agent-framework · 47 tokens

valuation

Estimate whether a stock looks cheap or expensive using a price-to-earnings (P/E) based fair-value method. Use when the user asks if a stock is over- or under-valued, or for a fair-value / target price.

microsoft/agent-framework · 51 tokens

agent-framework-py-release

Use when cutting a Python release for the microsoft/agent-framework monorepo. Triggers on "bump py versions", "cut a python release", "prepare release PR for python", "release py packages", "bump python to X.Y.Z", or similar requests to bump Python package versions and prepare a release PR. Handles all four lifecycle…

microsoft/agent-framework · 103 tokens

python-package-management

Guide for managing packages in the Agent Framework Python monorepo, including creating new connector packages, versioning, and the lazy-loading pattern. Use this when adding, modifying, or releasing packages.

microsoft/agent-framework · 43 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

verify-samples-tool

How to use the verify-samples tool to run, verify, and manage sample definitions in the Agent Framework repository. Use this when adding, updating, or running sample verification.

microsoft/agent-framework · 40 tokens