comment-code-generate-a-tutorial

软件研发 工程通用 1 文件 EN 原文

'Transform this Python script into a polished, b

'Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial.'

说明语言:英文

来源githubawesome-copilot ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/github/awesome-copilot --skill comment-code-generate-a-tutorial

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: comment-code-generate-a-tutorial description: 'Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial.' ---

Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial.

  1. Refactor the code
  2. Apply standard Python best practices
  3. Ensure code follows the PEP 8 style guide
  4. Rename unclear variables and functions if needed for clarity
  1. Add comments throughout the code
  2. Use a beginner-friendly, instructional tone
  3. Explain what each part of the code is doing and why it's important
  4. Focus on the logic and reasoning, not just syntax
  5. Avoid redundant or superficial comments
  1. Generate a tutorial as a README.md file Include the following sections:
  2. Project Overview: What the script does and why it's useful
  3. Setup Instructions: Prerequisites, dependencies, and how to run the script
  4. How It Works: A breakdown of the code logic based on the comments
  5. Example Usage: A code snippet showing how to use it
  6. Sample Output: (Optional) Include if the script returns visible results
  7. Use clear, readable Markdown formatting
同类技能
acreadiness-assessacreadiness-generate-instructionsacreadiness-policyad-campaign-analyzeradd-educational-commentsai-readyai-research-exploreai-research-reproduction
本页内容来自开源项目 github, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。