Logotipo de Docs Notes Retrieval

Docs Notes Retrieval

Comunidad
vasilyu1983
docs-notes-retrieval

Builds local-first note vault retrieval for Obsidian, markdown notebooks, and NotebookLM-adjacent exports. Use when packaging notes into LLM-ready context.

Descripción general

Editorvasilyu1983
RepositorioAI-Agents-public
Nombre de la habilidaddocs-notes-retrieval
Estrellas
87
Forks
19
Archivos incluidos
10
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 10

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por vasilyu1983 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Docs Notes Retrieval en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-notes-retrieval
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/docs-notes-retrieval .claude/skills/docs-notes-retrieval
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Docs Notes Retrieval en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Docs Notes Retrieval automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Docs Notes Retrieval no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Notes Retrieval

Quick Start — Concrete Commands

Three common scenarios using the scripts in scripts/.

Scenario 1: Vault inventory

Before indexing or packaging, understand what is in the vault.

bash
# Full inventory as JSON — one record per note with title, frontmatter, wikilinks, tags, word count, mtime
python scripts/scan_vault.py inventory /path/to/vault > vault-inventory.json

# Tag summary sorted by note count
python scripts/scan_vault.py tags /path/to/vault

# CSV for spreadsheet review
python scripts/scan_vault.py inventory /path/to/vault --format csv > vault-inventory.csv

Scenario 2: Packaged context for an LLM session

Build a markdown bundle ready to paste into a Claude or GPT session.

bash
# Keyword search — include all notes matching "weekly review", budget 40k chars
python scripts/build_context_pack.py /path/to/vault \
    --query "weekly review" \
    --max-chars 40000 > context-pack.md

# Specific notes with heading-level chunking
python scripts/build_context_pack.py /path/to/vault \
    --notes "Projects/Alpha.md" "Projects/Beta.md" \
    --chunk-strategy heading \
    --max-chars 60000 > project-alpha-pack.md

# Most recent notes first, paragraph chunking, written to file
python scripts/build_context_pack.py /path/to/vault \
    --query "architecture decision" \
    --order-by recency \
    --chunk-strategy paragraph \
    --out session-context.md

Scenario 3: Orphan note cleanup

Find and review notes with no inbound or outbound wikilinks — usually stale or misplaced.

bash
# List orphans as JSON
python scripts/scan_vault.py orphans /path/to/vault

# Pipe into jq to see just paths and word counts
python scripts/scan_vault.py orphans /path/to/vault | jq '.[] | {path, word_count}'

# CSV for manual triage
python scripts/scan_vault.py orphans /path/to/vault --format csv > orphans.csv

Orphan cleanup workflow:

  1. Run orphans to get the list.
  2. Review word count: orphans < 50 words are likely stubs — archive or delete.
  3. Orphans > 200 words with no links may be valuable but unconnected — add wikilinks or a backlink from a map-of-content note.
  4. Re-run orphans after cleanup to verify the count dropped.

Judgment call before acting on the list: scan_vault.py orphans only detects [[wikilink]] topology. In vaults that organize by folder hierarchy or tags instead of wikilinks (common in Logseq-style or PARA-folder vaults), a genuinely well-connected note can show up as a false-positive orphan. Cross-check folder placement and tags before archiving anything the tool flags — treat the orphan list as a triage queue, not a deletion list.


Use this skill to build or operate local-first retrieval pipelines for note vaults, markdown knowledge bases, and notebook-style exports.

This skill covers:

  • Obsidian-style markdown vaults with frontmatter, wikilinks, tags, and aliases
  • Local notebook exports and source packs prepared for NotebookLM-style workflows
  • Raw ingest folders such as transcript exports that feed a canonical note system
  • Read-only extraction of note text, metadata, backlinks, and neighborhood context
  • Packaging note sets into Markdown or retrieval-ready context for LLMs, agents, and MCP tools
  • Optional write-back routing of summaries, actions, and decisions into canonical notes when the user explicitly wants synchronized notes

Quick Reference

NeedDefault pathNotes
Inspect a vault before indexingreferences/obsidian-and-local-vaults.mdInventory note types, frontmatter conventions, attachments, and private areas first
Run vault inventory from the CLIscripts/scan_vault.py inventoryExtracts path, title, frontmatter, wikilinks, tags, word count, mtime
Find orphan notes (no links)scripts/scan_vault.py orphansReturns notes with no inbound or outbound wikilinks
List all tags with countsscripts/scan_vault.py tagsSorted by note count descending
Package notes for LLM contextscripts/build_context_pack.py + references/context-packaging-patterns.mdKeyword or explicit-note selection; whole/heading/paragraph chunking; char budget
Understand chunk strategies and token budgetsreferences/context-packaging-patterns.mdChar→token ratios, ordering, deduplication, attribution format
Avoid retrieval mistakesreferences/retrieval-anti-patterns.md8 anti-patterns with fixes
Structure a vault as durable agent memoryreferences/obsidian-and-local-vaults.mdSeparate session memory, canonical notes, and ingest artifacts instead of one flat note dump
Turn a vault into an operating memory loopreferences/obsidian-and-local-vaults.mdKeep notes canonical and treat transcripts or exports as ingest inputs
Use AI-owned wiki (solo, high-volume capture)references/ai-curated-wiki-pattern.mdFolder layout, invariants, compounding loop, scale heuristic, snapshots
Decide note-vault retrieval vs generic RAG../ai-rag/SKILL.md + this skillUse this skill for note-shape and packaging rules; use ai-rag for retrieval architecture
Turn note access into a repeatable tool../agents-mcp/SKILL.mdBuild an MCP wrapper only after the local note workflow is clear

Supported Inputs

Default support in v1:

  • markdown note vaults
  • Obsidian frontmatter and wikilinks
  • folder-based personal or team knowledge bases
  • NotebookLM-adjacent exported note packs, summaries, and source bundles
  • transcript or export folders that are later summarized into canonical notes
  • read-only local file trees prepared for agent retrieval

Explicitly out of scope in v1:

  • direct NotebookLM API automation
  • mutating or auto-rewriting the source vault by default
  • OCR-heavy attachment pipelines
  • closed-source vendor note apps without an export path

Three-Layer Operating Memory Pattern

For agent workflows, separate these three layers — collapsing them into one pool is the most common vault anti-pattern:

LayerRoleExamples
Session memoryOrients the agent; always loaded, tinyOnboarding notes, repo CLAUDE.md, orientation files
Knowledge graphPersists and connects knowledgeCanonical notes with frontmatter, wikilinks, stable destinations
Ingest pipelineEvidence and raw materialTranscripts, exports, recordings, raw captures

AI-Curated Wiki Variant (Ganim Pattern)

The three-layer default assumes humans curate the canonical layer. A second mode exists where the AI owns the curated layer entirely and the human only appends to a junk-drawer source folder. Use this variant for solo operators capturing source material faster than they can hand-organize it.

Full details, invariants, compounding loop, monthly health check, scale heuristic (~100 articles / ~400K words before vector RAG is needed), image-aware ingest, and snapshot strategy: references/ai-curated-wiki-pattern.md.

ASCII Flow

text
Notes request
  |
  v
Classify source shape
  |-- Obsidian vault
  |-- markdown folder
  |-- notebook export
  |-- transcript / raw ingest dump
  |-- mixed notes repo
  |
  v
Separate layers
  |-- session memory -----> tiny always-loaded orientation
  |-- canonical notes ----> durable graph with metadata + links
  |-- raw ingest ---------> transcripts, exports, recordings
  |
  v
Inventory metadata + topology
  |-- frontmatter
  |-- wikilinks / backlinks
  |-- tags / aliases
  |-- private folders / attachments
  |
  v
Choose output
  |-- Markdown context pack ----> scripts/build_context_pack.py
  |-- vault report -------------> scripts/scan_vault.py
  |-- retrieval architecture ---> ai-rag
  |-- repeatable tool ----------> agents-mcp
  |
  v
Package with stable attribution and budget limits

Default Workflow

  1. Identify the source shape: Obsidian vault, markdown folder, notebook export, transcript dump, or mixed notes repo.
  2. Separate canonical notes from raw ingest areas before indexing or packaging.
  3. Inventory note conventions before indexing: frontmatter keys, aliases, tags, task syntax, attachments, private folders.
  4. Extract note text and metadata separately.
  5. Preserve note relationships: wikilinks, backlinks, tags, path hierarchy, and recent edits.
  6. If external transcripts or exports feed the vault, route extracted summaries, decisions, and actions into stable note destinations instead of treating raw dumps as the memory layer.
  7. Only then choose whether the downstream consumer needs direct Markdown bundles, a search index, or an MCP server.

Packaging Rules

RuleWhy it matters
A note ≠ a chunk — preserve whole-note metadata even when chunkingPath, title, aliases, timestamps are retrieval signals
Keep canonical notes and raw ingest artifacts separateA transcript dump is not the operating note system
Prefer note titles that read like claims or decisionsHelps an agent triage relevance before opening the file
Use maps-of-content / home notes for navigationSemantic search alone cannot recover the right abstraction level
Separate private, shared, and project-specific spaces before retrievalPrevents accidental cross-space leakage
Default to local-first, read-only flowsOnly add write-back when the user explicitly needs it
If notes are one corpus among many, route to ai-ragThis skill covers note-shape; ai-rag covers retrieval architecture

Judgment Calls

These are the calls a non-expert tends to get wrong. Full detail and the anti-pattern behind each is in references/retrieval-anti-patterns.md.

  • Full-text/grep beats semantic search for most personal vaults. Notes are small, high-lexical-overlap, and often need exact-phrase or exact-title recall (a decision title, a project name, a specific date). Reach for embeddings only once keyword/tag/path search demonstrably under-recalls — typically past a few hundred notes, or when queries are conceptual ("what did I conclude about X") rather than lexical. Below that, a vector index adds latency and infra without improving grounding.
  • Citation integrity is non-negotiable. Never let a downstream agent cite a note without a resolvable path + mtime. If a wikilink target does not resolve to an actual file, that is a stop-and-fix signal — flag it in the pack footer, do not silently drop it or silently invent a path.
  • An orphan is a triage signal, not a verdict. See the vault-hygiene note in Scenario 3 above — orphan detection is topology-specific (wikilinks only) and produces false positives in folder- or tag-organized vaults.
  • Status metadata beats recency for trust, not just freshness. A note edited yesterday but marked status: draft is less trustworthy than a status: active note from three months ago. Filter on status before recency, not instead of it.

When To Use This Skill

Use this skill when the user asks:

  • "Search my Obsidian vault."
  • "Prepare my notes for an LLM."
  • "Package markdown notebooks into retrieval-ready context."
  • "How should I structure note metadata, links, and summaries for AI?"
  • "I want Claude to keep my Obsidian vault up to date from transcripts or exports."
  • "I have NotebookLM-style exports or source packs and want a reusable local workflow."

Navigation

Scripts

References

Related Skills

Fact-Checking

  • Start from data/sources.json for source-app behavior and community patterns.
  • Verify current vendor export paths and app capabilities before citing volatile details.
  • If web access is unavailable, mark product-specific claims as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Docs Notes Retrieval?

Builds local-first note vault retrieval for Obsidian, markdown notebooks, and NotebookLM-adjacent exports. Use when packaging notes into LLM-ready context.

¿Por qué usar Docs Notes Retrieval en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Docs Notes Retrieval está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Docs Notes Retrieval en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-notes-retrieval. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Docs Notes Retrieval?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Docs Notes Retrieval?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Docs Notes Retrieval con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Docs Notes Retrieval?

Sí. vasilyu1983 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇