← 返回 Skills 市场
tangweigang-jpg

Financial Ratios Toolkit

作者 Tang Weigang · GitHub ↗ · v0.3.3 · MIT-0
cross-platform ⚠ suspicious
108
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install financial-ratios-toolkit
功能描述
提供多市场财务分析能力,涵盖历史数据获取、财务报表解析、财务比率计算、固定收益分析、投资组合绩效评估和股票基本面筛选等核心功能。。
使用说明 (SKILL.md)

财务比率工具 (financial-ratios-toolkit)

提供多市场财务分析能力,涵盖历史数据获取、财务报表解析、财务比率计算、固定收益分析、投资组合绩效评估和股票基本面筛选等核心功能。

Pipeline

data_collection -> data_storage -> factor_computation -> target_selection -> trading_execution -> visualization

Top Use Cases (13 total)

Multi-Module Financial Analysis Overview (UC-101)

Demonstrating comprehensive financial analysis capabilities covering multiple domains including historical data, financial statements, ratios, models, Triggers: financial analysis, overview, multi-module

Fixed Income Analysis and Bond Valuation (UC-103)

Analyzing fixed income securities including bond statistics, duration calculations, derivative pricing models, and government/corporate bond yield com Triggers: bond, fixed income, yield

Financial Ratio Analysis (UC-106)

Evaluating company financial health through profitability ratios, solvency ratios, liquidity ratios, valuation ratios, and custom ratio calculations f Triggers: ratio, profitability, solvency

For all 13 use cases, see references/USE_CASES.md.

Execute trigger: When user intent matches intent_router.uc_entries[].positive_terms AND user uses action verb (run/execute/跑/执行/backtest/fetch/collect)

What I'll Ask You

  • Target market: A-share (default), HK, or crypto? (US stocks in ZVT are half-baked — stockus_nasdaq_AAPL exists but coverage is thin)
  • Data source / provider: eastmoney (free, no account), joinquant (account+paid), baostock (free, good history), akshare, or qmt (broker)?
  • Strategy type: MACD golden-cross, MA crossover, volume breakout, fundamental screen, or custom factor?
  • Time range: start_timestamp and end_timestamp for backtest period
  • Target entity IDs: specific stocks (stock_sh_600000) or index components (SZ1000)?

Semantic Locks (Fatal)

ID Rule On Violation
SL-01 Execute sell orders before buy orders in every trading cycle halt
SL-02 Trading signals MUST use next-bar execution (no look-ahead) halt
SL-03 Entity IDs MUST follow format entity_type_exchange_code halt
SL-04 DataFrame index MUST be MultiIndex (entity_id, timestamp) halt
SL-05 TradingSignal MUST have EXACTLY ONE of: position_pct, order_money, order_amount halt
SL-06 filter_result column semantics: True=BUY, False=SELL, None/NaN=NO ACTION halt
SL-07 Transformer MUST run BEFORE Accumulator in factor pipeline halt
SL-08 MACD parameters locked: fast=12, slow=26, signal=9 halt

Full lock definitions: references/LOCKS.md

Top Anti-Patterns (14 total)

  • AP-PORTFOLIO-ANALYTICS-001: Division by zero in price ratio calculations corrupts rebalancing
  • AP-PORTFOLIO-ANALYTICS-002: Look-ahead bias from unshifted signal generation and position calculations
  • AP-PORTFOLIO-ANALYTICS-003: Non-positive-semidefinite covariance matrix breaks CVXPY optimization

All 14 anti-patterns: references/ANTI_PATTERNS.md

Evidence Quality Notice

[QUALITY NOTICE] This crystal was compiled from blueprint finance-bp-118. Evidence verify ratio = 33.3% and audit fail total = 62. Generated results may have uncaptured requirement gaps. Verify critical decisions against source files (LATEST.yaml / LATEST.jsonl).

Reference Files

File Contents When to Load
references/seed.yaml V6+ 全量权威 (source-of-truth) 有行为/决策争议时必读
references/ANTI_PATTERNS.md 14 条跨项目反模式 开始实现前
references/WISDOM.md 跨项目精华借鉴 架构决策时
references/CONSTRAINTS.md domain + fatal 约束 规则冲突时
references/USE_CASES.md 全量 KUC-* 业务场景 需要完整示例时
references/LOCKS.md SL-* + preconditions + hints 生成回测/交易代码前
references/COMPONENTS.md AST 组件地图(按 module 拆分) 查 API 时

Compiled by Doramagic crystal-compilation-v6.1 from finance-bp-118 blueprint at 2026-04-22T13:00:57.393924+00:00. See human_summary.md for non-technical overview.

安全使用建议
This skill appears to be a genuine finance/quant toolkit, but there are important mismatches you should resolve before installing: (1) SKILL.md expects Python 3.12+, the 'uv' package manager, and the zvt ecosystem (including a writable ZVT_HOME directory ~/.zvt) — yet the registry lists no required binaries/env vars. Ask the publisher to declare required binaries, explicit install steps, and any environment variables (e.g., ZVT_HOME) and required provider credentials. (2) Expect the skill to run python commands and possibly pip install zvt or invoke zvt recorders that may contact external data providers; run it in an isolated environment (container/VM) until you've validated behavior. (3) If you will provide data-provider credentials (eastmoney/joinquant/qmt), only provide the minimum required and confirm where they are stored; prefer short-lived or least-privilege keys. (4) Ask for a clear install spec or packaged release (PyPI/GitHub release) and a copy of LICENSE.txt; if the author cannot provide these, treat the package as incomplete. Providing those clarifications would raise confidence that the skill is coherent and reduce the need for caution.
功能分析
Type: OpenClaw Skill Name: financial-ratios-toolkit Version: 0.3.3 The financial-ratios-toolkit is a highly structured skill bundle designed to enable an AI agent to perform quantitative financial analysis using the ZVT library. It employs a sophisticated 'Doramagic' framework (blueprints, crystals, and semantic locks) to enforce strict financial logic, such as preventing look-ahead bias (SL-02) and ensuring T+1 trading rules (SL-10). The bundle includes extensive documentation on financial anti-patterns, constraints, and use cases. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found; the instructions are entirely focused on the domain-specific task of financial modeling and data acquisition from legitimate sources like Yahoo Finance and FinancialModelingPrep.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
The name, description, and included reference files consistently describe a finance/quant toolkit (ratios, backtests, fixed income, portfolio analytics). That purpose is coherent with the instructions and listed components. However the SKILL.md explicitly states runtime requirements (Python 3.12+, 'uv' package manager, Doramagic host expectations and heavy reliance on the zvt ecosystem) while the registry metadata lists no required binaries or env vars — an inconsistency between what it claims it needs and what it declares.
Instruction Scope
The SKILL.md contains concrete preconditions that instruct the agent to run shell/python commands (e.g., python3 -c 'import zvt', run zvt.recorders, run zvt.init_dirs) and to check/create ~/.zvt (ZVT_HOME). Those runtime steps go beyond pure conversational guidance and will cause the host to check/install packages and touch files. The skill also references external data providers (eastmoney, joinquant, qmt) which imply account credentials may be required at runtime, but these credentials are not declared.
Install Mechanism
There is no install spec in the registry (instruction-only), but seed.yaml's execution_protocol mentions install recipes and host install triggers. SKILL.md suggests installing Python packages (pip install zvt) as part of precondition remediation. The absence of a clear, declared install mechanism in the registry while the instructions expect pip installs and host actions is an incoherence that can surprise users and hosts.
Credentials
Registry metadata declares no required environment variables or credentials, but SKILL.md/preconditions reference ZVT_HOME and expect zvt to be present; the skill also expects access to external data providers (some requiring accounts/API keys). The skill therefore implicitly requires filesystem write access (~/.zvt), package installation privileges, and possibly provider API keys — none of which are documented in requires.env. That mismatch increases the risk of unexpected credential or environment access.
Persistence & Privilege
The skill is not always-enabled and is user-invocable (normal). It requests the agent to create/read its own data directory (~/.zvt) and run package installation checks; it does not request system-wide persistent privileges or modify other skills. This is expected for a toolkit that uses a local data store, but users should be aware the skill will attempt to create/modify ~/.zvt and may run pip commands if preconditions fail.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install financial-ratios-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /financial-ratios-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.3.3
v0.3.3: bilingual metadata injected. H1 shows 财务比率工具; tagline replaced with skill-specific Chinese hook; tags upgraded to Level 1-4.
v0.3.1
Remove install.sh — knowledge-only bundle. Host AI consumes directly from URL; no user-side installation needed. Fixes ClawHub suspicious flag.
v0.3.0
Doramagic crystal portfolio v0.3.0. Full 5-layer bp-009 standard. github.com/tangweigang-jpg/doramagic-skills
元数据
Slug financial-ratios-toolkit
版本 0.3.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Financial Ratios Toolkit 是什么?

提供多市场财务分析能力,涵盖历史数据获取、财务报表解析、财务比率计算、固定收益分析、投资组合绩效评估和股票基本面筛选等核心功能。。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 108 次。

如何安装 Financial Ratios Toolkit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install financial-ratios-toolkit」即可一键安装,无需额外配置。

Financial Ratios Toolkit 是免费的吗?

是的,Financial Ratios Toolkit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Financial Ratios Toolkit 支持哪些平台?

Financial Ratios Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Financial Ratios Toolkit?

由 Tang Weigang(@tangweigang-jpg)开发并维护,当前版本 v0.3.3。

💬 留言讨论