Ingest

From shogo-labs/shogo-ai · View interactive version

Ingest is an AI agent skill from the GitHub repository shogo-labs/shogo-ai. Capture any source (URL, PDF, audio, video, image, text) into the knowledge vault — extracts entities and claims, rewrites existing notes, flags contradictions

How to use this skill

Skill file

Source Ingestion

When triggered, process the incoming source into the knowledge vault.

Supported Source Types

| Type | Method |

|------|--------|

| URL (article, blog) | Fetch via web or browser, extract main content |

| PDF | Download and extract text via shell_exec |

| Audio (voice memo) | Transcribe via Whisper, then process as text |

| Video (YouTube) | Pull transcript via web, extract key claims |

| Image (screenshot) | OCR via vision, extract text and entities |

| Plain text | Process directly |

Ingestion Pipeline

  1. Parse — Extract raw content from the source. Identify the source type and use the appropriate extraction method.
  1. Extract — From the raw content, identify:
  1. Match — For each extracted entity/claim, search the vault:
  1. Rewrite or Create — This is the critical step:

```

title, content, source, sourceUrl, confidence, entityType,

entities (JSON), relatedNotes (JSON), factTrueFrom, factTrueUntil,

vaultLearned (now)

```

  1. Cross-reference — Update related_notes on all affected notes. Every note that shares entities with the new content should link to it.
  1. Contradiction check — Compare new claims against existing vault knowledge:

POST /api/contradictions with both note IDs, the conflicting claims, and evidence strength for each side.

  1. Summarize — Report to the user:

```

INGESTED: <source title>

UPDATED: <N> existing notes

CREATED: <N> new notes

CONTRADICTIONS: <N> flagged (list them)

ENTITIES: <comma-separated list>

```

Citation Format

Every claim traced to this source must include:

Frontmatter Template

source: "<source name>"
sourceUrl: "<url>"
confidence: "medium"
last_verified: "2026-05-05"
related_notes: ["<note-id-1>", "<note-id-2>"]
entities: ["<entity1>", "<entity2>"]
created: "2026-05-05"
vault_learned: "2026-05-05"
fact_true_from: "<date>"
fact_true_until: "present"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.