[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"work-shopify-docs-cli":3},{"id":4,"title":5,"body":6,"category":34,"challenge":35,"codeSnippet":36,"description":40,"extension":41,"featured":42,"finalScreenshot":43,"gridOrder":44,"isDemo":42,"isDemoURL":31,"liveUrl":45,"meta":46,"mockupImage":47,"navigation":48,"nextProject":45,"order":49,"path":50,"results":45,"schneiderFeatured":42,"schneiderOrder":45,"seo":51,"solution":52,"stem":53,"subtitle":54,"tags":55,"techStack":60,"thumbnail":65,"thumbnailVideo":45,"year":66,"__hash__":67},"works/works/shopify-docs-cli.md","Shopify Docs",{"type":7,"value":8,"toc":30},"minimark",[9,14,18,21,24,27],[10,11,13],"h1",{"id":12},"shopify-docs-token-efficient-documentation-cli","shopify-docs — Token-Efficient Documentation CLI",[15,16,17],"p",{},"3 files. 537 lines. Zero npm dependencies.",[15,19,20],{},"The official Shopify MCP server dumps 30,000-50,000+ tokens of system prompts and schema per documentation lookup. This tool routes natural-language queries to the right Shopify docs source via 14 pre-mapped library indexes and returns approximately 1,500-3,000 tokens of relevant snippets. That's a 10-20x reduction in context consumption.",[22,23],"hr",{},[15,25,26],{},"Smart keyword-length scoring (not count — \"checkout ui extension\" outweighs \"checkout\"), pre-resolved library IDs eliminating network round-trips, and a graceful fallback to the general Shopify Developer Docs index. Works as a CLI, an MCP server (raw JSON-RPC 2.0 over JSONL stdio, no SDK dependency), or a Claude Code slash command.",[15,28,29],{},"This is a tool built to optimize AI development tooling — meta-level workflow optimization that compounds across every other project.",{"title":31,"searchDepth":32,"depth":32,"links":33},"",2,[],"Developer Tooling","The official Shopify MCP server dumps 30,000-50,000+ tokens of system prompts and schema per documentation lookup. For AI-assisted development with Claude Code, this wastes context window on irrelevant content, increasing cost and reducing the quality of responses by drowning relevant code context in documentation noise.",{"language":37,"filename":38,"code":39},"typescript","src/router.ts","const LIBRARY_MAP: Record\u003Cstring, LibraryIndex> = {\n  'admin-api':      { id: '/shopify/shopify-api-js',        weight: 3 },\n  'storefront-api': { id: '/shopify/hydrogen',              weight: 3 },\n  'polaris':        { id: '/shopify/polaris',                weight: 2 },\n  'theme':          { id: '/shopify/dawn',                   weight: 2 },\n  'checkout-ui':    { id: '/shopify/ui-extensions',          weight: 3 },\n  'functions':      { id: '/shopify/shopify-functions',      weight: 2 },\n  // ... 8 more pre-mapped indexes\n}\n\nfunction routeQuery(query: string): LibraryIndex {\n  const scores = Object.entries(LIBRARY_MAP).map(([key, lib]) => ({\n    lib,\n    score: calculateKeywordScore(query, key) * lib.weight,\n  }))\n\n  return scores.sort((a, b) => b.score - a.score)[0]?.lib\n    ?? LIBRARY_MAP['developer-docs'] // fallback\n}\n","Zero-dependency CLI and MCP server that reduces Shopify documentation lookups from 30,000-50,000+ tokens to ~1,500-3,000 tokens — a 10-20x reduction in context consumption for AI-assisted development.","md",false,"/images/projects/shopify-docs-cli-final.jpg",14,null,{},"/images/projects/shopify-docs-cli-mockup.jpg",true,17,"/works/shopify-docs-cli",{"title":5,"description":40},"3 files. 537 lines. Zero npm dependencies. Routes natural-language queries to the right Shopify docs source via 14 pre-mapped library indexes and returns approximately 1,500-3,000 tokens of relevant snippets. Smart keyword-length scoring, pre-resolved library IDs eliminating network round-trips, and graceful fallback to the general Shopify Developer Docs index. Works as a CLI, an MCP server (raw JSON-RPC 2.0 over JSONL stdio), or a Claude Code slash command.","works/shopify-docs-cli","Token-Efficient CLI",[56,57,58,59,34],"MCP","Claude Code","CLI","Shopify Documentation",[61,62,63,64],"Node.js 18+","ESM","JSON-RPC 2.0","Context7 API","/images/projects/shopify-docs-cli.jpg","2026","GydCzqVxCrTOaSPIYQfuL16euOMEb-UgElUElh4-4d8",1773700381277]