comparable-company-analysis
金融领域的可比公司分析工具,通过行业分析法对目标公司与可比公司整合经营指标、估值倍数和统计基准比较。目前仅支持A股上市公司分析。输入单一公司问句后,调用可比公司接口并生成主题化Excel报告。适用于快速对比目标公司与同业在经营、财务、估值维度的差异。 Skill: comparable-company-analysis Owner: financial-ai-analyst Summary: 金融领域的可比公司分析工具,通过行业分析法对目标公司与可比公司整合经营指标、估值倍数和统计基准比较。目前仅支持A股上市公司分析。输入单一公司问句后,调用可比公司接口并生成主题化Excel报告。适用于快速对比目标公司与同业在经营、财务、估值维度的差异。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-17T11:18:24.501Z | user Publish 1.0.0 Archive index: Archive v1.0.0: 5 files, 10748 bytes Files: scripts/excel_theme.py (12816b), scripts/get_data.py (9357b), skill-card
Rank
62
Safety
84
Downloads
2.0k
Updated
Oct 9, 2026
Version
1.0.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 2K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 9, 2026
- Adoption signal
- 2K downloadsadoption · observed Oct 9, 2026
- Latest release
- 1.0.0release · observed Apr 17, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s172qfps754dhtdynwv0gwshes83mtd4:comparable-company-analysis- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-comparable-company-analysis/snapshot"
Documentation
CLAWHUB
5,447 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: comparable-company-analysis
description: 金融领域的可比公司分析工具,通过行业分析法对目标公司与可比公司整合经营指标、估值倍数和统计基准比较。目前仅支持A股上市公司分析。输入单一公司问句后,调用可比公司接口并生成主题化Excel报告。适用于快速对比目标公司与同业在经营、财务、估值维度的差异。
metadata:
{
"openclaw": {
"requires": {
"env":["EM_API_KEY"]
}
}
}
---
# 可比公司分析
## 密钥来源与安全说明
- 本技能仅使用一个环境变量:`EM_API_KEY`。
- `EM_API_KEY` 用于可比公司分析接口鉴权。
- 禁止在代码、提示词、日志或输出文件中硬编码/明文暴露密钥。
## 功能范围
### 触发规则(何时使用本技能)
- 用户明确提出“可比公司分析”“同业对比”“经营+估值横向比较”等诉求。
- 输入中包含单一、可识别的公司名称或股票代码。
- 目标是评估目标上市公司的行业定位及竞争位置。
- 关注目标公司与同业在经营、财务、估值维度的差异。
- 需要用于投资标的筛选、基本面研判或价值投资参考。
- 涉及并购/投资场景下的估值比较与异常值判断。
### 不触发规则(何时不要使用本技能)
- 需求聚焦于大盘、板块指数或市场整体情绪,而非单一公司对比。
- 问题核心是宏观政策、利率、流动性等宏观层面分析。
- 目标公司商业模式高度独特,缺乏可比上市公司样本。
- 目标实体为私营公司,或为高度多元化、不可横向比较的综合集团。
- 需求是从市场主线中发掘方向或构建候选标的池。
- 需求包含盘中实时异动监控或交易提醒。
- 需求主题为基金筛选或债券点评,不属于公司可比分析范畴。
## 脚本说明
### 1. 取数脚本 `scripts/get_data.py`
- 仅负责调用接口并标准化结果
- 不保存接口原始数据到本地文件
- 输出字段:`header`、`section_finance`、`section_valuation`、`records`
### 2. 制表脚本 `scripts/excel_theme.py`
- 基于 `get_data.py` 输出生成主题化 Excel
- 复现目标样式(深蓝顶栏 + 双节表格)
- 保存路径默认:`miaoxiang/comparable_company_analysis/`
## 前提条件
### 1. 注册东方财富妙想账号
访问 https://ai.eastmoney.com/mxClaw 注册账号并获取 API Key。
### 2. 配置 Token
```bash
# macOS 添加到 ~/.zshrc,Linux 添加到 ~/.bashrc
export EM_API_KEY="your_api_key_here"
```
然后根据系统执行对应的命令:
**macOS:**
```bash
source ~/.zshrc
```
**Linux:**
```bash
source ~/.bashrc
```
## 快速开始
### 输入query规范
若要查询某上市公司可比公司,则输入query为某上市公司名称即可,比如东方财富
### 1. 仅取数调试
```bash
python3 {baseDir}/scripts/get_data.py --query "东方财富"
```
### 2. 一键生成Excel可视化报告
```bash
python3 {baseDir}/scripts/excel_theme.py --query "东方财富"
```
## 输出文件说明
| 文件 | 说明 |
|---|---|
| `comparable_company_analysis_<ID>.xlsx` | 可比公司分析可视化Excel报告 |
## 输出规范
读取可视化Excel报告信息,针对问句、输入内容,进行回答,输出目标公司与可比公司的财务、估值差异分析,以及差异背后的业务原因和战略根源解释。
**分析示例(比亚迪 vs 长城汽车 2018-2022年):**
- 2018年和2019年:比亚迪净利润明显低于长城汽车
- 2020年:新能源汽车全面发展浪潮下,比亚迪新能源汽车产销量逐渐增加,净利润显著上升并超过长城汽车
- 2022年:随着新能源汽车技术不断迭代更新,净利润实现质的飞跃,远远超越长城汽车
## 常见问题
**错误:EM_API_KEY is required.**
→ 需先配置 `EM_API_KEY`,请联系官网获取并手动配置。
**错误:目前仅支持A股上市公司进行可比公司分析**
→ 目前仅支持A股上市公司,不支持港美股、退市股等。尽量输入查询为A股上市公司名称,满足输入规范。
**注意:目前仅支持单一上市公司进行可比公司分析**
→ 如果输入多实体,则只会返回第一个实体的可比公司分析。
**注意:财务指标和估值情况两个章节的公司列表可能不一样**
→ 因为存在同业公司目前未披露最新报告期定报,此时该公司仅返回估值情况数据。
**注意:不同指标的统计字段可能不一样**
→ 如果有效可比公司低于2家,统计上失效,会降低报告严谨度。
## 合规说明
- 结果仅供参考,不构成投资建议。
- 接口失败时返回明确错误,不得编造分析结论。
- 输出中的指标名称和顺序需与固定列定义保持一致。_meta.json
{
"ownerId": "kn7b4ptpdag877t9kmq8axyja182taab",
"slug": "comparable-company-analysis",
"version": "1.0.0",
"publishedAt": 1776424704501
}skill-card.md
## Description: A financial analysis skill for A-share listed companies that calls an Eastmoney comparable-company API and generates a themed Excel report comparing operating, financial, valuation, and statistical benchmark metrics. This skill is ready for commercial/non-commercial use. ## Publisher: [financial-ai-analyst](https://clawhub.ai/user/financial-ai-analyst) ### License/Terms of Use: MIT-0 ## Use Case: External users and financial analysts use this skill to compare a single A-share listed company with peers across business, finance, and valuation dimensions. It is intended for rapid fundamental analysis and screening support, not as investment advice. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Generated Excel workbooks can include active formulas from API-controlled data. Mitigation: Treat generated workbooks as untrusted, inspect them before use, and open them with spreadsheet protections enabled until formula sanitization is added. Risk: The skill requires an Eastmoney EM_API_KEY for remote API access. Mitigation: Provide the key only through the EM_API_KEY environment variable and avoid storing it in prompts, logs, code, or generated files. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/financial-ai-analyst/skills/comparable-company-analysis) - [ClawHub publisher profile](https://clawhub.ai/user/financial-ai-analyst) - [Eastmoney Miaoxiang account and API key page](https://ai.eastmoney.com/mxClaw) - [Comparable-company analysis API endpoint](https://ai-saas.eastmoney.com/proxy/app-robo-advisor-api/assistant/comparable-company-analysis) ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, configuration, guidance, files] **Output Format:** [Markdown guidance, JSON API responses, shell commands, and local XLSX workbook files] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires EM_API_KEY and writes generated Excel reports under miaoxiang/comparable_company_analysis by default.] ## Skill Version(s): 1.0.0 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/financial-ai-analyst/skills/comparable-company-analysis",
"sourceUrl": "https://clawhub.ai/financial-ai-analyst/skills/comparable-company-analysis",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T21:13:46.789Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-comparable-company-analysis/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-comparable-company-analysis/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T21:13:46.789Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "2K downloads",
"href": "https://clawhub.ai/financial-ai-analyst/comparable-company-analysis",
"sourceUrl": "https://clawhub.ai/financial-ai-analyst/comparable-company-analysis",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T21:13:46.789Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/financial-ai-analyst/comparable-company-analysis",
"sourceUrl": "https://clawhub.ai/financial-ai-analyst/comparable-company-analysis",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T11:18:24.501Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-comparable-company-analysis/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-comparable-company-analysis/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "Publish 1.0.0",
"href": "https://clawhub.ai/financial-ai-analyst/comparable-company-analysis",
"sourceUrl": "https://clawhub.ai/financial-ai-analyst/comparable-company-analysis",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T11:18:24.501Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
