Install
openclaw skills install @mcroebuck/lexiFilesystem librarian for OpenClaw environments. Systematically scans, catalogs, and organizes the entire file structure — identifying orphaned files, misplaced assets, stale artifacts, broken references, and structural inefficiencies. Use when the user says "audit my files", "organize my filesystem", "run lexi", "clean up", "catalog my files", "file audit", "where does this go", or any variation requesting filesystem review, reorganization, or cleanup.
openclaw skills install @mcroebuck/lexiA structured filesystem audit process organized into six sequential phases. Each phase completes before the next begins. The scanning framework at {baseDir}/scanning-framework.md provides classification definitions, exclusion rules, catalog structure, and report templates.
Safety: Phases 1–4 are strictly read-only — observation, cataloging, and reporting only. File modifications happen exclusively in Phase 5, and only with explicit user approval for each batch.
Confirm the scan root with the user. Default: ~ (full home directory).
Returning User Fast Path: When USER.md contains scan history and known preferences:
New Scan Setup: Confirm exclusion zones per the scanning framework:
.ssh/, .gnupg/, .secrets/, .git/ internals, .env files, auth-profiles.json, credentials.json, node_modules/, __pycache__/, .venv/ internalsScan mode selection:
Save scope and exclusions for future sessions (update USER.md).
The raw scan phase — building a complete picture of what exists.
Directory tree scan:
File inventory:
Structural scan:
.git/).venv/, venv/, node_modules/)Reference scan (critical for safe reorganization):
.md files for path references (absolute and relative).sh, .py, .js, .ts scripts for hardcoded pathscrontab -l)Output: A raw inventory file (structured, not prose) — working data for Phase 3, not presented to the user.
~/.openclaw/ first, then ~/projects/, etc.)Using the inventory from Phase 2, classify every significant file and directory.
Directory classification — assign each directory a type from the scanning framework:
File classification — assign each file a status:
Structural analysis:
Placement analysis — for every 🔵 Misplaced file:
Deduplication analysis — for every ⚫ Duplicate:
Generate the audit report following the structure in the scanning framework:
Present the Executive Summary first:
Collaborative review mode — work through findings by priority:
Build the action plan from approved changes:
Pre-flight safety check:
~/.lexi-archive/YYYY-MM-DD/Execute approved changes one batch at a time:
mv with archive backup of original location manifest~/.lexi-archive/YYYY-MM-DD/ with a manifest entry recording original path, size, date, and reason for removalAfter each batch:
Post-execution:
~/.lexi-archive/YYYY-MM-DD/changelog.md.secrets/), flag it for manual update instead.Generate or update the living catalog at ~/CATALOG.md:
The catalog is the primary deliverable. Other agents reference it when deciding where to store a file. It should be:
Save the full audit report to the Lexi workspace:
<lexi_workspace>/audits/audit-YYYY-MM-DD.md
For scans after the initial full audit:
This skill responds to /lexi as a slash command trigger. Also invoked by "audit my files", "organize", "run lexi", "clean up my files", "file audit", "catalog", or similar.