agentCLAWHUBUnverified

Earnings Review Agent

依托东方财富数据库,面向沪深京港美五大市场的上市公司/股票,生成业绩点评类输出(含财报分析、业绩解读)。 当用户明确提出业绩点评、财报分析、业绩解读需求,或出现「业绩点评」「财报点评」「业绩分析」「季报/半年报/年报点评」「财务分析」「盈利分析」「业绩解读」等表述时,应触发本 Skill。 用户点名具体公司/股票... Skill: Earnings Review Agent Owner: financial-ai-analyst Summary: 依托东方财富数据库,面向沪深京港美五大市场的上市公司/股票,生成业绩点评类输出(含财报分析、业绩解读)。 当用户明确提出业绩点评、财报分析、业绩解读需求,或出现「业绩点评」「财报点评」「业绩分析」「季报/半年报/年报点评」「财务分析」「盈利分析」「业绩解读」等表述时,应触发本 Skill。 用户点名具体公司/股票... Tags: financial:1.0.2, latest:1.0.3, performance:1.0.2, research:1.0.2, stock:1.0.2, valuation:1.0.2 Version history: v1.0.3 | 2026-04-17T11:19:33.126Z | user Publish 1.0.3 v1.0.2 | 2026-04-10T

OpenClaw

Rank

62

Safety

84

Downloads

9.8k

Updated

Oct 9, 2026

Version

1.0.3

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 9.8K 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
9.8K downloadsadoption · observed Oct 9, 2026
Latest release
1.0.3release · observed Apr 17, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s172qfps754dhtdynwv0gwshes83mtd4:stock-earnings-review
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. 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-stock-earnings-review/snapshot"

Documentation

CLAWHUB

41,905 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: stock-earnings-review
description: >
  依托东方财富数据库,面向沪深京港美五大市场的上市公司/股票,生成业绩点评类输出(含财报分析、业绩解读)。
  当用户明确提出业绩点评、财报分析、业绩解读需求,或出现「业绩点评」「财报点评」「业绩分析」「季报/半年报/年报点评」「财务分析」「盈利分析」「业绩解读」等表述时,应触发本 Skill。
  用户点名具体公司/股票并希望获得业绩与盈利维度的分析评价时,应触发本 Skill。
  即使用户未明说「业绩点评」,只要意图是对该公司财报或业绩作分析解读,也应触发。
metadata:
  {
    "openclaw": {
      "requires": {
        "env":["EM_API_KEY"]
      },
      "install": [
        {
          "id": "pip-deps",
          "kind": "python",
          "package": "httpx",
          "label": "Install Python dependencies"
        }
      ]
    }
  }
---

# 上市公司业绩点评 (stock-earnings-review)

通过用户问句完成**实体识别 → 报告期匹配 → 业绩点评接口生成**,并在本地保存 PDF/Word 附件(base64 解码保存)。`JSON` 过程日志仅在 `debug` 模式落盘。最终对用户返回标题、接口 `content` 文本整理结果、附件本地路径、溯源说明与分享链接。

## 密钥来源与安全说明

- 本技能仅使用一个环境变量:`EM_API_KEY`(请求头 `em_api_key`)。
- `EM_API_KEY` 由东方财富妙想相关服务签发,用于接口鉴权;使用前请确认来源、范围与有效期。
- 禁止在代码、提示词、日志或输出中硬编码或明文暴露密钥。

## 上层编排协议(支持分步骤调用)

本 skill 采用**分步骤调用**:由大模型按流程依次调用  
1) `scripts/validate_entity.py` 获得实体  
2) `scripts/normalize_report_period.py` 获得报告期候选  
3) 大模型基于用户语义选择 `reportDate`  
4) `scripts/call_review_api.py` 生成点评并保存附件

无论采用哪种方式,**禁止**仅由大模型凭知识库「编造」业绩点评全文并冒充 skill 结果。

## 输出目录与文件结构(默认)

与 `mx_macro_data` 相同约定:**默认根目录**为当前工作目录下的 `miaoxiang/stock-earnings-review/`(无需手动创建,脚本会自动 `mkdir`)。

每次执行会在该根目录下再创建**一次运行子目录**(`run_id`,含时间戳与短 UUID),结构如下:

| 路径(相对本次 run 根目录) | 说明 |
|----------------------------|------|
| `01_entity.json` | 实体识别结果(仅 `--debug`) |
| `02_report_period.json` | 报告期列表与匹配结果(仅 `--debug`) |
| `03_comment_raw.json` | 业绩点评接口原始响应(仅 `--debug`) |
| `04_review_result.json` | 解析后的点评结果与章节信息(仅 `--debug`) |
| `05_final_result.json` | 汇总与 `finalOutput`(仅 `--debug`) |
| `attachments/review.pdf` | 接口返回 `pdfBase64` 解码后的文件(若接口有返回) |
| `attachments/review.doc` | 接口返回 `wordBase64` 解码后的文件(若接口有返回) |

**说明**:若接口未返回对应 base64,则不会生成对应文件。非 `debug` 模式不会生成 `01~05.json`,但附件仍会保存。

## 环境变量

| 变量名 | 说明 | 默认 |
|--------|------|------|
| `EM_API_KEY` | 接口鉴权密钥(必填) | 无 |
| `STOCK_EARNINGS_REVIEW_OUTPUT_DIR` | 日志与附件的**根目录**(其下仍按每次 run 分子目录) | `miaoxiang/stock-earnings-review`(相对当前工作目录) |
| `EARNINGS_REVIEW_LOG_DIR` | 与上一项同义,兼容旧配置 | 同上 |


## 前提条件

### 1. 配置 `EM_API_KEY`

```bash
# macOS / Linux
export EM_API_KEY="your_api_key_here"
```

```powershell
# Windows PowerShell
$env:EM_API_KEY="your_api_key_here"
```

### 2. 安装依赖

```bash
pip3 install httpx --user
```

## 快速开始

### 分步骤调用(适配外层大模型编排)

```bash
# 第一步:实体识别
python3 {baseDir}/stock-earnings-review/scripts/validate_entity.py --query "东方财富 业绩点评"

# 第二步:获取报告期候选
python3 {baseDir}/stock-earnings-review/scripts/normalize_report_period.py \
  --secu-code 300059 --market-char SZ --class-code 002001

# 第三步:外层大模型选择 reportDate 后调用点评
python3 {baseDir}/stock-earnings-review/scripts/call_review_api.py \
  --secu-code 300059 --market-char SZ --class-code 002001 \
  --report-date 2025-12-31 --secu-name 东方财富
```

可选参数:

| 参数 | 说明 | 必填 |
|------|------|------|
| `validate_entity.py --query` | 用户原始问句(需含公司/股票信息) | ✅ |
| `normalize_report_period.py --selected-report-da

_meta.json

{
  "ownerId": "kn7b4ptpdag877t9kmq8axyja182taab",
  "slug": "stock-earnings-review",
  "version": "1.0.3",
  "publishedAt": 1776424773126
}

BUSINESS_LOGIC.md

# stock-earnings-review — 业务逻辑说明(详版)

本文档保留编排层(大模型 / 规划引擎)需要遵循的**完整业务规则**,与精简后的 `SKILL.md` 配套使用。  
实现细节以 `scripts/` 下代码及仓库根目录 `api_integration.md` 为准。

调用方式说明:本 skill 采用**分步骤编排**(实体识别 -> 报告期候选 -> 模型选期 -> 业绩点评)。

---

## 1. 前置检查(进入流程前)

- 若用户问句中**未提及**任何公司名称、股票简称或股票代码,**不要**进入实体识别与后续接口调用;应直接向用户确认需要点评的公司或代码。
- 常见实体形式包括:
  - 公司全称(如「贵州茅台酒股份有限公司」)
  - 股票简称(如「东方财富」「腾讯控股」)
  - 股票代码(如「600519」「AAPL」)
- 若用户输入中**出现多个实体**,优先取**第一个**明确的公司实体。

---

## 2. 第一步:实体识别与市场校验

### 2.1 调用方式

- 调用 `scripts/validate_entity.py`,将用户的**原始问句**作为输入,请求实体识别接口,一次性完成实体识别与市场分类校验。

### 2.2 脚本侧期望输出(概念)

- 成功:返回标准化实体信息,至少包括:
  - `secuCode`:股票代码  
  - `marketChar`:市场代码(如 SH / SZ / BJ / HK / US 等,以接口为准)  
  - `classCode`:市场分类码(用于判断是否属于支持的市场)  
  - `secuName`:证券简称(如有)
- 多个候选时:**取第一个**有效实体。

### 2.3 编排层分支

| 情况 | 处理 |
|------|------|
| 识别成功且属于支持市场 | 进入第二步 |
| 识别结果为空或不支持的市场 | 提示:**「目前仅支持沪深京港美实体进行业绩点评。您提供的实体不在支持范围内,请确认后重新输入。」**(或等价表述),终止流程 |
| 接口失败 / 脚本异常 | 提示接口或系统错误,终止流程 |

---

## 3. 第二步:报告期列表与匹配

### 3.1 报告期列表获取

- 调用 `scripts/normalize_report_period.py`,传入第一步得到的实体信息,由脚本请求**报告期列表接口**,得到该标的**已披露**的报告期集合。

### 3.2 谁来选择具体报告期(核心)

- **由上层模型(或调用方)**根据用户问句、实体及完整报告期列表,选定一个 `reportDate`(格式一般为 `YYYY-MM-DD`)。这是分步骤编排中的关键决策步骤。
- 模型选定的 `reportDate` 可通过 `normalize_report_period.py --selected-report-date` 做有效性校验;未传时默认取候选列表第一项(通常为最新)。

### 3.3 用户意图解析(编排层建议)

1. 从问句中解析报告期意图:年份、季度类型、是否「最新」「最近」等。  
2. 结合市场类型在列表中匹配**最佳**报告期。  
3. 若用户**完全未指定**报告期,或仅表述为「最新」「最近一期」等,通常对应列表中的**最新一期**(列表排序以接口返回为准,一般为新→旧)。

### 3.4 A 股报告期匹配(自然年≈财年,可直接按日期匹配)

- 用户指定**年份 + 季度**(如「2024 年三季报」)→ 在列表中**精确匹配**对应报告期末日。  
- 用户只指定**季度**未指定年份(如「三季报」)→ 在列表中匹配**最近一次**出现的该季度。  
- 用户只指定**年份**未指定季度(如「2024 年」)→ 匹配该自然年内列表中**最新可用**的一期。  
- 季度与报告期常见对应:一季报 / 半年报 / 三季报 / 年报(全年)等,以列表中实际 `reportDate` 为准。

### 3.5 港美股报告期匹配(财年与自然年可能不一致)

- 港美股公司财年结束日可能不是 12 月;用户说的「2024 年年报」在不同公司上对应的**自然日期区间**可能不同。  
- 建议规则:  
  - 用户使用**自然年**表述 → 按自然年维度在列表中匹配;  
  - 用户使用**财年**表述(如 FY2024)→ 按财年语义匹配;  
  - 若财年与自然年表述**产生歧义**,优先按**财年**匹配,并在最终输出中**说明**该公司财年结束月份及本次匹配到的自然报告期。

### 3.6 匹配失败与近似匹配

| 情况 | 编排层建议 |
|------|------------|
| 列表中**无精确匹配** | 可选用**时间最接近**的一期,并明确提示:「未找到精确匹配的报告期,已为您匹配最接近的报告期:{实际 reportDate }」 |
| 报告期列表**为空** | 提示「暂无该实体的可用报告期数据」,终止 |
| 接口失败 | 提示「暂时无法获取报告期信息,请稍后重试」,终止 |

### 3.7 与当前脚本行为的关系(重要)

- `choose_report_option_by_model(..., strict=True)` 下:若传入的 `selected_report_date` **不在**接口返回的候选列表中,脚本会**报错**,而**不会**静默回退到「最接近一期」。  
- 因此:编排层若采用「最接近报告期」策略,应自行算好目标日期并保证传入值**落在列表中**,或调整调用方式(例如先不向脚本传错误日期)。  
- 未传 `selected_report_date` 时,当前实现为取列表**第一项**作为默认(通常需保证接口列表已按新→旧排序)。

---

## 4. 第三步:业绩点评生成与交付形态

### 4.1 调用方式

- 调用 `scripts/call_review_api.py`,传入实体信息与最终 `reportDate`。
- 日志口径统一:`JSON` 过程日志(如 `01~05.json`、`03_comment_raw.json`)仅在 `debug` 模式下落盘;非 `debug` 模式不生成这些日志文件。
- 附件口径统一:无论是否 `debug`,只要接口返回了 `pdfBase64` / `wordBase64`(及可选的数据底稿 base64),都应正常保存到本地附件目录。

### 4.2 若第二步存在附带说明

- 若报告期为**近似匹配**、或港美股存在**财年说明**,应在最终输出**末尾**一并展示,避免用户误解所选报告期。

---

## 5. 数学与排版格式(对用户回复)

- 行内公式:`\(...\)`(不使用 `$...$`)。  
- 行间公式:`\[...\]`。  
- 行间公式块内部内容保持与源一致。

---

## 6. 错误处理汇总(完整表)

| 错误场景 | 处理方式

skill-card.md

## Description:

Generates earnings review commentary for listed companies and stocks across Shanghai, Shenzhen, Beijing, Hong Kong, and U.S. markets using Eastmoney data.

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 analysis agents use this skill to validate a company or stock, select a disclosed reporting period, and produce an earnings review with analysis text, a share link, and saved report attachments.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill sends user queries and stock or report identifiers to Eastmoney APIs.

Mitigation: Use only with data appropriate for that external service and provide an EM_API_KEY from a trusted, scoped source.

Risk: The skill saves returned PDF, Word, or spreadsheet attachments locally and may write debug logs when debug mode is enabled.

Mitigation: Review the output directory, avoid debug mode for sensitive workflows unless needed, and handle saved files according to local data-retention requirements.

Risk: Generated links and saved attachments are external content returned by the API service.

Mitigation: Review generated links and attachments before sharing or relying on them.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/financial-ai-analyst/skills/stock-earnings-review)
- [Publisher profile](https://clawhub.ai/user/financial-ai-analyst)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, files, configuration, guidance]

**Output Format:** [Markdown response with generated earnings commentary, share link, and local attachment paths; scripts return JSON.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May save PDF, Word, and spreadsheet attachments locally; debug mode may write intermediate JSON logs.]

## Skill Version(s):

1.0.3 (source: server release evidence)

## 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.
Github ReposUpdated 9h agoRank 70

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!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

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

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

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/stock-earnings-review",
      "sourceUrl": "https://clawhub.ai/financial-ai-analyst/skills/stock-earnings-review",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-09T02:24:38.784Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-stock-earnings-review/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-stock-earnings-review/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-09T02:24:38.784Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "9.8K downloads",
      "href": "https://clawhub.ai/financial-ai-analyst/stock-earnings-review",
      "sourceUrl": "https://clawhub.ai/financial-ai-analyst/stock-earnings-review",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-09T02:24:38.784Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.3",
      "href": "https://clawhub.ai/financial-ai-analyst/stock-earnings-review",
      "sourceUrl": "https://clawhub.ai/financial-ai-analyst/stock-earnings-review",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-17T11:19:33.126Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-stock-earnings-review/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-financial-ai-analyst-stock-earnings-review/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.3",
      "description": "Publish 1.0.3",
      "href": "https://clawhub.ai/financial-ai-analyst/stock-earnings-review",
      "sourceUrl": "https://clawhub.ai/financial-ai-analyst/stock-earnings-review",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-17T11:19:33.126Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 10, 2026.

Sponsored

Ads related to Earnings Review Agent and adjacent AI workflows.