Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计提醒

lexilexi 搜索

Agent Skill

lexi 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,208

周安装

135

GitHub Stars

公开资料未说明

下载量

1,123
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lexi(lexi 搜索)
来源仓库:https://github.com/mcroebuck/lexi
安装命令:
openclaw skills install lexi
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install lexi

简介

Lexi 是 OpenClaw 环境的文件系统库管理器,用于系统扫描和组织文件结构。

  • 适合识别孤立文件、错误放置内容并编目整个项目目录。
  • 可帮助 Agent 快速定位代码、配置或资源文件位置。
  • 安装后需确认其对文件读写的权限及是否触发敏感操作。
  • 建议参考其 GitHub 仓库了解详细扫描规则和输出格式。

SKILL.md

name
lexi
version
1.1.0
author
mcroebuck
license
MIT
description
Filesystem 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.
metadata
{ "openclaw": { "always": false } }

Lexi — Filesystem Librarian

A 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.


Phase 1: Scope & Exclusions

Steps

  1. Confirm the scan root with the user. Default: ~ (full home directory).
  1. Returning User Fast Path: When USER.md contains scan history and known preferences:

- Present stored exclusions and scope: "Last scan covered [root] with these exclusions: [list]. Still accurate?" - If confirmed → proceed to Phase 2. - If changes needed → update only what changed.

  1. New Scan Setup: Confirm exclusion zones per the scanning framework:

- Always excluded: .ssh/, .gnupg/, .secrets/, .git/ internals, .env files, auth-profiles.json, credentials.json, node_modules/, __pycache__/, .venv/ internals - User-configurable exclusions: Any additional paths the user wants to protect - Present the exclusion list and get confirmation before scanning.

  1. Scan mode selection:

- Full audit — first run or periodic deep scan of everything - Incremental — only files modified since last audit date - Targeted — a specific directory tree only

  1. Save scope and exclusions for future sessions (update USER.md).

Phase 2: Discovery & Inventory

The raw scan phase — building a complete picture of what exists.

Steps

  1. Directory tree scan:

- For each directory under scan root (respecting exclusions): record path, file count, total size, last modified date - Flag: empty directories, deeply nested paths (>5 levels), unusually large directories

  1. File inventory:

- For each file (respecting exclusions): record path, size, last modified, file type/extension - Flag: files >10MB, files not modified in >90 days, files with no extension

  1. Structural scan:

- Identify all git repositories (directories containing .git/) - Identify all symlinks and their targets (flag broken symlinks) - Identify all virtual environments (.venv/, venv/, node_modules/) - Map all OpenClaw workspaces and their agent associations - Identify duplicate filenames across different directories

  1. Reference scan (critical for safe reorganization):

- Grep all .md files for path references (absolute and relative) - Grep all .sh, .py, .js, .ts scripts for hardcoded paths - Extract paths from crontab (crontab -l) - Extract paths from PM2 configs - Extract paths from OpenClaw agent configs - Map all symlinks with source → target - Build the dependency graph: which files reference which paths

  1. Output: A raw inventory file (structured, not prose) — working data for Phase 3, not presented to the user.

Notes

  • This phase can be slow on large filesystems. Provide progress updates.
  • For very large directory trees, work in segments (e.g., scan ~/.openclaw/ first, then ~/projects/, etc.)
  • File contents are not read in this phase except during reference scanning. The goal is cataloging structure, not auditing content.

Phase 3: Classification & Analysis

Using the inventory from Phase 2, classify every significant file and directory.

Steps

  1. Directory classification — assign each directory a type from the scanning framework:

- Active project, Archive, Agent workspace, Config/dotfile, Data store, Tool/script, Documentation, Media/assets, Temp/build artifact, Unknown

  1. File classification — assign each file a status:

- 🟢 Active — recently used, referenced, serves clear purpose - 🟡 Review — purpose unclear, may be stale, needs human decision - 🔴 Orphaned — no references, old, no apparent purpose - ⚪ Stale — was once active, now outdated (old logs, superseded configs, dead scripts) - 🔵 Misplaced — serves a purpose but lives in the wrong location - ⚫ Duplicate — same or near-identical content exists elsewhere

  1. Structural analysis:

- Identify directories serving the same purpose (fragmentation) - Identify naming inconsistencies (kebab-case vs. snake_case vs. mixed) - Identify depth violations (files buried too deep or too shallow for their type) - Identify orphaned project directories (no git activity, no recent modifications, not referenced)

  1. Placement analysis — for every 🔵 Misplaced file:

- Current location - Recommended location (with reasoning) - Reference impact (what would break if moved without updating references)

  1. Deduplication analysis — for every ⚫ Duplicate:

- All locations where the content exists - Which copy is authoritative (most recent, most referenced, in the "right" place) - Recommendation: which to keep, which to remove


Phase 4: Report & Collaborative Review

Steps

  1. Generate the audit report following the structure in the scanning framework:

- Executive Summary (total files, directories, classifications breakdown) - Directory Map (purpose of each top-level and second-level directory) - High-Priority Findings (orphaned, misplaced, duplicated — sorted by impact) - Structural Recommendations (directory consolidation, naming, hierarchy changes) - Reference Impact Assessment (what would break with proposed changes) - Proposed Catalog (the living index document)

  1. Present the Executive Summary first:

- "Here's what I found across [N] files in [M] directories: [breakdown]. Ready to go through the findings?"

  1. Collaborative review mode — work through findings by priority:

- Present the finding with specific paths - Explain the reasoning - Show reference impact if applicable - Wait for user decision: approve, reject, defer, or discuss - Track all decisions

  1. Build the action plan from approved changes:

- Group actions into safe batches (moves that don't depend on each other) - Order batches to minimize intermediate breakage - Include reference updates in same batch as the move they depend on

Notes

  • The user may have context about why a file exists where it does. When the user says "that's there on purpose," accept it and record it in the catalog so future scans don't re-flag it.
  • Present file sizes and dates — they help the user make decisions about stale files.

Phase 5: Execution (Requires Explicit Approval)

Steps

  1. Pre-flight safety check:

- Confirm the archive directory exists: ~/.lexi-archive/YYYY-MM-DD/ - Confirm no active processes are using files in the current batch - Confirm git repos in the affected area have clean working trees

  1. Execute approved changes one batch at a time:

- Moves: mv with archive backup of original location manifest - Deletions: Always archive first — move to ~/.lexi-archive/YYYY-MM-DD/ with a manifest entry recording original path, size, date, and reason for removal - Reference updates: Update all files that referenced the old path - Symlink cleanup: Remove broken symlinks, update targets for moved files

  1. After each batch:

- Verify the moves completed correctly - Run a quick reference check — grep for any remaining old-path references - Report results to user before proceeding to next batch

  1. Post-execution:

- Generate a changelog: what moved, what was archived, what references were updated - Update the catalog with new locations - Save the changelog to ~/.lexi-archive/YYYY-MM-DD/changelog.md

Notes

  • The archive is sacred — files are always archived before removal.
  • If a reference update would modify a file in an excluded zone (e.g., .secrets/), flag it for manual update instead.
  • If anything unexpected occurs during execution, stop and report rather than attempting silent recovery.

Phase 6: Catalog Generation

Steps

  1. Generate or update the living catalog at ~/CATALOG.md:

- Top-level directory map with purposes - Key file locations (configs, scripts, data stores) - Agent workspace index - Project directory index with status (active/archived/paused) - Conventions (naming, depth, where new files of each type should go) - Last audit date and summary

  1. The catalog is the primary deliverable. Other agents reference it when deciding where to store a file. It should be:

- Scannable (table format where possible) - Authoritative (single source of truth for "where does X go?") - Maintainable (updated by Lexi on each audit, not manually)

  1. Save the full audit report to the Lexi workspace:

<lexi_workspace>/audits/audit-YYYY-MM-DD.md


Incremental Mode (Weekly Cron / On-Demand)

For scans after the initial full audit:

  1. Scan only files modified since last audit date
  2. Check for new files not in the catalog
  3. Check for deleted files still in the catalog
  4. Check for broken references (files moved without updating refs)
  5. Generate a diff report: what changed, what needs attention
  6. Update the catalog with any confirmed changes

Slash Command

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.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.48%
按下载量换算937

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills