All skills
github avatar

/comment-code-generate-a-tutorial

@caab1f6 official
by githubgithub/awesome-copilot40k stars
5,040

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

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/comment-code-generate-a-tutorial

This session only. Nothing lands on disk.

SKILL.md

≈53 tokens always: the name and description. ≈287 when used: this file.

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

    • Apply standard Python best practices
    • Ensure code follows the PEP 8 style guide
    • Rename unclear variables and functions if needed for clarity
  2. Add comments throughout the code

    • Use a beginner-friendly, instructional tone
    • Explain what each part of the code is doing and why it's important
    • Focus on the logic and reasoning, not just syntax
    • Avoid redundant or superficial comments
  3. Generate a tutorial as a README.md file
    Include the following sections:

    • Project Overview: What the script does and why it's useful
    • Setup Instructions: Prerequisites, dependencies, and how to run the script
    • How It Works: A breakdown of the code logic based on the comments
    • Example Usage: A code snippet showing how to use it
    • Sample Output: (Optional) Include if the script returns visible results
    • Use clear, readable Markdown formatting

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is safe to use. It is a text-based prompt template that guides the AI agent to refactoring a Python script, add instructional comments, and generate a README tutorial file.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1/1 file flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at caab1f6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 7 months ago

README badge

README badge for github/awesome-copilot/comment-code-generate-a-tutorial

Refactors a Python script to meet PEP 8 standards, adds instructional comments explaining logic and reasoning, and generates a beginner-friendly README.md tutorial. Useful for documenting educational code examples or preparing scripts for sharing with junior developers.

Generated from the current SKILL.md.

Does this skill work with languages other than Python?
The skill is designed specifically for Python scripts. It applies PEP 8 style guidelines and Python best practices.
What does the generated tutorial include?
The skill generates a README.md with project overview, setup instructions, code logic breakdown, example usage, and optional sample output sections.
Does this refactor the code or just add comments?
The skill both refactors the code to follow PEP 8 and best practices, and adds instructional comments throughout. It also generates the tutorial markdown.
Who is the target audience for the generated tutorial?
The skill generates tutorials aimed at beginners, using clear explanations focused on logic and reasoning rather than just syntax.

Generated from the current SKILL.md. These answers refresh after source changes.