展示HN:Context-gen – 从一次扫描生成AI编码助手上下文文件

📄 中文摘要

Context-gen是一个命令行工具,能够扫描代码库,识别实际配置文件中的技术栈,并为Claude Code、Cursor、GitHub Copilot、Cline和Windsurf生成上下文文件。该工具读取多种配置文件,包括package.json、go.mod、Cargo.toml、.editorconfig和pyproject.toml,能够为20多种语言和框架生成特定的编码指南。此外,智能更新功能可以保留手动编辑的内容。该工具使用Go语言开发,采用MIT许可证,无需API密钥。

📄 English Summary

Show HN: Context-gen – Generate AI coding assistant context files from one scan

Context-gen is a command-line tool that scans a codebase to detect the technology stack from actual configuration files and generates context files for AI coding assistants like Claude Code, Cursor, GitHub Copilot, Cline, and Windsurf. It reads various configuration files, including package.json, go.mod, Cargo.toml, .editorconfig, and pyproject.toml, generating framework-specific coding guidelines for over 20 languages and frameworks. Additionally, the smart update feature preserves manual edits. Developed in Go, it is licensed under the MIT license and does not require API keys.

Powered by Cloudflare Workers + Payload CMS + Claude 3.5

数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等