opensource-readme-generator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Open 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:
  1. Analyze the Project:
    • Look at the files in the current directory (using
      ls -R
      or similar tools if allowed/safe) to understand the project type (Node.js, Python, Go, etc.).
    • Identify key components:
      package.json
      ,
      requirements.txt
      , source code folders, tests.
    • Determine the project name and purpose.
  2. 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?").
  3. 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
      ,
      repo_name
      , etc.) with real data from the project or reasonable placeholders if unknown.
    • Customize the badges in the "Built With" section to match the technologies actually used in the project.
  4. Consult Guidelines:
    • Refer to
      references/readme-guidelines.md
      to ensure you are meeting the "All-Star" criteria (clarity, visuals, completeness).
当用户要求创建或改进README时:
  1. 分析项目:
    • 查看当前目录下的文件(若允许且安全,可使用
      ls -R
      或类似工具),以了解项目类型(Node.js、Python、Go等)。
    • 识别关键组件:
      package.json
      requirements.txt
      、源代码文件夹、测试文件。
    • 确定项目名称和用途。
  2. 收集信息:
    • 如果从代码中无法明确项目用途,请向用户索要简要描述、「电梯游说」内容或核心功能介绍。
    • 询问缺失的特定部分(例如:「你是否有演示链接?」、「项目采用什么许可证?」)。
  3. 使用模板:
    • 阅读
      assets/all-star-readme-template.md
      中的模板。
    • 以此模板作为输出的结构框架。
    • 请勿盲目复制模板。将占位符(
      github_username
      repo_name
      等)替换为项目的真实数据,若数据未知则使用合理的占位符。
    • 自定义「技术栈」(Built With)部分的徽章,使其与项目实际使用的技术匹配。
  4. 参考指南:
    • 参考
      references/readme-guidelines.md
      ,确保符合「全明星级」标准(清晰、可视化、内容完整)。

Workflow

工作流程

  1. Understand: Read the user's request and explore the codebase to understand what the project does.
  2. Draft: Create a draft of the
    README.md
    in your mind or a scratchpad, mapping project details to the template sections.
  3. Refine: Check against
    references/readme-guidelines.md
    .
  4. Output: Write the content to
    README.md
    (or a file specified by the user) using the
    write_file
    tool.
  1. 理解需求: 阅读用户的请求,探索代码库以了解项目功能。
  2. 起草内容: 在脑海中或草稿区创建
    README.md
    的初稿,将项目细节对应到模板的各个部分。
  3. 优化完善: 对照
    references/readme-guidelines.md
    进行检查。
  4. 输出文件: 使用
    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
    ![Screenshot](path/to/screenshot.png)
    and tell the user to replace it.
  • Tone: Keep the tone professional, welcoming, and helpful.
  • 徽章: 务必包含徽章。它们会让仓库看起来更活跃、更专业。
  • 可视化内容: 若无法生成截图,请添加占位符,例如
    ![Screenshot](path/to/screenshot.png)
    ,并告知用户进行替换。
  • 语气: 保持专业、友好且有帮助的语气。