Back to list
RooseveltAdvisors

citation-extraction

by RooseveltAdvisors

0🍴 0📅 Oct 25, 2025

SKILL.md


name: citation-extraction description: Extract and validate citations with Jaccard overlap calculation. Ensures all claims have verifiable source evidence with ≥0.7 alignment threshold.

Citation Extraction Skill

Overview

Validates citations by calculating Jaccard overlap (intersection over union) between cited text and source passages. Enforces ≥0.7 threshold for quality.

When to Use

  • Validate citations in clinical summaries
  • Calculate Jaccard overlap for Evaluator metrics
  • Extract source text spans for claims

Installation

IMPORTANT: This skill has its own isolated virtual environment (.venv) managed by uv. Do NOT use system Python.

Initialize the skill's environment:

# From the skill directory
cd .agent/skills/citation-extraction
uv sync  # Creates .venv (no external dependencies, uses Python stdlib)

Usage

CRITICAL: Always use uv run to execute code with this skill's .venv, NOT system Python.

# From .agent/skills/citation-extraction/ directory
# Run with: uv run python -c "..."
from citation_extraction import CitationExtractor

extractor = CitationExtractor()

# Validate citation
jaccard = extractor.calculate_jaccard_overlap(
    claim_text="Patient has hypertension",
    source_text="Patient diagnosed with hypertension 10 years ago"
)

if jaccard >= 0.7:
    print(f"Valid citation (Jaccard: {jaccard})")

Implementation

See citation_extraction.py.

Score

Total Score

45/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon