Agent Skills
› ory/lumen
› reindex
reindex
GitHub用于刷新或重建 Lumen 项目的索引。通过调用 index_status 检查状态,使用 semantic_search 自动刷新,或在用户明确要求时执行强制重建、清理缓存等操作,并汇报最终的索引统计信息。
Trigger Scenarios
用户要求刷新或重建项目索引
需要清理过期的索引以释放磁盘空间
用户明确要求完全清除并重新构建索引
Install
npx skills add ory/lumen --skill reindex -g -y
SKILL.md
Frontmatter
{
"name": "reindex",
"description": "Refresh or rebuild the bundled Lumen index for the current project, preferring MCP-driven refreshes and using the CLI only for an explicit clean rebuild."
}
Lumen Reindex
Refresh or rebuild the bundled Lumen index for the current project.
Steps
- Call the Lumen
index_statustool for the current working directory so you can report the current state before making changes. - If the user wants the index refreshed or seeded, call the Lumen
semantic_searchtool with a broad natural-language query and setpathorcwdto the current working directory. The search tool refreshes stale or missing indexes automatically. - If the user explicitly asks for a clean rebuild, explain the options and
run one via the shell:
lumen index --force .— reprocesses every file for the current project without wiping other worktrees or their shared vectors. Prefer this.lumen clean --days 0 && lumen index .— deletes every cached index not held by an active indexer lock before rebuilding; locked collections are skipped and counted in the summary. Use only when the user asks for a full wipe.lumen clean— removes indexes for projects that no longer exist or have not been used in 30 days. Use to reclaim disk space, not to rebuild the current project.
- After the refresh or rebuild, report the new index status, including vector precision, unique vectors, shared references, deduplication ratio, database bytes, and reclaimable bytes when available.
Version History
-
f60f9ec
Current 2026-08-20 03:04
将清理命令从 purge 改为 clean,新增 --force 选项支持跨工作区共享索引,并增加对向量精度、去重率等详细状态的报告。
- d0dee0e 2026-07-25 08:59


