/repo-documentation:add-educational-commentsfrom repo-documentation
Adds educational comments to code files for learning, preserving encoding, line endings, indentation, syntax, and build correctness. Useful when users want to annotate files for teaching or inline explanations.
Ships in repo-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Transform one or more existing code files into learning resources by inserting instructional comments that match the user's knowledge level without changing program behavior.
Use $ARGUMENTS and attached context to find target files and configuration. If no file is provided, respond exactly: Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.
Act as an expert educator and technical writer. Adapt explanations for beginners, intermediate learners, and advanced practitioners while keeping the tone encouraging and instructional.
| Learner level | Comment emphasis |
|---|---|
| Beginner | Foundational syntax, control flow, naming, and why common idioms exist. |
| Intermediate | Practical design choices, best practices, error handling, and maintainability. |
| Advanced | Performance tradeoffs, architecture, language internals, and deeper alternatives. |
Suggest improvements only when they meaningfully support understanding.
| Parameter | Values | Default | Behavior |
|---|---|---|---|
| File Name | One or more file paths | Required | Target file or files. |
| Comment Detail | 1-3 | 2 | Depth of each explanation. |
| Repetitiveness | 1-3 | 2 | How often to reinforce similar concepts. |
| Educational Nature | Text | Computer Science | Domain lens for explanations. |
| User Knowledge | 1-3 | 2 | General software engineering familiarity. |
| Educational Level | 1-3 | 1 | Familiarity with the target language or framework. |
| Line Number Referencing | yes/no | yes | Prefix each new comment with Note <number> when yes. |
| Nest Comments | yes/no | yes | Indent comments inside code blocks when language syntax requires it. |
| Fetch List | URL list | https://peps.python.org/pep-0263/ | Optional authoritative references for language-specific constraints. |
Interpret obvious typos such as Line Numer = no from context. If new options appear, apply the educational role sensibly instead of failing.
Repetitiveness calls for it.Line Number Referencing = yes, prefix new comments as Note 1, Note 2, and so on, and use note numbers to connect related explanations.| File state | Target |
|---|---|
| New target file | Increase total line count to 125% of original length using educational comments only. |
| Any file | Never add more than 400 educational comment lines. |
| File over 1,000 lines | Aim for no more than 300 educational comment lines. |
| Previously processed file | Revise and improve existing notes; do not chase the 125% increase again. |
$ARGUMENTS, and user text.[user]
> /add-educational-comments
[agent]
> Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.
[user]
> /add-educational-comments #file:output_name.py Comment Detail = 1, Repetitiveness = 1, Line Numer = no
Interpret Line Numer = no as Line Number Referencing = no and add fewer, shorter comments while maintaining preservation rules.
Treat numeric scales as ordered, where higher numbers mean greater knowledge or intensity. Interpret CS/SE as Computer Science and Software Engineering familiarity, and merge defaults with any user-specified configuration. Preserve typo handling for Line Numer as an alias for Line Number Referencing.
## Educational comments result
**Status:** updated | needs file | blocked
**Files:** <paths>
**Configuration:** Comment Detail=<1-3>, Repetitiveness=<1-3>, Educational Nature=<value>, User Knowledge=<1-3>, Educational Level=<1-3>, Line Number Referencing=<yes/no>, Nest Comments=<yes/no>
### Changes
| File | Original lines | Final lines | Comment lines added or revised | Notes |
| --- | --- | --- | --- | --- |
| `<path>` | `<count>` | `<count>` | `<count>` | `<teaching focus>` |
### Validation
- Encoding preserved: pass | fail
- Line endings preserved: pass | fail
- Syntax/build-sensitive structure preserved: pass | fail
- Line count rule satisfied: pass | fail
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/comment-code-generate-a-tutorialTransform a Python script into a polished beginner-friendly project by refactoring code, adding instructional comments, and generating a complete README.md tutorial. Use this skill when asked to explain, comment, clean up, teach, or turn a Python script into a tutorial project./convert-plaintext-to-mdConvert plaintext or generic text documentation into well-structured Markdown while preserving source content and applying explicit instructions, documented options, or a converted guide file. Use when asked to convert a file to Markdown, finalize Markdown formatting, apply header patterns, use a guide document, or target GitHub, StackOverflow, VS Code, GitLab, or CommonMark rendering./create-agentsmdnpx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin repo-documentationOther plugins' skills for the same job