# Repository Analysis (No llms.txt) **Use when:** llms.txt not available on context7.com or official site **Speed:** โšกโšกโšก Slower (5-10min) **Token usage:** ๐Ÿ”ด High **Accuracy:** ๐Ÿ” Code-based ## When to Use - Library not on context7.com - No llms.txt on official site - Need to analyze code structure - Documentation incomplete ## Workflow ``` 1. Find repository โ†’ WebSearch: "[library] github repository" โ†’ Verify: Official, active, has docs/ 2. Clone repository โ†’ Bash: git clone [repo-url] /tmp/docs-analysis โ†’ Optional: checkout specific version/tag 3. Install Repomix (if needed) โ†’ Bash: npm install -g repomix 4. Pack repository โ†’ Bash: cd /tmp/docs-analysis && repomix --output repomix-output.xml โ†’ Repomix creates AI-friendly single file 5. Read packed file โ†’ Read: /tmp/docs-analysis/repomix-output.xml โ†’ Extract: README, docs/, examples/, API files 6. Analyze structure โ†’ Identify: Documentation sections โ†’ Extract: Installation, usage, API, examples โ†’ Note: Code patterns, best practices 7. Present findings โ†’ Source: Repository analysis โ†’ Caveat: Based on code, not official docs โ†’ Include: Repository health (stars, activity) ``` ## Example **Obscure library without llms.txt:** ```bash # 1. Find WebSearch: "MyLibrary github repository" # Found: https://github.com/org/mylibrary # 2. Clone git clone https://github.com/org/mylibrary /tmp/docs-analysis # 3. Pack with Repomix cd /tmp/docs-analysis repomix --output repomix-output.xml # 4. Read Read: /tmp/docs-analysis/repomix-output.xml # Single XML file with entire codebase # 5. Extract documentation - README.md: Installation, overview - docs/: Usage guides, API reference - examples/: Code samples - src/: Implementation patterns # 6. Present Source: Repository analysis (no llms.txt) Health: 1.2K stars, active ``` ## Repomix Benefits โœ… Entire repo in single file โœ… Preserves directory structure โœ… AI-optimized format โœ… Includes metadata ## Alternative If no GitHub repo exists: โ†’ Deploy multiple Researcher agents โ†’ Gather: Official site, blog posts, tutorials, Stack Overflow โ†’ Note: Quality varies, cross-reference sources