Skip to content
Back to skills

Reindex

ASecurity

Rebuild the cqs index and show before/after stats comparison.

  • 18 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agents

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add jamie8johnson/cqs --skill reindex --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reindex?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reindex
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jamie8johnson-reindex/badge)](https://www.skillsdirectory.com/skills/jamie8johnson-reindex)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reindex
description: Rebuild the cqs index and show before/after stats comparison.
disable-model-invocation: false
argument-hint: "[--force]"
---

# Reindex

Rebuild the cqs search index and compare stats.

## Process

1. **Before stats**: Run `cqs stats` and capture output (chunk count, note count, HNSW status)

2. **Reindex**:
   - Default: `cqs index` (incremental — only re-embeds changed files)
   - With `--force` argument: `cqs index --force` (full rebuild). Stop the daemon first (`systemctl --user stop cqs-watch`) — cqs itself warns to do this — and restart it after.

3. **After stats**: Run `cqs stats` again

4. **Compare**: Show before/after diff:
   - Chunks: added, removed, unchanged
   - Notes: count change
   - HNSW vectors: count change
   - Call graph: call count change

5. **Verify**: Run a quick search to confirm index is working:
   - `cqs "parse source file"` — should return results
   - If no results, something is wrong — investigate

## When to use

- After significant code changes
- After editing `docs/notes.toml` manually (if `cqs watch` isn't running)
- After switching branches with different file sets
- When search results seem stale or wrong

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.