TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Repo-guide – AI-generated docs for codebase exploration and onboarding

2 点作者 wolfmanstout3 个月前
Hey HN, I built repo-guide to make it easier to dive into and contribute to unfamiliar codebases. You can see an example of what it generates here: <a href="https:&#x2F;&#x2F;wolfmanstout.github.io&#x2F;repo-guide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wolfmanstout.github.io&#x2F;repo-guide&#x2F;</a><p>Unlike most AI documentation tools that focus on Q&amp;A, repo-guide generates comprehensive, browsable guides. It&#x27;s designed to complement (not replace) human-authored documentation, with full transparency about AI generation.<p>Why?<p>* Deepening expertise: One of the best ways to advance as an engineer is to learn how libraries and systems you use are built under the hood. Many AI tools emphasize Q&amp;A chat, which is great if you already know what questions to ask, but not as helpful when you’re trying to discover new details. By generating detailed, navigable guides, repo-guide helps surface interesting design choices you might otherwise miss.<p>* Onboarding contributors: If you’re new to a repo, figuring out directory layouts and dev tools can be a slog. A comprehensive auto-generated guide lets you ramp up faster.<p>How It Works:<p>* You install it via pip install repo-guide, then run repo-guide &lt;path_to_repo&gt;.<p>* It uses a bottom-up approach that examines each directory and file, generating Markdown docs you can browse locally (or deploy).<p>* Under the hood, it leverages Simon Willison’s LLM package (<a href="https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;llm">https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;llm</a>) to call LLM APIs (e.g., Gemini 2.0 Flash by default -- you can specify another model via --model).<p>* The system prompt encourages verbosity so you’ll see thorough coverage of internals (you can customize or shorten this via --custom-instructions).<p>What’s Next?<p>* Future ideas include a live chatbot that references both the generated docs and code, plus auto-generated changelogs.<p>* This is one of my weekend projects, so maintenance might be sporadic, but I’m happy to take feedback and suggestions!

暂无评论

暂无评论