Agent Skillsory/lumen › reindex

reindex

GitHub

用于刷新或重建项目的Lumen搜索索引。通过调用工具检查状态,执行语义搜索自动更新或手动清理重建索引,并报告向量精度等详细状态信息。

skills/reindex/SKILL.md ory/lumen

触发场景

用户请求刷新或重建项目索引 用户询问当前索引状态

安装

npx skills add ory/lumen --skill reindex -g -y
更多选项

不安装直接使用

npx skills use ory/lumen@reindex

指定 Agent (Claude Code)

npx skills add ory/lumen --skill reindex -a claude-code -g -y

安装 repo 全部 skill

npx skills add ory/lumen --all -g -y

预览 repo 内 skill

npx skills add ory/lumen --list

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

  1. Call the Lumen index_status tool for the current working directory so you can report the current state before making changes.
  2. If the user wants the index refreshed or seeded, call the Lumen semantic_search tool with a broad natural-language query and set path or cwd to the current working directory. The search tool refreshes stale or missing indexes automatically.
  3. 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.
  4. 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.

版本历史

  • f60f9ec 当前 2026-08-20 03:04

    将清理命令从 purge 改为 clean,新增 --force 选项支持跨工作区共享索引,并增加对向量精度、去重率等详细状态的报告。

  • d0dee0e 2026-07-25 08:59

同 Skill 集合

.claude/skills/add-benchmark/SKILL.md
plugins/lumen/skills/doctor/SKILL.md
plugins/lumen/skills/reindex/SKILL.md
skills/doctor/SKILL.md

元信息

文件数
0
版本
f60f9ec
Hash
ca084946
收录时间
2026-07-25 08:59

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 22:06
浙ICP备14020137号-1