agentleFS
Google CloudKnown publisherGoogleCloudPlatform/knowledge-compiler/skills/ingest/SKILL.md

ingest

Skill18 starsChanged 12 days agoApache-2.0View on GitHub

Extracts, distills, and compiles raw sources (PPTX slide decks, PDFs, Word docs, Excel sheets, web URLs, transcripts, codebases, or raw/ directories) into persistent, structured Knowledge Compiler markdown wikis following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy LLM-Wiki standard. Use when the user invokes /ingest, asks to ingest raw files or a target path, compile knowledge, update the wiki, or extract unstructured files into markdown knowledge bases. Don't use for retrospectively compiling the active chat conversation without external files (use distill-session) or for read-only vault lookups (use vault-query).

  • Installs packages

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • rafeeqineaSkill

    poster

    Create academic conference posters using LaTeX beamerposter or tikzposter templates. Trigger phrases: /poster, "make a poster", "conference poster", "research poster", "poster template"

    Also in 5 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the automated extraction script to unpack text, tables, speaker notes, and embedded media assets with SHA-256 caching (.pptx, .docx, …

    line 59
  2. Very specific:

    If extracting a .pdf fails because neither pypdf nor pdftotext is installed, read the PDF directly with the agent's native file-reading …

    line 67
  3. Distinctive:

    Before writing or modifying any permanent wiki notes:

    line 70
  4. Very specific:

    Read & Inspect: Read raw/<Title>.md. Use view_file to visually inspect any extracted raster images in raw/assets/<Title>/ (identifying …

    line 71
  5. Very specific:

    Context Alignment: Read purpose.md and index.md to identify active customer engagements, architectural themes, and existing related notes.

    line 72
  6. Distinctive:

    Create or enrich corresponding entity and concept notes.

    line 86
  7. Very specific:

    Ensure reciprocal links (A -> B and B -> A).

    line 87
  8. Very specific:

    Add new notes with concise one-line summaries into index.md.

    line 91
  9. Distinctive:

    Run the vault linter to guarantee 100% OKF compliance and zero broken links:

    line 96

“Common” is measured: kept by at least 6 in 10 of the 80 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

📥 Knowledge Compiler Ingestion & Compilation Skill (/ingest)

This skill automates the end-to-end ingestion, multimodal extraction, distillation, cross-pollination, indexing, and health-checking of unstructured and structured sources into a Knowledge Compiler vault following the Open Knowledge Format (OKF v0.2).


🚀 Triggering /ingest

This skill handles any of the following invocations:

  • /ingest or /ingest raw: Batch-scans and ingests all pending/unprocessed source files in the vault's raw/ directory (leveraging SHA-256 caching to skip unchanged files).
  • /ingest <file_or_dir>: Ingests a specific local file (e.g. /ingest ~/Downloads/deck.pptx or /ingest ./docs/).
  • /ingest <url>: Ingests a web page, blog post, or public document.
  • /ingest <git_repo>: Analyzes and compiles a local or remote code repository into architectural patterns, entity dossiers, and source summaries.

⚡ Two-Step Decomposition Workflow

To ensure maximum extraction fidelity, dense cross-referencing, and graph connectivity, the ingestion workflow is explicitly split into two distinct passes:

┌────────────────────────────────────────────────────────────────────────────────────────┐
│                        TWO-STEP INGESTION & COMPILATION PIPELINE                       │
├────────────────────────────────────────────────────────────────────────────────────────┤
│                                                                                        │
│  [Step 0: Extract & Cache Check]                                                       │
│  Run extract_source.py (computes SHA-256 hex digest, checks .ingest_cache.json)        │
│  Unpack text/tables to raw/<Title>.md and raster images to raw/assets/<Title>/         │
│                                │                                                       │
│                                ▼                                                       │
│  [PASS 1: Structured Analysis & Cross-Reference Mapping]                               │
│  - Read raw/<Title>.md + visual inspection of raster diagrams via view_file            │
│  - Consult purpose.md and index.md to align with active strategic priorities           │
│  - Produce structured blueprint: Entities, Concepts, New Claims, Contradictions, Links│
│                                │                                                       │
│                                ▼                                                       │
│  [PASS 2: Compilation & Cross-Pollination]                                             │
│  - Create wiki/sources/<Title>.md with OKF frontmatter & source_sha256                 │
│  - Create/Update wiki/entities/ dossiers & wiki/concepts/ architectural patterns       │
│  - Transcribe raster architectures to Mermaid in notes + clean ASCII diagrams in chat  │
│  - Update index.md catalog & prepend timestamped audit entry to log.md                 │
│                                │                                                       │
│                                ▼                                                       │
│  [Validation & Linter]                                                                 │
│  - Run vault_lint.py: 0 broken links, 0 orphans, 100% OKF compliance                   │
│                                                                                        │
└────────────────────────────────────────────────────────────────────────────────────────┘

1. Step 0: Locate Vault Root, Extract & Check Cache

Locate the active Knowledge Compiler vault (checks current working directory, upward parent directories for GEMINI.md/raw//wiki/, or defaults to $OBSIDIAN_VAULT_PATH or ~/ObsidianVault).

Run the automated extraction script to unpack text, tables, speaker notes, and embedded media assets with SHA-256 caching (.pptx, .docx, .xlsx, .html, Markdown, and web URLs work with Python 3 stdlib alone; .pdf uses pypdf if installed or falls back to pdftotext):

# Pure Python 3 stdlib (works immediately after `agy plugin install`)
python3 <plugin_dir>/skills/ingest/scripts/extract_source.py [target]

# Optional: if `uv` is installed and you want full PDF/Office extras without a global pip install
uv run --with pypdf --with python-pptx --with python-docx --with openpyxl python <plugin_dir>/skills/ingest/scripts/extract_source.py [target]

If extracting a .pdf fails because neither pypdf nor pdftotext is installed, read the PDF directly with the agent's native file-reading tool (read_file / view_file) instead of blocking on pip install.

2. Pass 1: Structured Analysis & Cross-Reference Mapping

Before writing or modifying any permanent wiki notes:

  1. Read & Inspect: Read raw/<Title>.md. Use view_file to visually inspect any extracted raster images in raw/assets/<Title>/ (identifying architectural diagrams, topology charts, and tables not captured in raw text).
  2. Context Alignment: Read purpose.md and index.md to identify active customer engagements, architectural themes, and existing related notes.
  3. Draft Structured Extraction Blueprint:
    • Core Thesis & Claims: Primary takeaways, architectural models, benchmark statistics, and quotes.
    • Entities Identified: Products, organizations, platforms, people, or datasets (wiki/entities/).
    • Concepts & Architecture: Design patterns, security models, protocols, formulas (wiki/concepts/).
    • Contradictions & Shift in Consensus: Highlight differences with prior ingested materials.
    • Target Wikilinks: Exact list of reciprocal [[wikilinks]] to inject across the vault.

3. Pass 2: Compilation, Cross-Pollination & OKF Generation

Consume the structured blueprint from Pass 1 to execute the changes:

  1. Source Summary Note (wiki/sources/<Title>.md):
    • Author complete OKF v0.2 YAML frontmatter (type: source-summary, source_sha256, sources: [{ id: "<slug>", resource: "<path_or_url>" }], tags: [...], status: stable, generated: { by: knowledge-compiler/gemini-pro, at: YYYY-MM-DDTHH:MM:SSZ }). Omit verified: on agent-authored notes until human review (vault-lint --approve-human <note>).
    • Include executive summary, detailed topic breakdowns, comparison tables, and Mermaid architecture diagrams.
  2. Entity & Concept Synthesis (wiki/entities/ & wiki/concepts/):
    • Create or enrich corresponding entity and concept notes.
    • Ensure reciprocal links (A -> B and B -> A).
    • Table Formatting Invariant: Inside markdown tables, never escape the pipe character (always use [[Target|Alias]], never [[Target\|Alias]]).
    • CLI Terminal Visual Invariant: In Antigravity CLI terminal output, always provide a clean ASCII/Unicode text box diagram for immediate terminal readability alongside references to the Mermaid diagrams.
  3. Master Index & Audit Log:
    • Add new notes with concise one-line summaries into index.md.
    • Prepend a chronological audit log entry to log.md in the format: ## [YYYY-MM-DD] ingest | <Source Title>

4. Integrity Validation

Run the vault linter to guarantee 100% OKF compliance and zero broken links:

python3 <plugin_dir>/scripts/vault_lint.py "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}"

📚 Reference Documentation

  • OKF v0.2 Specification: references/okf_spec.md
  • Compiler Ingestion Protocol: references/compiler_protocol.md
  • Extraction Helper: scripts/extract_source.py

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.