opensource-readme-generator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpen Source README Generator
开源README生成工具
This skill helps you generate professional, comprehensive, and visually appealing README files for open-source projects.
此技能可帮助你为开源项目生成专业、全面且视觉效果出色的README文件。
Usage Guidelines
使用指南
When a user asks to create or improve a README:
-
Analyze the Project:
- Look at the files in the current directory (using or similar tools if allowed/safe) to understand the project type (Node.js, Python, Go, etc.).
ls -R - Identify key components: ,
package.json, source code folders, tests.requirements.txt - Determine the project name and purpose.
- Look at the files in the current directory (using
-
Gather Information:
- If the project purpose isn't clear from the code, ask the user for a brief description, "elevator pitch", or key features.
- Ask about specific sections if they are missing (e.g., "Do you have a demo link?", "What is the license?").
-
Use the Template:
- Read the template at .
assets/all-star-readme-template.md - Use this template as the structure for your output.
- Do not just copy the template blindly. Fill in the placeholders (,
github_username, etc.) with real data from the project or reasonable placeholders if unknown.repo_name - Customize the badges in the "Built With" section to match the technologies actually used in the project.
- Read the template at
-
Consult Guidelines:
- Refer to to ensure you are meeting the "All-Star" criteria (clarity, visuals, completeness).
references/readme-guidelines.md
- Refer to
当用户要求创建或改进README时:
-
分析项目:
- 查看当前目录下的文件(若允许且安全,可使用或类似工具),以了解项目类型(Node.js、Python、Go等)。
ls -R - 识别关键组件:、
package.json、源代码文件夹、测试文件。requirements.txt - 确定项目名称和用途。
- 查看当前目录下的文件(若允许且安全,可使用
-
收集信息:
- 如果从代码中无法明确项目用途,请向用户索要简要描述、「电梯游说」内容或核心功能介绍。
- 询问缺失的特定部分(例如:「你是否有演示链接?」、「项目采用什么许可证?」)。
-
使用模板:
- 阅读中的模板。
assets/all-star-readme-template.md - 以此模板作为输出的结构框架。
- 请勿盲目复制模板。将占位符(、
github_username等)替换为项目的真实数据,若数据未知则使用合理的占位符。repo_name - 自定义「技术栈」(Built With)部分的徽章,使其与项目实际使用的技术匹配。
- 阅读
-
参考指南:
- 参考,确保符合「全明星级」标准(清晰、可视化、内容完整)。
references/readme-guidelines.md
- 参考
Workflow
工作流程
- Understand: Read the user's request and explore the codebase to understand what the project does.
- Draft: Create a draft of the in your mind or a scratchpad, mapping project details to the template sections.
README.md - Refine: Check against .
references/readme-guidelines.md - Output: Write the content to (or a file specified by the user) using the
README.mdtool.write_file
- 理解需求: 阅读用户的请求,探索代码库以了解项目功能。
- 起草内容: 在脑海中或草稿区创建的初稿,将项目细节对应到模板的各个部分。
README.md - 优化完善: 对照进行检查。
references/readme-guidelines.md - 输出文件: 使用工具将内容写入
write_file(或用户指定的文件)。README.md
Tips
小贴士
- Badges: Always include badges. They make the repo look active and professional.
- Visuals: If you can't generate a screenshot, add a placeholder like and tell the user to replace it.
 - Tone: Keep the tone professional, welcoming, and helpful.
- 徽章: 务必包含徽章。它们会让仓库看起来更活跃、更专业。
- 可视化内容: 若无法生成截图,请添加占位符,例如,并告知用户进行替换。
 - 语气: 保持专业、友好且有帮助的语气。