Skip to content
Back to skills

Code Index

ASecurity

Index and query the code structure and symbols. Use this to find where symbols are defined and referenced.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-index --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Index?

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

Security grade badge for Code Index
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-index/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-index)

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: code-index
description: Index and query the code structure and symbols. Use this to find where symbols are defined and referenced.
---

# Code Index Skill

This skill allows you to explore the codebase structure and symbols without relying on external tools or heavy indexing.
It maintains a lightweight index of files, classes, functions, and global variables.

## Commands

### Initialize
Set up the code index by defining source roots.
Command: `python3 scripts/code_index.py init`
(Interactive)

### Refresh Index
Re-scan the source roots and update the index.
Command: `python3 scripts/code_index.py index`
**Run this after significant code changes.**

### List Files
View the file structure and symbol counts.
Command: `python3 scripts/code_index.py list [--format json]`

### Statistics
View codebase statistics (files, symbols, test coverage ratio).
Command: `python3 scripts/code_index.py stats [--format json]`

### Search Symbols
Fuzzy search for symbols (classes, functions, etc.).
Command: `python3 scripts/code_index.py search <query> [--format json]`

### Lookup
Get exact definition location of a symbol or list symbols in a file.
Command: `python3 scripts/code_index.py lookup <symbol_or_filepath> [--format json]`

### Find References
Find text references to a symbol across the codebase.
Command: `python3 scripts/code_index.py references <symbol> [--format json]`

## Workflow

1.  **Exploration**: Use `list` to see the structure.
2.  **Navigation**: Use `search` to find a known symbol.
3.  **Understanding**: Use `lookup` to see where it's defined.
4.  **Impact**: Use `references` to see where it's used.

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…