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

knowledge-compiler

Skill18 starsChanged 12 days agoApache-2.0View on GitHub

Compiles raw sources (PDFs, PPTX slide decks, Word docs, spreadsheets, transcripts, codebases, and URLs) into an Open Knowledge Format (OKF v0.2) Markdown wiki with a master index, audit log, and link linter. Use when initializing a knowledge vault, compiling documents or transcripts into wiki pages, or maintaining a persistent LLM-maintained knowledge base. Don't use for one-off web searches or temporary scratch notes unrelated to a knowledge vault.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. shetengteng/skillix-hub★ 5same name
    2. Dakkshin/ops-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Never edit files in raw/ directly after ingestion.

    line 71
  2. Distinctive:

    When linking Note A $\rightarrow$ Note B, always check if Note B should reference Note A back.

    line 74
  3. Very specific:

    Every note in wiki/ must have OKF v0.2 frontmatter with type (plus recommended title, tags, status, sources, generated, and optional …

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Skill: Knowledge Compiler & OKF v0.2 Vault Maintainer

This skill enables developers, architects, and AI agents to maintain a persistent, compounding Knowledge Compiler Obsidian Vault following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy's compiled LLM-Wiki paradigm (Obsidian is the IDE, the LLM is the maintenance programmer, and the markdown wiki is the persistent codebase).


🏛 The 3-Tier Layering Model

  1. raw/ (Immutable Ground Truth): Unmodified source documents, slide transcripts, PDFs, meeting transcripts, and raw/assets/<Title>/ media images.
  2. wiki/ (Compiled Knowledge Graph):
    • wiki/sources/: Distilled summaries of ingested sources.
    • wiki/entities/: Living dossiers for customers, platforms, tools, and partners.
    • wiki/concepts/: Architectural blueprints, design patterns, and engineering principles.
    • wiki/synthesis/: Cross-cutting comparisons and compound intelligence.
  3. Navigation & Auditing:
    • index.md: Progressive disclosure master catalog.
    • log.md: Chronological operation history.

⚡ Core CLI Workflows

1. Initialize a New Vault

Scaffold directory hierarchy and starter files in any folder:

python3 scripts/init_vault.py --target /path/to/my-vault

2. Extract & Ingest Raw Sources

Extract text, speaker notes, tables, and unpacked diagrams from slide decks (.pptx), PDFs, documents, or URLs:

# Ingest single PPTX deck (extracts notes & saves images to raw/assets/<Title>/)
python3 scripts/extract_source.py ~/Downloads/customer_presentation.pptx

# Ingest all files in raw/
python3 scripts/extract_source.py raw/

# Ingest a web architecture guide
python3 scripts/extract_source.py https://cloud.google.com/architecture/waf

3. Multimodal Diagram Inspection & Transcribing

For extracted diagrams in raw/assets/<Title>/, use multimodal vision (view_file) to inspect the raster diagrams and transcribe key architecture topologies into live Mermaid blocks inside wiki/concepts/ or wiki/sources/.

4. Audit & Lint Vault Graph Integrity

Validate 100% link resolution, orphan note detection, frontmatter schemas, and table formatting invariants:

python3 scripts/vault_lint.py /path/to/my-vault

# Automatically fix escaped pipe characters in tables:
python3 scripts/vault_lint.py /path/to/my-vault --fix

🚨 Critical Engineering Gotchas & Invariants

  1. Table Wikilink Invariant:
    • Inside Markdown tables, NEVER escape pipe characters inside wikilink aliases.
    • ✅ Correct: | [[Vertex AI Agent Engine|Agent Engine]] | Managed Runtime |
    • ❌ Incorrect: | [[Vertex AI Agent Engine\|Agent Engine]] | Managed Runtime |
    • Escaped pipes break Obsidian graph resolution and OKF linters.
  2. Source Immutability:
    • Never edit files in raw/ directly after ingestion. If corrections are needed, document them in wiki/sources/ or create a new versioned source.
  3. Reciprocal Wikilinks:
    • When linking Note A $\rightarrow$ Note B, always check if Note B should reference Note A back. Bi-directional connections maximize graph density in Obsidian.
  4. OKF v0.2 YAML Frontmatter:
    • Every note in wiki/ must have OKF v0.2 frontmatter with type (plus recommended title, tags, status, sources, generated, and optional aliases). Omit verified: on agent-authored notes until explicit human review (vault-lint --approve-human <note>).

🔗 Inter-Skill Programmatic Integration

Other agent skills can integrate directly with the vault compiler utilities:

import sys
from pathlib import Path

repo_root = Path(__file__).resolve().parents[2]
sys.path.append(str(repo_root / "scripts"))

from init_vault import init_vault
from extract_source import process_target
from vault_lint import run_vault_lint

# Initialize a project-specific vault
init_vault(Path("./project_vault"))

# Extract raw meeting transcript
process_target("./raw/meeting_transcript.txt", Path("./project_vault"))

# Audit graph integrity
report = run_vault_lint(Path("./project_vault"))
print(f"Vault Healthy: {report['is_healthy']}")

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.