mo-indexlisted
Install: claude install-skill dreamlx/codeindex
# mo-index - Repository Indexing
Generate AI-friendly index files (README_AI.md) for codebases using codeindex.
## Prerequisites Check
First, verify codeindex is available:
```bash
which codeindex || echo "Not installed. Run: pip install codeindex"
```
## Workflow
### Step 1: Initialize (if needed)
```bash
# Check for config
cat .codeindex.yaml 2>/dev/null || codeindex init
```
### Step 2: Review Configuration
```bash
cat .codeindex.yaml
```
Key settings to verify:
- `ai_command` - Your AI CLI command (claude, openai, etc.)
- `include` - Directories to scan
- `exclude` - Patterns to skip
### Step 3: Preview Indexable Directories
```bash
codeindex list-dirs
```
### Step 4: Index Directories
**Single directory (test first):**
```bash
codeindex scan ./src/module --dry-run # Preview
codeindex scan ./src/module # Execute
```
**All directories (parallel):**
```bash
codeindex list-dirs | xargs -P 4 -I {} codeindex scan {}
```
**Fallback mode (no AI):**
```bash
codeindex scan ./src/module --fallback
```
### Step 5: Generate Project Index
```bash
codeindex index
```
Creates `PROJECT_INDEX.md` with module overview.
### Step 6: Verify Coverage
```bash
codeindex status
```
## Example Session
```
User: Index this project
Claude: I'll help you index this project. Let me check the setup first.
> codeindex status
Indexed: 0/3 (0%)
Not indexed: src/, tests/, examples/
> codeindex list-dirs | xargs -P 4 -I {} codeindex scan {}
✓ Created: src/codeindex/READ