用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aifinlab/FinClaw --skill financial-ratio-calculation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
A股逆向选择/信息不对称分析。当用户说"逆向选择"、"adverse selection"、"信息不对称"、"知情交易者"、"逆向选择成本"、"信息劣势"时触发。基于 cn-stock-data 获取数据,度量逆向选择与信息不对称程度。支持 formal/brief 两种输出风格。
A股量价异常检测/异动监控。当用户说"异常检测"、"异动"、"anomaly"、"量价异常"、"异常波动"、"XX有异动"时触发。量化检测股价和成交量异常。支持formal和brief风格。
A股自相关/序列相关性/收益率自相关结构分析。当用户说"自相关"、"autocorrelation"、"序列相关"、"收益率预测性"、"动量还是反转"、"自相关系数"、"ACF"、"PACF"、"Ljung-Box"、"收益率是否可预测"、"随机游走检验"时触发。MUST USE when user asks about return autocorrelation, serial correlation tests, or whether a stock's returns are predictable. 量化分析收益率的自相关结构(ACF/PACF、Ljung-Box检验、随机游走检验)。支持formal和brief风格。
正在显示 SKILL.md
基于 SOC 职业分类
| name | financial-ratio-calculation |
| description | 用于计算企业财务比率的原子技能,包括盈利能力、偿债能力、营运能力和成长性指标。适用于财务报表分析、企业信用评估、投资研究和风险管理等金融场景。 |
本 Skill 支持多种财务数据输入格式,核心数据来源包括:
说明:本 Skill 不包含数据采集功能,需要用户提供清洗后的财务数据。建议数据时间跨度不少于3年,以便进行趋势分析。
本 Skill 提供全面的财务比率计算能力,涵盖四大类财务指标:
pip install -r requirements.txt
# 计算所有财务比率
python scripts/calc_ratios.py --input financials.csv --output ratios.csv
# 指定计算特定类型的比率
python scripts/calc_ratios.py --input financials.csv --output profitability.csv --ratio-type profitability
# 添加行业基准比较
python scripts/calc_ratios.py --input financials.csv --output analysis.csv --industry-benchmark manufacturing
# 自定义缺失值处理方法
python scripts/calc_ratios.py --input financials.csv --output ratios.csv --missing-method forward-fill
# 设置时间窗口进行滚动计算
python scripts/calc_ratios.py --input financials.csv --output rolling_ratios.csv --window 4 --min-periods 2
# 导出详细分析报告
python scripts/calc_ratios.py --input financials.csv --output report.html --format html --detailed
{
"company": "示例公司",
"period": "2025",
"profitability_ratios": {
"gross_margin": 35.2,
"net_margin": 12.8,
"roe": 15.6,
"roa": 8.3,
"roic": 14.7
},
"liquidity_ratios": {
"current_ratio": 1.8,
"quick_ratio": 1.2,
"cash_ratio": 0.4
},
"leverage_ratios": {
"debt_to_assets": 45.3,
"debt_to_equity":
LICENSE 文件requirements.txt 为准