Skill Press

No. 275 · comment-code-generate-a-tutorial

Turn Code into a Tutorial

A field guide from GitHub Awesome Copilot contributors

GitHub Awesome Copilot contributors

When to use it

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

Rank
No. 275 of 971
Installs
Not listed yet
Built for
GitHub Copilot
Runs in
GitHub Copilot
Length
170 words · 1 min
Files
2
License
MIT

Get this skill

Download the skill folder (.zip, 2 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "comment-code-generate-a-tutorial" Agent Skill by GitHub Awesome Copilot contributors, from https://github.com/github/awesome-copilot.

1. Fetch the whole folder skills/comment-code-generate-a-tutorial — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/github/awesome-copilot.git 1683f50e94c9fd489191f73d7c8f7e2bd871bd0c
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "comment-code-generate-a-tutorial":
   - Claude Code: ~/.claude/skills/comment-code-generate-a-tutorial/ (all projects) or .claude/skills/comment-code-generate-a-tutorial/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that comment-code-generate-a-tutorial/SKILL.md exists and its frontmatter says name: comment-code-generate-a-tutorial.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/github/awesome-copilot/tree/1683f50e94c9fd489191f73d7c8f7e2bd871bd0c/skills/comment-code-generate-a-tutorial --skill comment-code-generate-a-tutorial

The skill, in full

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

More in Writing & Documents

All Writing & Documents skills →

More from GitHub Awesome Copilot contributors

From github/awesome-copilot at 1683f50, MIT. Install counts from skills.sh.