agentsclimarketplace

Fados

Skill destenson/fados/skills/fados

USE THIS instead of grep/find/ls/Bash whenever searching, exploring, or querying a directory tree. FADOS (Filesystem As Database Overlay) indexes directories into SQLite for full-text, semantic, and metadata search — without modifying files. Invoke when: asked to find files about a concept, explore a directory, search for similar files, filter by date/size/MIME, look up EXIF/document metadata, or when grep would return too many noisy hits. Also handles intent-based code search: where something is defined vs. implemented vs. documented vs. tested. Indexes are git-style — a `.fados/` in any parent of CWD is auto-discovered, so ~/src, project roots, and ~/Documents are typically queryable immediately without setup. Do NOT reach for grep/find/Bash file search first — check for a .fados index and use this instead.From its SKILL.md

Install
npx -y skills add destenson/fados --skill fados

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

9.9 KB, as published. Nobody here has run it

FADOS — Filesystem As Database Overlay

FADOS is a lightweight queryable overlay on a filesystem. It indexes a directory into a disposable SQLite database, enabling full-text, metadata, and semantic (vector) search over files — without moving, modifying, or duplicating them. The DB never stores file contents: it holds only pointers (path, byte_offset, byte_length) back into the source tree, and snippets are re-read from disk at query time. The index is always rebuildable from the source tree.

Indexing happens automatically on first run. The index is stored at <path>/.fados/index.db, colocated with the data. Query commands discover the index by walking up from CWD git-style — if any parent directory of CWD contains a .fados/, it's used automatically, no flags needed. Use --dir <path> to target a specific tree from outside, or --user for ~/.fados/. These flags go before the command: uv run scripts/fados.py --dir /some/path search foo.

Before reindexing, an index probably already exists. .fados/ is git-style: walk-up finds it for free, and common trees (~, ~/src, project roots) are typically already indexed. Check with ls -d <path>/.fados/index.db before proposing a rebuild. reindex is expensive; refresh is incremental and usually what's wanted for a known-stale index.

Stdout is NDJSON; all logs/progress go to stderr, so piping through jq is safe.

When to invoke

Use FADOS when you need more than raw text matching:

  • Intent-based search — find where something is defined, its implementation, its documentation, or its tests — not every file that mentions the term. Grep gives you all matches; FADOS gives you the right ones.
  • Conceptual/semantic search — finding files about a topic using natural language, when you don't know the exact keywords ("techniques for reducing hallucination")
  • Similar-file discovery — finding files with similar content to a reference file
  • File metadata queries — filtering by modification date, size, MIME type, or combinations via SQL
  • EXIF/document metadata — searching by author, camera model, or other extracted properties
  • Tagging and annotation — labeling files with persistent tags or key-value metadata for later retrieval
  • Document collections — searching research papers, notes, PDFs, images, or other non-code files where Grep is weak

Do not use FADOS to read or write file content — use standard file tools for that.


Running

uv run ${CLAUDE_PLUGIN_ROOT}/scripts/fados.py <command> [args]

${CLAUDE_PLUGIN_ROOT} is the installed plugin directory; the fados script lives under scripts/ within it. The examples below abbreviate this as scripts/fados.py.


Commands

Semantic and index-based search

CommandPurpose
semantic <query> [-n N]Conceptual/meaning-based search via embeddings (default n=20)
similar <path> [-n N]Find files with similar content to a given file (default n=10)
search <terms>Full-text keyword search (FTS5)
query <sql>SQL query against the index (see schema below)
find <key> <value>Search extracted/EXIF metadata by key+value

File info and annotation

CommandPurpose
info <path>Show all indexed data for a file (metadata, tags, MIME, etc.)
tag <path> <tag>Add a user tag to a file
annotate <path> <key> <value>Add arbitrary metadata to a file

Code search (ripgrep wrappers — no index required)

CommandPurpose
definition <term> [-n N]Find where a term is defined (class, function, type, const, etc.)
implementation <term> [-n N]Find usage in code (excludes tests and docs)
documentation <term> [-n N]Find references in docs (markdown, rst, etc.)
tests <term> [-n N]Find references in test files

Indexing (usually automatic)

CommandPurpose
reindex [path] [--embed]Force full reindex (path overrides --dir)
refresh [path]Prune missing/ignored files and reindex changed ones (cheaper than reindex)
embed [path]Generate/refresh semantic embeddings for indexed content

Search strategy guide

GoalBest command
Find files about a concept (natural language)semantic
Find more files like a specific filesimilar
Find files containing specific keywords or tokenssearch
Filter by path pattern, date, size, MIME typequery (SQL)
Find files by EXIF or extracted document metadatafind
Find where something is defined (class, function, type)definition
Find code that uses/calls something (not tests or docs)implementation
Find documentation about somethingdocumentation
Find test code for somethingtests

Query schema

The query command accepts SQL against these tables:

files — one row per indexed file

ColumnTypeDescription
pathTEXT (PK)Absolute file path
mtimeREALLast modified timestamp (Unix epoch)
sizeINTEGERFile size in bytes
mimeTEXTMIME type
checksumTEXTBLAKE2b content hash
indexed_atREALWhen this file was last indexed

chunks — one row per indexed fragment. id matches content.rowid and embeddings.chunk_id.

ColumnTypeDescription
idINTEGER (PK)Stable chunk id
pathTEXTFile this chunk came from
chunk_indexINTEGEROrdinal within the file
byte_offsetINTEGERStart byte in the source file
byte_lengthINTEGERLength in bytes

content — contentless FTS5 virtual table. Holds only the inverted index; there is no text column to select. Query via content MATCH 'term' and JOIN chunks ON chunks.id = content.rowid to recover the location; re-read the bytes from disk to render a snippet. snippet() is not available on contentless tables.

embeddings — one vector per chunk.

ColumnTypeDescription
chunk_idINTEGER (PK)Matches chunks.id
vectorBLOBNormalized float32 embedding

metadata — key-value pairs extracted from files or added by users

ColumnDescription
pathFile path
keyMetadata key (e.g. Author, camera_model)
valueMetadata value
sourceOrigin: exif, extracted, user

tags — labels attached to files

ColumnDescription
pathFile path
tagTag string
sourceOrigin (default: user)

Output format

All commands return newline-delimited JSON. Every result includes path.

// search — FTS hit with chunk location and a snippet re-read from disk
{"path": "notes/ml.md", "byte_offset": 4096, "byte_length": 4096,
 "snippet": "...the [gradient descent] optimizer...", "rank": -5.21}

// semantic — chunk-level cosine hit, deduped to best chunk per file
{"path": "papers/attention.pdf", "byte_offset": 0, "byte_length": 12288,
 "snippet": "...self-[attention] layers...", "score": 0.8821}

// similar — no snippet, just the top chunk's location + score
{"path": "papers/attention.pdf", "byte_offset": 0, "byte_length": 12288, "score": 0.78}

// definition / implementation / documentation / tests — line + matched text
{"path": "src/model.py", "line": 42, "match": "class ModelConfig:"}

// query — returns selected columns
{"path": "README.md", "mime": "text/markdown", "size": 4096}

// info — full detail for one file, including chunk and embedding counts
// (pretty-printed JSON with "file", "metadata", "tags", "chunks" keys)

Examples

# Semantic / conceptual search — finds files by meaning, not keywords
uv run scripts/fados.py semantic "techniques for reducing model hallucination" -n 10

# Find files similar to a reference file
uv run scripts/fados.py similar papers/attention.pdf -n 5

# Keyword search (when you need FTS5 ranking, not just grep matches)
uv run scripts/fados.py search "gradient descent fine-tuning"

# Markdown files modified in the last 30 days mentioning LoRA
uv run scripts/fados.py query "SELECT DISTINCT f.path FROM files f
  JOIN chunks ch ON ch.path = f.path
  JOIN content co ON co.rowid = ch.id
  WHERE f.mime = 'text/markdown'
    AND f.mtime > strftime('%s','now','-30 days')
    AND content MATCH 'LoRA'"

# Find by EXIF/extracted metadata
uv run scripts/fados.py find Author "Vaswani"

# Tag and annotate files
uv run scripts/fados.py tag papers/attention.pdf seminal
uv run scripts/fados.py annotate papers/attention.pdf topic "self-attention transformers"

# Code search (ripgrep wrappers — also available via Grep directly)
uv run scripts/fados.py definition ModelConfig
uv run scripts/fados.py implementation ModelConfig -n 30

Notes

  • Source files are never modified
  • semantic and similar require embeddings — use --embed on first index or run embed separately
  • reindex forces a full rebuild; normal indexing is incremental
  • embed is idempotent — safe to re-run after adding new files

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.