Team-Wiki Ingest
Automated pipeline for ingesting external knowledge sources into the Team-Wiki knowledge graph. Captures raw content, synthesizes entities and concepts, creates structured markdown pages, and establishes typed links across the wiki.
Prerequisites
- Team-Wiki initialized and indexed (
team-wiki/setup, gbrain sync run at least once)
- GBrain MCP server running (or CLI available)
WIKI_PATH environment variable set
- Source material accessible (URL, local file, or clipboard text)
- Appropriate citation data: title, source URL, publication date, author(s)
Ingestion Pipeline
Each source passes through four stages:
Stage 1: Capture Raw
Save the source material as a dated raw file under WIKI_PATH/.raw/ (gitignored in Obsidian but tracked in GBrain raw store):
# Example: ingest from URL
gbrain file upload --source "https://example.com/article" --title "Article Title" --type url
Creates: .raw/2026-04-25-article-title.md with frontmatter pointing to original URL.
Stage 2: Entity & Concept Extraction (GBain Enrichment)
GBrain's entity extraction (via LLM) identifies:
- People, companies, projects, skills, infrastructure from the content
- Key concepts and techniques
- Temporal events with dates
Produces an "enrichment JSON" attached to the raw file.
Stage 3: Page Creation/Update
For each identified entity:
- Check if entity page already exists in
entities/{type}/; if so, append to timeline
- If new, create entity page with:
- YAML frontmatter:
title, created, updated, type=entity, tags (with domain prefix), sources (link to raw file)
- Summary paragraph (2–3 sentences)
## Details section with extracted facts
## Relationships section with [[wikilinks]] to other entities
## References with citation to raw source
- Update
index.md if a new entity was added
Stage 4: Sync & Index
gbrain sync --repo "$WIKI_PATH" && gbrain embed --stale
The new content becomes searchable and linked.
Ingest Workflow (Skill Interface)
# Ingest from a URL with minimal metadata
skill:team-wiki/ingest \
--source-type url \
--url "https://blog.example.com/hermes-agent-teams" \
--title "Building Agent Teams with Hermes" \
--date 2026-04-25
# Ingest from a local document (PDF → text processed externally)
skill:team-wiki/ingest \
--source-type file \
--file "/path/to/article.md" \
--title "Paper Title" \
--authors "Jane Doe, John Smith" \
--venue "Conference on AI Agents"
Required flags:
--source-type: url, file, clipboard, or text
--title: Human-readable title
--date: Publication date (YYYY-MM-DD)
Optional flags:
--authors, --venue, --doi — bibliographic data
--tags — additional tags beyond auto-detected
--dry-run — preview without writing
Source Types
| Type |
Handling |
url |
Fetch HTML/text, strip boilerplate, store raw URL in frontmatter |
file |
Read markdown or plain text from disk |
clipboard |
Read from system clipboard (macOS pbpaste, Linux xclip) |
text |
Raw string passed inline (for API use) |
Entity Type Mapping
Incoming sources are classified into page types per SCHEMA.md:
- agent: Mentions Hermes agent roles (foreman, coder, etc.) →
entities/agents/
- skill: Tools, frameworks, libraries →
entities/skills/
- infrastructure: Systems, runtimes, services (Hermes, GBrain, Icarus, OpenAI) →
entities/infrastructure/
- company: Organizations (Anthropic, OpenAI, 37signals) →
entities/companies/
- person: Humans (Karpathy, Tan, etc.) →
entities/people/
- project: Code repos, initiatives →
entities/projects/
- concept: Topics, techniques, frameworks not fitting above →
concepts/
Citation and Provenance
Every created/updated page must preserve provenance:
sources: frontmatter array includes raw file path or URL
- Inline citations:
^[raw/2026-04-25-hermes-teams.md] reference raw source
## References section with full citation
Idempotency
Ingest is safe to re-run: if the same source (by title + date) is processed again, it appends to existing pages rather than creating duplicates. Deduplication based on normalized title + source fingerprint.
Quality Gates
Before marking ingest complete:
- All new pages have ≥2
[[wikilinks]] (enforced by team-wiki/maintain)
- Frontmatter validates per SCHEMA
gbrain sync finishes without errors
- Embedding count increases (vector search updated)
Automation
This skill is typically called by:
researcher agent when discovering new information
secretary agent during daily knowledge capture
- Cron or webhook when a new article is published
See Also
gbrain file upload and gbrain enrich primitives
llm-wiki skill (Karpathy's three-layer wiki pattern)
team-wiki/sync (to refresh after ingest)
1---2name: ingest3description: "Ingest a source into Team-Wiki: capture raw, extract entities, create/update pages, cross-link"4version: 1.0.05author: Hermes Agent Team6license: MIT7metadata:8 source: https://skillmd.com/skills/theheavenlyd3mon/ingest9 hermes:10 tags: [team-wiki, ingest, pipeline, gbrain, entity-extraction]11 related_skills: [team-wiki/sync, team-wiki/maintain, researcher]12---1314# Team-Wiki Ingest1516Automated pipeline for ingesting external knowledge sources into the Team-Wiki knowledge graph. Captures raw content, synthesizes entities and concepts, creates structured markdown pages, and establishes typed links across the wiki.1718## Prerequisites1920- Team-Wiki initialized and indexed (`team-wiki/setup`, `gbrain sync` run at least once)21- GBrain MCP server running (or CLI available)22- `WIKI_PATH` environment variable set23- Source material accessible (URL, local file, or clipboard text)24- Appropriate citation data: title, source URL, publication date, author(s)2526## Ingestion Pipeline2728Each source passes through four stages:2930### Stage 1: Capture Raw3132Save the source material as a dated raw file under `WIKI_PATH/.raw/` (gitignored in Obsidian but tracked in GBrain raw store):3334```bash35# Example: ingest from URL36gbrain file upload --source "https://example.com/article" --title "Article Title" --type url37```3839Creates: `.raw/2026-04-25-article-title.md` with frontmatter pointing to original URL.4041### Stage 2: Entity & Concept Extraction (GBain Enrichment)4243GBrain's entity extraction (via LLM) identifies:44- People, companies, projects, skills, infrastructure from the content45- Key concepts and techniques46- Temporal events with dates4748Produces an "enrichment JSON" attached to the raw file.4950### Stage 3: Page Creation/Update5152For each identified entity:531. Check if entity page already exists in `entities/{type}/`; if so, append to timeline542. If new, create entity page with:55 - YAML frontmatter: `title`, `created`, `updated`, `type=entity`, `tags` (with domain prefix), `sources` (link to raw file)56 - Summary paragraph (2–3 sentences)57 - `## Details` section with extracted facts58 - `## Relationships` section with `[[wikilinks]]` to other entities59 - `## References` with citation to raw source603. Update `index.md` if a new entity was added6162### Stage 4: Sync & Index6364```bash65gbrain sync --repo "$WIKI_PATH" && gbrain embed --stale66```6768The new content becomes searchable and linked.6970## Ingest Workflow (Skill Interface)7172```bash73# Ingest from a URL with minimal metadata74skill:team-wiki/ingest \75 --source-type url \76 --url "https://blog.example.com/hermes-agent-teams" \77 --title "Building Agent Teams with Hermes" \78 --date 2026-04-257980# Ingest from a local document (PDF → text processed externally)81skill:team-wiki/ingest \82 --source-type file \83 --file "/path/to/article.md" \84 --title "Paper Title" \85 --authors "Jane Doe, John Smith" \86 --venue "Conference on AI Agents"87```8889**Required flags:**90- `--source-type`: `url`, `file`, `clipboard`, or `text`91- `--title`: Human-readable title92- `--date`: Publication date (YYYY-MM-DD)9394**Optional flags:**95- `--authors`, `--venue`, `--doi` — bibliographic data96- `--tags` — additional tags beyond auto-detected97- `--dry-run` — preview without writing9899## Source Types100101| Type | Handling |102|------|----------|103| `url` | Fetch HTML/text, strip boilerplate, store raw URL in frontmatter |104| `file` | Read markdown or plain text from disk |105| `clipboard` | Read from system clipboard (macOS `pbpaste`, Linux `xclip`) |106| `text` | Raw string passed inline (for API use) |107108## Entity Type Mapping109110Incoming sources are classified into page types per SCHEMA.md:111112- **agent**: Mentions Hermes agent roles (foreman, coder, etc.) → `entities/agents/`113- **skill**: Tools, frameworks, libraries → `entities/skills/`114- **infrastructure**: Systems, runtimes, services (Hermes, GBrain, Icarus, OpenAI) → `entities/infrastructure/`115- **company**: Organizations (Anthropic, OpenAI, 37signals) → `entities/companies/`116- **person**: Humans (Karpathy, Tan, etc.) → `entities/people/`117- **project**: Code repos, initiatives → `entities/projects/`118- **concept**: Topics, techniques, frameworks not fitting above → `concepts/`119120## Citation and Provenance121122Every created/updated page must preserve provenance:123- `sources:` frontmatter array includes raw file path or URL124- Inline citations: `^[raw/2026-04-25-hermes-teams.md]` reference raw source125- `## References` section with full citation126127## Idempotency128129Ingest is safe to re-run: if the same source (by title + date) is processed again, it appends to existing pages rather than creating duplicates. Deduplication based on normalized title + source fingerprint.130131## Quality Gates132133Before marking ingest complete:134- All new pages have ≥2 `[[wikilinks]]` (enforced by `team-wiki/maintain`)135- Frontmatter validates per SCHEMA136- `gbrain sync` finishes without errors137- Embedding count increases (vector search updated)138139## Automation140141This skill is typically called by:142- `researcher` agent when discovering new information143- `secretary` agent during daily knowledge capture144- Cron or webhook when a new article is published145146## See Also147148- `gbrain file upload` and `gbrain enrich` primitives149- `llm-wiki` skill (Karpathy's three-layer wiki pattern)150- `team-wiki/sync` (to refresh after ingest)