extract-facts

extract-facts is a skill for Claude Code from ayeshakhalid192007-dev/graph-engineering-crash-course. It costs 28 tokens per session (1,045 once invoked), scanned A, original, MIT.

A document extractor that turns incident reports into structured JSON about services, incidents, causes, and their defined links. It only includes types and relationships listed in a supplied schema.

In plain words
What is it for?
Use it to extract incident facts for later analysis, search, or graph building when the output must follow a fixed schema.
Why use it?
It removes the need to turn reports into consistent structured data by hand, while preventing unsupported facts from being added.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

Good fit Use it to extract incident facts for later analysis, search, or graph building when the output must follow a fixed schema.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ayeshakhalid192007-dev/graph-engineering-crash-course --skill extract-facts
Clone the repo
git clone --depth 1 https://github.com/ayeshakhalid192007-dev/graph-engineering-crash-course

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for extract-facts

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts/github.svg)](https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts)
Your own site
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for extract-facts

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/extract-facts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01045
Opus 5 $0.00014 $0.00522
Sonnet 5 $0.00006 $0.00209
Haiku 4.5 $0.00003 $0.00104

Measured 8d ago against content hash 29ed5cb225d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

extract-facts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

starters/document-to-facts/.claude/skills/extract-facts/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

extract-facts

Turns an incident-report document into typed entity and relationship JSON matching schema.example.json, instead of a prose summary. Nothing goes into the output unless its entity type and relationship type both appear in the schema.

Instructions

You are a Claude Code skill implementing the document-to-facts pattern. Do not summarize the document. Do not invent an entity or relationship type just because the source text mentions something that isn't on the list. Follow these steps in order:

  1. Read the schema first, before reading the document. Open schema.example.json in this kit and write down its two lists side by side: the three entity types it names (Service, Incident, Cause) and the two relationships, each with its required direction (a caused-by edge always runs from an Incident to a Cause; an affected edge always runs from an Incident to a Service). Note the required properties listed for each type. Treat this list as frozen for the whole run — nothing gets added to it mid-extraction.
  2. Read the source document. Default to sample-input.md in this kit unless the user points you at a different file.
  3. Draft candidate facts. For every statement in the document that looks like an entity or a relationship, write down a candidate in the form {entity_type, entity_properties} or {relationship_type, from, to}. Be generous at this stage — over-collect rather than under-collect.
  4. Filter every candidate against the schema from step 1. Keep a candidate only if:
    • for an entity: its entity_type is one of Service, Incident, Cause, and its properties are a subset of that type's allowed properties;
    • for a relationship: its relationship_type is one of caused-by or affected, and the types of its from and to entities match what the schema declares for that relationship. Drop everything else. Do not rename a candidate's type to make it fit (e.g. do not relabel a Person as a Service) — a mismatched candidate is dropped, not reshaped.
  5. Record every dropped candidate with the reason it failed (unknown entity type, unknown relationship type, or a from/to type mismatch). The on-call engineer's name and the Slack channel mentioned in sample-input.md are expected to be dropped here — that's the schema working as intended, not a bug to fix.
  6. Emit the surviving facts as JSON shaped like schema.example.json's entities and relationships arrays, with each relationship tagged with a source_document property naming the file you read in step 2. Write the result to output.json in the kit's root (or the path the user requested) and also print it.
  7. Print the drop list from step 5 alongside the JSON so a human can see what was excluded and why, without having to re-run the extraction to find out.

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 99 lines · 28 tokens per session scan A 29ed5cb225d4

Subscribe to this mod's changes

extract-facts is a skill published in the GitHub repository ayeshakhalid192007-dev/graph-engineering-crash-course (5 stars, last pushed 13d ago), licensed MIT. It adds 28 tokens to every session and 1,045 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

presentations

Use when building, theming, or exporting a presentation deck — pitch, sales, keynote, board/QBR, leave-behind one-pager — from slide structure to a token-based theme to PDF or editable PPTX (Marp, Slidev, python-pptx). NOT the words (that is marketing), NOT the visual tokens (that is design), NOT the investor story…

ericrisco/rsc-harness · 93 tokens

investor-materials

Use when packaging or circulating the documents an investor reads outside the meeting — setting up or cleaning a data room, writing the one-pager or teaser that earns the first meeting, or drafting the recurring monthly investor update. NOT the slide narrative (that is pitch-deck), NOT the projection spreadsheet (that…

ericrisco/rsc-harness · 87 tokens

reporting

Use when a recurring report must ship itself on a cadence — weekly digest, monthly exec pack, board pack — via a fetch→narrate→render→deliver pipeline with a schedule and a freshness gate. NOT a live view people slice (that is dashboard), NOT picking which KPIs to track (that is kpi-framework), NOT a one-off…

ericrisco/rsc-harness · 85 tokens

document-processing

Use when the deliverable is a document's bytes or its literal content — text/tables out of PDFs, AcroForm fill and flatten, page merge/split, PDF/DOCX from templates, OCR of image-only scans. NOT schema-typed fields pulled from text (that is structured-extraction), NOT signature routing (e-signature) or spreadsheet…

ericrisco/rsc-harness · 84 tokens

managing-artifacts

Artifact storage paths and project-encoded conventions for generated documents, reports, plans, and audits. Loaded by the core rule module. Triggers: 'where should I put this', 'save report', 'output directory'.

axiomantic/spellbook · 49 tokens

opencode-export

Export opencode sessions to self-contained HTML + JSON archives for sharing, review, or backup. Use when the user wants to save, archive, or share their AI coding session history.

ZelinZhou-THU/opencode-export · 41 tokens