AgentSkillsCN

reindex

为 ChunkHound 搜索重新索引当前项目,或对所有项目进行索引更新。

SKILL.md
--- frontmatter
name: reindex
description: Re-index the current project or all projects for ChunkHound search
argument-hint: [all]
allowed-tools: Bash, Read

Re-index Projects

Configuration

  1. Read ~/.claude/skills/chunkhound-config.json — contains embedding_args and db_dir.
  2. Read ~/.claude/skills/projects.json — maps project names to paths.

Steps

  1. Read the config and registry files listed above.

  2. If "$ARGUMENTS" is "all", re-index every project in the registry. Otherwise, resolve the current project from your working directory and re-index just that one.

  3. For each project to index:

    bash
    chunkhound index {project_path} --db {db_dir}/{name}.duckdb {embedding_args}
    
  4. Report the result for each project.