timeline-extraction

用于案件/项目时间线的时间线抽取原子 skill,适用于通用行业信息抽取场景。

105 stars

Best use case

timeline-extraction is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

用于案件/项目时间线的时间线抽取原子 skill,适用于通用行业信息抽取场景。

Teams using timeline-extraction 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/timeline-extraction/SKILL.md --create-dirs "https://raw.githubusercontent.com/aifinlab/FinClaw/main/skills/archive/timeline-extraction/SKILL.md"

Manual Installation

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

How timeline-extraction Compares

Feature / Agenttimeline-extractionStandard 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. 文本数据格式
- **纯文本格式**:.txt 文件,UTF-8编码
- **结构化文档**:PDF、Word、Excel文档(需预处理为文本)
- **HTML网页**:网页内容
- **数据库文本字段**:从数据库直接读取的文本内容

### 3. 时间信息类型
- **明确日期**:具体日期、时间点
- **相对时间**:相对时间表达、时间段
- **时间序列**:连续的时间事件序列
- **时间关系**:事件之间的时间关系

### 4. 数据格式要求
- **文件路径**:本地文件路径或网络文件URL
- **文件编码**:UTF-8、GBK、GB2312等
- **数据完整性**:需要包含完整的时间相关信息

> 说明:本 Skill 不包含数据采集功能,需要用户提供清洗后的文档数据。建议文档包含完整的时间信息,以便进行准确的时间线抽取。

---

## 功能

本 Skill 提供全面的时间线抽取能力,涵盖多种抽取功能:

### 1. 时间实体识别
- **日期识别**:识别文档中的日期和时间
- **时间表达式识别**:识别时间表达式和相对时间
- **时间段识别**:识别时间段和持续时间
- **时间频率识别**:识别时间频率和周期

### 2. 事件识别
- **事件提取**:提取文档中的事件描述
- **事件类型识别**:识别事件的类型和类别
- **事件描述提取**:提取事件的详细描述
- **事件关键词提取**:提取事件的关键词

### 3. 时间线构建
- **时间点排序**:按时间顺序排序事件
- **时间线生成**:生成完整的时间线
- **时间线可视化**:生成时间线的可视化表示
- **时间线分段**:按时间段分段时间线

### 4. 时间关系分析
- **因果关系识别**:识别事件之间的因果关系
- **时间顺序关系**:识别事件的时间顺序关系
- **时间间隔分析**:分析事件之间的时间间隔
- **时间模式识别**:识别时间模式和规律

### 5. 实体关联
- **事件实体关联**:关联事件和相关实体
- **时间实体关联**:关联时间和相关实体
- **关系网络构建**:构建事件关系网络
- **实体时间线**:生成实体的时间线

### 6. 高级处理功能
- **时间线合并**:合并多个文档的时间线
- **时间线对比**:对比不同时间线
- **时间线摘要**:生成时间线摘要
- **时间线查询**:支持时间线查询和检索

---

## 使用示例

### 输出示例
```json
{
  "source_info": {
    "document_id": "DOC001",
    "document_type": "legal_case",
    "source_file": "case_document.pdf"
  },
  "timeline": {
    "events": [
      {
        "event_id": "EVT001",
        "event_type": "case_filing",
        "event_description": "案件立案",
        "timestamp": "2024-01-15",
        "time_expression": "2024年1月15日",
        "confidence": 0.95,
        "entities": [
          {"type": "person", "name": "张三"},
          {"type": "organization", "name": "法院A"}
        ],
        "location": "法院A"
      },
      {
        "event_id": "EVT002",
        "event_type": "hearing",
        "event_description": "开庭审理",
        "timestamp": "2024-03-20",
        "time_expression": "2024年3月20日",
        "confidence": 0.92,
        "entities": [
          {"type": "person", "name": "李四"},
          {"type": "organization", "name": "法院A"}
        ],
        "location": "法院A"
      },
      {
        "event_id": "EVT003",
        "event_type": "judgment",
        "event_description": "判决结果",
        "timestamp": "2024-05-10",
        "time_expression": "2024年5月10日",
        "confidence": 0.98,
        "entities": [
          {"type": "organization", "name": "法院A"}
        ],
        "location": "法院A"
      }
    ],
    "time_span": {
      "start": "2024-01-15",
      "end": "2024-05-10",
      "duration_days": 116
    }
  },
  "time_relations": [
    {
      "source_event": "EVT001",
      "target_event": "EVT002",
      "relation_type": "before",
      "time_interval": 65
    },
    {
      "source_event": "EVT002",
      "target_event": "EVT003",
      "relation_type": "before",
      "time_interval": 51
    }
  ],
  "statistics": {
    "total_events": 3,
    "event_types": ["case_filing", "hearing", "judgment"],
    "time_span_days": 116
  }
}
```

---

## 注意事项与限制

### 1. 数据质量要求
- 文档需要包含时间相关信息
- 时间表达需要清晰明确
- 事件描述需要完整

### 2. 时间识别准确性
- 标准日期格式识别准确率较高
- 相对时间表达可能影响识别
- 模糊时间表达可能无法准确识别

### 3. 事件抽取准确性
- 明确描述的事件识别准确率较高
- 隐含事件可能需要上下文分析
- 复杂事件可能需要人工分析

### 4. 时间关系分析
- 明确的时间关系识别准确率较高
- 复杂时间关系可能需要人工分析
- 时间因果关系需要上下文支持

### 5. 使用限制
- 本 Skill 不包含时间线编辑功能
- 抽取结果需要人工复核
- 复杂时间线可能需要人工构建

---

## 参考资料
- 见 references/ 目录中的相关文档,包括:
  - 时间线抽取方法手册
  - 时间实体识别算法说明
  - 事件抽取指南
  - 性能优化指南

Related Skills

project-timeline-assistant

105
from aifinlab/FinClaw

项目进度助手。专注于投研项目进度跟踪,包括项目计划、里程碑、任务分配、进度汇报,帮助团队高效管理投研项目。 **触发场景**: - 用户需要跟踪投研项目进度 - 用户说"项目进度"、"时间线"、"里程碑" - 需要项目计划、任务分配 - 需要进度汇报、延期预警 **关键词**:"项目进度"、"时间线"、"里程碑"、"任务分配"、"进度跟踪"、"项目管理"

investment-thesis-extraction

105
from aifinlab/FinClaw

投资逻辑提炼助手。专注于从研报/会议/访谈中提炼核心投资逻辑,输出简洁清晰的投资论点、关键论据、验证方法。 **触发场景**: - 用户需要从长文档中提炼投资逻辑 - 用户说"提炼逻辑"、"投资论点"、"核心逻辑" - 需要简洁清晰、便于转述 - 需要关键论据、验证方法 **关键词**:"投资逻辑"、"提炼"、"论点"、"核心逻辑"、"thesis"、"投资要点"

product-selling-point-extraction

105
from aifinlab/FinClaw

面向基金产品管理领域的卖点提炼任务Skill,围绕「产品卖点提炼助手」场景提供信息抽取、结构化分析与结果输出。

relation-extraction

105
from aifinlab/FinClaw

用于主体关系抽取的关系抽取原子 skill,适用于通用行业信息抽取场景。

product-feature-extraction

105
from aifinlab/FinClaw

用于产品属性抽取的产品特征抽取原子 skill,适用于通用行业信息抽取场景。

metric-field-extraction

105
from aifinlab/FinClaw

用于报表指标抽取的指标字段抽取原子 skill,适用于通用行业信息抽取场景。

financial-field-extraction

105
from aifinlab/FinClaw

用于财报字段抽取的财务字段抽取原子 skill,适用于通用行业信息抽取场景。

event-extraction

105
from aifinlab/FinClaw

用于风险/市场事件抽取的事件抽取原子 skill,适用于通用行业信息抽取场景。

clause-field-extraction

105
from aifinlab/FinClaw

用于条款字段抽取的条款字段抽取原子 skill,适用于通用行业信息抽取场景。

claims-fact-timeline-assistant

105
from aifinlab/FinClaw

当用户需要梳理保险理赔案件的事实时间线、重建出险到结案的事件顺序、整合病历报案材料审核记录中的时间信息、识别时间冲突或生成适合理赔审核调查复核客服使用的标准化时间轴时使用本 skill。适用于汇总理赔系统案件记录、报案记录、出险说明、门急诊记录、住院记录、手术记录、检查检验报告、病历首页、出院小结、发票或费用清单、补件记录、审核记录、调查记录、结案记录、客服工单记录、沟通备注、OCR 文本、PDF 文档和截图转写内容,提炼关键时间节点、阶段划分、时间间隔、时间冲突和后续核查建议。

trust-valuation-engine

105
from aifinlab/FinClaw

## 描述

trust-risk-manager

105
from aifinlab/FinClaw

## 描述