AgentSkillsCN

extract-struct

使用大语言模型从论文文本中提取结构化元数据(标题、作者、年份)。用于将在线搜索结果的元数据转换为JSON

SKILL.md
--- frontmatter
name: extract-struct
type: prompt_augmentation
description: "Extract structured metadata (title, authors, year) from paper text using LLM. Use to convert online search results metadata to JSON"

extract-struct

Extract structured metadata from academic paper text using LLM analysis.

Input

  • target: Note ID or variable containing full text or first pages of academic paper

Output

Returns JSON Note with:

  • title: Paper title
  • authors: List of author names
  • year: Publication year
  • venue: Conference/journal if identifiable
  • abstract: Paper abstract if present

Behavior

  • Uses LLM to analyze paper text and extract structured fields
  • Handles various paper formats and layouts
  • Returns only JSON, no explanation text

Planning Notes

  • Provide full text or first few pages for best results
  • Works best with academic papers that have clear title/author sections
  • Use with fetch-text to get paper content first

Example

json
{"type":"extract-struct","target":"$paper_text","out":"$metadata"}