src/ai-context-window/SKILL.md
# Context Window Management Manage LLM context windows. Token estimation, chunking, optimization. ## Quick Start ```bash npx ai-context-window estimate "Your text" ``` ## What It Does - Estimate tokens in text - Split documents into chunks - Check if content fits models - Truncate oversized content ## Usage ```bash # Estimate tokens npx ai-context-window estimate "text" # Chunk file npx ai-context-window chunk document.txt --tokens 1000 # Check fit npx ai-context-window fit document.txt
npx skillsauth add lxgicstudios/lxgic-ai-tools src/ai-context-windowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage LLM context windows. Token estimation, chunking, optimization.
npx ai-context-window estimate "Your text"
# Estimate tokens
npx ai-context-window estimate "text"
# Chunk file
npx ai-context-window chunk document.txt --tokens 1000
# Check fit
npx ai-context-window fit document.txt gpt-4-turbo
# List models
npx ai-context-window models
One of 110+ free developer tools from LXGIC Studios.
MIT. Free forever.
development
# Vercel AI SDK Vercel AI SDK scaffolding. ```bash npx ai-vercel-ai init ```
tools
# Vector Database Setup Set up vector databases for AI applications. Pinecone, Weaviate, Qdrant, pgvector. ## Quick Start ```bash npx ai-vector-db init pinecone ``` ## What It Does - Generate vector DB client code - Support for major providers - TypeScript ready - Customizable dimensions and names ## Usage ```bash # Generate client npx ai-vector-db init pinecone npx ai-vector-db init pgvector # List providers npx ai-vector-db providers # Compare options npx ai-vector-db compare ``` ##
tools
# SSE Streaming Server-Sent Events streaming for LLM responses. Real-time streaming for OpenAI and Anthropic. ## Quick Start ```bash npx ai-streaming init ``` ## What It Does - Generate SSE streaming utilities - Stream OpenAI/Anthropic responses - Next.js and Express support - Client-side consumption helpers ## Usage ```bash # Generate Next.js streaming code npx ai-streaming init # Generate Express streaming code npx ai-streaming init --framework express # Show info npx ai-streaming i
tools
# Semantic Search Embeddings-based semantic search for AI applications. ## Quick Start ```bash npx ai-semantic-search init ``` ## What It Does - Search by meaning, not keywords - Hybrid search (BM25 + semantic) - LLM-based reranking - Custom filtering ## Usage ```bash npx ai-semantic-search init npx ai-semantic-search info ``` ## Part of the LXGIC Dev Toolkit One of 110+ free developer tools from LXGIC Studios. - GitHub: https://github.com/lxgicstudios - Twitter: https://x.com/lxgicstu