Multi source data aggregation

From aifinlab/FinClaw · View interactive version

Multi source data aggregation is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于多系统整合的多源数据聚合原子 skill,适用于通用行业数据接入场景。

How to use this skill

Skill file

多源数据聚合 Skill

数据来源

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

1. 数据源类型

2. 数据源特征

3. 数据格式要求

4. 聚合特征

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


功能

本 Skill 提供全面的多源数据聚合能力,涵盖多种聚合功能:

1. 数据源管理

2. 数据提取

3. 数据聚合

4. 数据转换

5. 数据验证

6. 高级处理功能


使用示例

输出示例

{
  "source_info": {
    "source_count": 5,
    "source_types": ["database", "api", "file"],
    "aggregation_strategy": "merge"
  },
  "data_sources": [
    {
      "source_id": "SRC001",
      "source_type": "database",
      "source_name": "financial_db",
      "status": "connected",
      "records_count": 10000
    },
    {
      "source_id": "SRC002",
      "source_type": "api",
      "source_name": "market_data_api",
      "status": "connected",
      "records_count": 5000
    }
  ],
  "aggregation_config": {
    "aggregation_mode": "merge",
    "key_fields": ["stock_code", "trade_date"],
    "merge_strategy": "outer",
    "conflict_resolution": "latest"
  },
  "aggregation_results": {
    "total_records": 15000,
    "merged_records": 12000,
    "duplicate_records": 3000,
    "aggregation_time": "2024-03-15T10:00:00",
    "duration": "60s"
  },
  "aggregated_data": {
    "sample_records": [
      {
        "stock_code": "000001",
        "trade_date": "2024-03-15",
        "price": 10.50,
        "volume": 1000000,
        "source": ["SRC001", "SRC002"]
      }
    ]
  },
  "data_quality": {
    "completeness": 0.98,
    "accuracy": 0.97,
    "consistency": 0.96,
    "overall_score": 0.97
  },
  "statistics": {
    "sources_processed": 5,
    "records_aggregated": 12000,
    "aggregation_rate": "200 records/s",
    "success_rate": 0.98
  }
}

注意事项与限制

1. 数据源要求

2. 数据聚合性能

3. 数据一致性

4. 数据质量

5. 使用限制


参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.