Skip to content
Back to skills

Reindex

ASecurity

Rebuilds the codebase knowledge index at docs/codebase-index.json. Scans all source files for module structure, exports, dependencies, and tech debt hotspots. Shared across all three agents.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 28, 2026
ai-agentspythonbashnodesecurity

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add ArtemioPadilla/agent-triforce --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/artemiopadilla-reindex/badge)](https://www.skillsdirectory.com/skills/artemiopadilla-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: >
  Rebuilds the codebase knowledge index at docs/codebase-index.json.
  Scans all source files for module structure, exports, dependencies,
  and tech debt hotspots. Shared across all three agents.
context: fork
agent: forja-dev
---

Rebuild the codebase knowledge index.

Follow these steps:

**SIGN IN:**
- Run the SIGN IN checklist from your agent file
- Check if `docs/codebase-index.json` exists (rebuild vs fresh build)

**INDEX:**
1. Use `tools/codebase-indexer.py` if available, otherwise perform manual indexing:
   ```bash
   python3 tools/codebase-indexer.py --output docs/codebase-index.json
   ```
2. If manual indexing is needed, scan `src/` recursively:
   - For each file, extract:
     - Module path (relative to project root)
     - Language (from extension)
     - Exported functions/classes with signatures
     - Import statements (to build dependency graph)
     - File size (lines of code)
3. Cross-reference with `TECH_DEBT.md`:
   - Flag files mentioned in tech debt entries as hotspots
4. Cross-reference with `docs/reviews/`:
   - Flag files with recent security findings
5. Build the dependency graph:
   - Module A imports Module B -> edge from A to B
   - Identify circular dependencies
   - Identify orphan modules (not imported by any other module)

**VERIFY:**

**TIME OUT — Index Verification (DO-CONFIRM):**
- [ ] All `src/` files indexed (count matches `find src/ -type f | wc -l`)
- [ ] Exported symbols extracted for each file
- [ ] Dependency graph has no missing nodes (every import resolves to a file)
- [ ] Tech debt hotspots flagged
- [ ] Index file is valid JSON
- [ ] Build time under 60 seconds for up to 500 files

**SIGN OUT:**
6. Report index summary: file count, symbol count, dependency edge count, hotspot count
7. Note if circular dependencies were found
8. Run the SIGN OUT checklist from your agent file

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.