Install
openclaw skills install @synthet1x/smart-storage-triageUniversal smart search and storage triage for codebases, local files, documents, and archives. Uses SQLite FTS5 (BM25) and fast gzip tree snapshots. Requires user confirmation before broad directory indexing.
openclaw skills install @synthet1x/smart-storage-triageFast, zero-bloat search across code repositories, local folders, documentation, and deep archives. Avoids burning tens of thousands of tokens by querying indexed SQLite FTS5 and compressed directory tree snapshots instead of performing blind shell walks (find / grep).
.env*, credentials.json, token.json, auth.json, secrets.json, id_rsa*, id_ed25519*, *.pem, *.key, *.kdbx, *.pfx, *.p12 are strictly excluded from content indexing..ssh, .aws, .gnupg, .azure, .kube, .secrets) are completely skipped.STORAGE_RAG_DB, STORAGE_RAG_TREE), CLI arguments, or ~/.config/smart-storage-triage/config.json.CRITICAL: Before building or rebuilding an index (triage_index.py) on a new directory or external storage:
~), filesystem root (/), or parent mount points without clear user authorization.Storage is split automatically without manual tagging:
--active-days 365) are indexed with full-text BM25 search (code with exact line numbers, documents with page/sheet numbers).archive/backup folders):
tree.json.gz snapshot for instant path, filename, and date searches (100,000+ files in 0.03s).--full / --workdir):
--full to index every file deeply, regardless of modification age.Query full-text content with BM25 ranking:
python3 <skill_dir>/scripts/storage_find.py "<query>" [--limit 10]
Query the compressed tree snapshot (tree.json.gz) for instant filename or regex matches:
python3 <skill_dir>/scripts/archive_find.py "<pattern_or_name>" [--ext .py|.pdf] [--limit 20]
Ask the user for approval first, then build or refresh the index:
# Default triage: active (<1y) -> full text, archived (>=1y) -> tree snapshot
python3 <skill_dir>/scripts/triage_index.py <directory_path>
# Custom active window (e.g. 2 years)
python3 <skill_dir>/scripts/triage_index.py <directory_path> --active-days 730
# Working repository / full indexing (index all files regardless of age)
python3 <skill_dir>/scripts/triage_index.py <directory_path> --full
storage_find.py and archive_find.py auto-resolve indexes in the following priority:
--db or --tree argument.STORAGE_RAG_DB and STORAGE_RAG_TREE.~/.config/smart-storage-triage/config.json../storage_rag.db, ./tree.json.gz).