realtime-stream-ingestion

用于行情/交易/事件流的实时流数据接入原子 skill,适用于通用行业数据接入场景。

105 stars

Best use case

realtime-stream-ingestion is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

用于行情/交易/事件流的实时流数据接入原子 skill,适用于通用行业数据接入场景。

Teams using realtime-stream-ingestion should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/realtime-stream-ingestion/SKILL.md --create-dirs "https://raw.githubusercontent.com/aifinlab/FinClaw/main/skills/archive/realtime-stream-ingestion/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/realtime-stream-ingestion/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How realtime-stream-ingestion Compares

Feature / Agentrealtime-stream-ingestionStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

用于行情/交易/事件流的实时流数据接入原子 skill,适用于通用行业数据接入场景。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 实时流数据接入 Skill

## 数据来源

本 Skill 支持多种实时流数据输入格式,核心数据来源包括:

### 1. 实时流类型
- **行情流**:股票行情、期货行情、外汇行情
- **交易流**:交易数据流、订单数据流
- **事件流**:实时事件流、监控事件流
- **其他实时流**:日志流、指标流

### 2. 数据源类型
- **消息队列**:Kafka、RabbitMQ、RocketMQ等
- **WebSocket**:WebSocket实时数据流
- **API接口**:实时API、流式API
- **数据库**:实时数据库、时序数据库

### 3. 数据格式要求
- **连接信息**:消息队列连接信息、WebSocket地址
- **认证信息**:用户名密码、API密钥、Token
- **订阅配置**:数据订阅配置、过滤规则
- **数据格式**:实时数据格式和编码方式

### 4. 实时流特征
- **数据频率**:高频数据(毫秒级)、中频数据(秒级)
- **数据规模**:小规模数据、大规模数据
- **数据实时性**:实时数据、近实时数据
- **数据连续性**:连续数据流、离散数据流

> 说明:本 Skill 不包含数据源配置功能,需要用户提供实时流连接信息。建议实时流稳定可靠,以便进行准确的实时数据接入。

---

## 功能

本 Skill 提供全面的实时流数据接入能力,涵盖多种接入功能:

### 1. 实时流连接
- **连接管理**:管理实时流连接
- **连接验证**:验证实时流连接
- **连接监控**:监控实时流状态
- **连接优化**:优化连接性能

### 2. 数据订阅
- **主题订阅**:订阅数据主题
- **过滤订阅**:基于条件过滤订阅
- **多主题订阅**:订阅多个数据主题
- **动态订阅**:动态调整订阅配置

### 3. 实时接收
- **实时接收**:实时接收数据流
- **流式处理**:流式处理数据
- **缓冲处理**:缓冲处理数据
- **背压处理**:处理数据背压

### 4. 数据解析
- **数据解析**:解析实时数据格式
- **数据分类**:对数据进行分类
- **数据标签**:为数据添加标签
- **数据提取**:提取数据关键信息

### 5. 数据处理
- **数据过滤**:过滤不需要的数据
- **数据转换**:转换数据格式
- **数据聚合**:聚合相关数据
- **数据采样**:采样数据流

### 6. 高级处理功能
- **数据存储**:存储实时数据
- **数据索引**:建立数据索引
- **数据查询**:支持数据查询功能
- **接入报告**:生成数据接入报告

---

## 使用示例

### 输出示例
```json
{
  "source_info": {
    "source_type": "websocket",
    "source_name": "market_data_stream",
    "endpoint": "ws://market.example.com/stream",
    "data_type": "stock_quotes"
  },
  "ingestion_config": {
    "subscription_mode": "subscribe",
    "symbols": ["000001", "000002", "600519"],
    "update_frequency": "real_time",
    "buffer_size": 1000
  },
  "ingestion_results": {
    "total_messages": 100000,
    "processed_messages": 99500,
    "failed_messages": 500,
    "ingestion_start_time": "2024-03-15T10:00:00",
    "ingestion_end_time": "2024-03-15T11:00:00",
    "duration": "3600s"
  },
  "data_samples": [
    {
      "message_id": "MSG001",
      "timestamp": "2024-03-15T10:00:00.123",
      "symbol": "000001",
      "data": {
        "price": 10.50,
        "volume": 1000000,
        "bid": 10.49,
        "ask": 10.51
      },
      "processed": true
    }
  ],
  "statistics": {
    "messages_received": 100000,
    "messages_processed": 99500,
    "messages_stored": 99500,
    "processing_rate": "27.6 messages/s",
    "success_rate": 0.995,
    "average_latency": "50ms"
  }
}
```

---

## 注意事项与限制

### 1. 实时流要求
- 实时流需要稳定可靠
- 连接信息需要准确
- 网络延迟需要控制

### 2. 实时处理性能
- 高频数据可能影响性能
- 需要优化处理流程
- 需要合理设置缓冲

### 3. 数据质量
- 实时数据质量影响处理结果
- 需要验证数据完整性
- 异常数据需要处理

### 4. 数据延迟
- 实时处理可能存在延迟
- 需要监控处理延迟
- 需要优化处理速度

### 5. 使用限制
- 本 Skill 不包含数据源管理功能
- 接入结果需要人工复核
- 复杂实时流可能需要特殊处理

---

## 参考资料
- 见 references/ 目录中的相关文档,包括:
  - 实时流数据接入方法手册
  - WebSocket配置指南
  - 实时处理策略说明
  - 性能优化指南

Related Skills

live-streaming-compliance

105
from aifinlab/FinClaw

直播话术合规助手,适用于券商直播营销、投资者教育、合规审核、主播培训等场景。 以下情况请主动触发此技能: - 用户提供了直播话术/脚本,问"有没有问题""帮我审查一下" - 用户问"直播合规要注意什么""哪些话不能说" - 用户需要:直播话术审查、合规风险提示、主播培训材料 - 用户提到:直播话术、证券直播、合规要点、主播培训、互动问答 - 用户需要形成审查意见、合规脚本、培训材料 不要等用户明确说"直播合规"——只要涉及证券直播内容审查、主播话术设计、直播合规培训,就应主动启动此技能。

live-stream-speech

105
from aifinlab/FinClaw

面向基金品牌与内容领域的讲稿生成任务Skill,围绕「直播讲稿助手」场景提供信息抽取、结构化分析与结果输出。

unstructured-document-ingestion

105
from aifinlab/FinClaw

用于PDF/Word/邮件接入的非结构化文档接入原子 skill,适用于通用行业数据接入场景。

structured-data-ingestion

105
from aifinlab/FinClaw

用于表/API/DB接入的结构化数据接入原子 skill,适用于通用行业数据接入场景。

semi-structured-data-ingestion

105
from aifinlab/FinClaw

用于Excel/表单接入的半结构化数据接入原子 skill,适用于通用行业数据接入场景。

external-knowledge-source-ingestion

105
from aifinlab/FinClaw

用于制度/产品/FAQ库的外部知识源接入原子 skill,适用于通用行业数据接入场景。

event-stream-ingestion

105
from aifinlab/FinClaw

用于新闻/公告/工单流的事件流接入原子 skill,适用于通用行业数据接入场景。

trust-valuation-engine

105
from aifinlab/FinClaw

## 描述

trust-risk-manager

105
from aifinlab/FinClaw

## 描述

trust-product-analyzer

105
from aifinlab/FinClaw

## 描述

trust-income-calculator

105
from aifinlab/FinClaw

## 描述

trust-compliance-checker

105
from aifinlab/FinClaw

## 描述