stemedb/.claude/commands/extract-claims.md
jordan 1cc453c97b feat: Aphoria policy source tracking + claim extraction pipeline
- Add PolicySourceStore for tracking where policies come from
- Implement claim extraction skill and API endpoints
- Add community UI text selection extractor component
- Create Go SDK aphoria client for policy operations
- Document patent specifications and legal disclosures
- Add guides: golden path loop, policy audit trails, pre-flight checks
- Expand Unreal Engine config extractor with source tracking
- Add UAT reports for policy source tracking validation
- Refactor tests.rs into modular test files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 02:35:02 -07:00

1.2 KiB

description
Extract entity-level claims from text for StemeDB ingestion

Extract entity-level claims from the provided text using the extract-claims skill.

Usage: /extract-claims "Your text or paste content here"

What this does:

  1. Analyzes the text for all mentioned entities (explicit and implied)
  2. Extracts a SEPARATE claim for EACH entity mentioned
  3. Identifies implicit claims (category membership, relationships)
  4. Assigns confidence scores based on language hedging
  5. Returns structured JSON ready for StemeDB API

Example:

/extract-claims "Every mainstream database, from PostgreSQL to MongoDB to Neo4j, enforces single value per key."

This would extract 7 claims:

  • 4 storage_model claims (one per database + category)
  • 3 is_mainstream claims (implicit category membership)

For CLI usage:

# From text
npx tsx community/scripts/extract-claims.ts --text "Your text" --source-class Expert

# From file and submit
npx tsx community/scripts/extract-claims.ts --file article.txt --source-class Clinical --submit

# Dry run from stdin
cat paper.txt | npx tsx community/scripts/extract-claims.ts --stdin --dry-run

Load the extract-claims skill for full extraction methodology.