What problem does it solve?
Projects and READMEs are often written for humans and contain fragmented, import-only snippets, directory metadata, and inconsistent formatting that make them hard for LLMs and AI coding assistants to use effectively. This skill centralizes a question-driven approach to restructure documentation, add runnable examples, remove noise, and improve discoverability so LLMs provide more accurate, actionable answers.
Core Features & Use Cases
- C7Score Optimization: Evaluate and improve documentation across question-snippet matching, LLM evaluation, formatting, metadata removal, and initialization clarity to raise Context7 benchmark scores.
- llms.txt Generation: Build an LLM-friendly llms.txt navigation file with prioritized full-URL links and concise summaries to help agents find relevant docs quickly.
- Automated Analysis: Optionally run the included analyze_docs.py to detect import-only snippets, installation-only blocks, duplicates, and formatting issues and produce a prioritized remediation plan.
- Use Case: Improve a repository README so that Claude, Copilot, or retrieval-based assistants can answer common "How do I..." developer questions with copy-paste runnable examples and a linked llms.txt for fast navigation.
Quick Start
Ask llm-docs-optimizer to analyze and optimize your README for c7score and optionally generate an llms.txt navigation file for the repository.