/generate-embeddings
Generate vector embeddings for text data using embedding models.
$ 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
/generate-embeddings
Context preview
What this command does when you run it.
Generate vector embeddings for text data using embedding models.
Command definition
generate-embeddings.md/generate-embeddings - Generate Vector Embeddings
Generate vector embeddings for text data using embedding models.
Steps
1. Ask the user for the input data: text file, database table, or API responses 2. Select the embedding model: OpenAI text-embedding-3, Cohere embed, Sentence-BERT, or local model 3. Preprocess the input text: clean, normalize, truncate to model's max token length 4. Batch the inputs for efficient API calls (batch size based on model limits) 5. Generate embeddings with retry logic for API rate limits and transient errors 6. Validate embedding dimensions match the expected model output 7. Normalize embeddings to unit length for cosine similarity searches 8. Store embeddings with their source text and metadata in the vector database 9. Create an index for efficient nearest-neighbor search 10. Verify embedding quality by checking similarity of known-similar items 11. Report: total items embedded, dimensions, storage size, API cost estimate 12. Save the embedding configuration for future regeneration
Rules
- Batch API calls to stay within rate limits and reduce costs
- Implement exponential backoff retry for API failures
- Truncate text to the model's maximum token length before embedding
- Normalize embeddings for consistent similarity calculations
- Store the model name and version with embeddings for reproducibility
- Cache embeddings to avoid regenerating unchanged content
- Monitor API costs and set spending alerts for large datasets
Read more
/generate-embeddings - Generate Vector Embeddings
Generate vector embeddings for text data using embedding models.
Steps
1. Ask the user for the input data: text file, database table, or API responses 2. Select the embedding model: OpenAI text-embedding-3, Cohere embed, Sentence-BERT, or local model 3. Preprocess the input text: clean, normalize, truncate to model's max token length 4. Batch the inputs for efficient API calls (batch size based on model limits) 5. Generate embeddings with retry logic for API rate limits and transient errors 6. Validate embedding dimensions match the expected model output 7. Normalize embeddings to unit length for cosine similarity searches 8. Store embeddings with their source text and metadata in the vector database 9. Create an index for efficient nearest-neighbor search 10. Verify embedding quality by checking similarity of known-similar items 11. Report: total items embedded, dimensions, storage size, API cost estimate 12. Save the embedding configuration for future regeneration
Rules
- Batch API calls to stay within rate limits and reduce costs
- Implement exponential backoff retry for API failures
- Truncate text to the model's maximum token length before embedding
- Normalize embeddings for consistent similarity calculations
- Store the model name and version with embeddings for reproducibility
- Cache embeddings to avoid regenerating unchanged content
- Monitor API costs and set spending alerts for large datasets
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

