/index-docs
Index documents into a vector store for retrieval-augmented generation.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/index-docs
Context preview
What this command does when you run it.
Index documents into a vector store for retrieval-augmented generation.
Command definition
index-docs.mdname: index-docs
description: Index documents into a vector store for retrieval-augmented generation.
/index-docs - Index Documents for RAG
Index documents into a vector store for retrieval-augmented generation.
Steps
1. Ask the user for the document source: directory, URLs, database, or API 2. Detect document types: PDF, markdown, HTML, text, code, DOCX 3. Load documents using appropriate parsers for each file type 4. Split documents into chunks using semantic-aware chunking:
- Respect paragraph and section boundaries
- Target chunk size: 500-1000 tokens with 100-token overlap
5. Clean and preprocess chunks: remove boilerplate, normalize whitespace 6. Generate embeddings for each chunk using the configured embedding model 7. Store embeddings in the vector database: Pinecone, Weaviate, Chroma, or pgvector 8. Create metadata for each chunk: source file, page number, section title, date 9. Build an index mapping for fast retrieval and source citation 10. Validate the index by running sample queries and checking relevance 11. Report: documents indexed, total chunks, vector dimensions, storage size 12. Save the indexing configuration for incremental updates
Rules
- Use semantic chunking that respects document structure over fixed-size splitting
- Include sufficient overlap between chunks to preserve context at boundaries
- Store source metadata with each chunk for citation and provenance
- Handle duplicate documents by comparing content hashes before indexing
- Support incremental indexing: add new documents without re-indexing everything
- Use the same embedding model for indexing and querying
- Monitor embedding costs and set budget alerts for large document sets
Read more
name: index-docs description: Index documents into a vector store for retrieval-augmented generation.
/index-docs - Index Documents for RAG
Index documents into a vector store for retrieval-augmented generation.
Steps
1. Ask the user for the document source: directory, URLs, database, or API 2. Detect document types: PDF, markdown, HTML, text, code, DOCX 3. Load documents using appropriate parsers for each file type 4. Split documents into chunks using semantic-aware chunking:
- Respect paragraph and section boundaries
- Target chunk size: 500-1000 tokens with 100-token overlap
5. Clean and preprocess chunks: remove boilerplate, normalize whitespace 6. Generate embeddings for each chunk using the configured embedding model 7. Store embeddings in the vector database: Pinecone, Weaviate, Chroma, or pgvector 8. Create metadata for each chunk: source file, page number, section title, date 9. Build an index mapping for fast retrieval and source citation 10. Validate the index by running sample queries and checking relevance 11. Report: documents indexed, total chunks, vector dimensions, storage size 12. Save the indexing configuration for incremental updates
Rules
- Use semantic chunking that respects document structure over fixed-size splitting
- Include sufficient overlap between chunks to preserve context at boundaries
- Store source metadata with each chunk for citation and provenance
- Handle duplicate documents by comparing content hashes before indexing
- Support incremental indexing: add new documents without re-indexing everything
- Use the same embedding model for indexing and querying
- Monitor embedding costs and set budget alerts for large document sets
The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

