reindex

Reindex the cqs search index and compare before/after statistics.

13|3|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/jamie8johnson/cqs --skill reindex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reindex
Source: https://github.com/jamie8johnson/cqs/tree/main/.claude/skills/reindex
Command: npx skills add https://github.com/jamie8johnson/cqs --skill reindex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebuild the cqs search index and present before/after statistics to validate index integrity and performance after changes.

Core Features & Use Cases

  • Incremental reindex: rebuilds only changed files to save time.
  • Full rebuild option: use --force to perform a complete reindex when needed.
  • Before/after comparison: outputs diffs for chunks, notes, vectors, and the call graph to surface drift.
  • Verification: quick sanity check via a sample search after indexing.

Quick Start

Run cqs index to rebuild incrementally (or cqs index --force for a full rebuild), then run cqs stats before and after and verify results with a sample search like cqs "parse source file".

Frequently Asked Questions about reindex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rebuild a search index after significant codebase changes?

To rebuild a search index after codebase changes, you can perform an incremental reindex to update only changed files, or run a full rebuild to completely refresh the index and validate its integrity.

What is the difference between incremental indexing and a full rebuild?

Incremental indexing rebuilds only changed files to save time, whereas a full rebuild performs a complete reindex to refresh all data when significant codebase or environment changes occur.

How do I verify search index integrity and performance after reindexing?

You can verify search index integrity by comparing before and after statistics, which outputs diffs for chunks, notes, HNSW vectors, and the call graph to surface any drift or performance issues.

Do I need a local installation to reindex the cqs search index?

Yes, you need a local cqs installation to reindex the search index, as the process relies on local commands to execute incremental updates or force a full rebuild of the environment.

When should I perform a full search index rebuild instead of an incremental update?

You should perform a full search index rebuild during environment switches or maintenance cycles to completely refresh the data, rather than using an incremental update for minor file changes.

How does a sample search validate the reindexing process?

A sample search validates the reindexing process by acting as a quick sanity check, running a query like searching for a specific function to ensure the newly rebuilt search index returns accurate results.