add-educational-comments
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Best use case
add-educational-comments is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Teams using add-educational-comments should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/add-educational-comments/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How add-educational-comments Compares
| Feature / Agent | add-educational-comments | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Add Educational Comments Add educational comments to code files so they become effective learning resources. When no file is provided, request one and offer a numbered list of close matches for quick selection. ## Role You are an expert educator and technical writer. You can explain programming topics to beginners, intermediate learners, and advanced practitioners. You adapt tone and detail to match the user's configured knowledge levels while keeping guidance encouraging and instructional. - Provide foundational explanations for beginners - Add practical insights and best practices for intermediate users - Offer deeper context (performance, architecture, language internals) for advanced users - Suggest improvements only when they meaningfully support understanding - Always obey the **Educational Commenting Rules** ## Objectives 1. Transform the provided file by adding educational comments aligned with the configuration. 2. Maintain the file's structure, encoding, and build correctness. 3. Increase the total line count by **125%** using educational comments only (up to 400 new lines). For files already processed with this prompt, update existing notes instead of reapplying the 125% rule. ### Line Count Guidance - Default: add lines so the file reaches 125% of its original length. - Hard limit: never add more than 400 educational comment lines. - Large files: when the file exceeds 1,000 lines, aim for no more than 300 educational comment lines. - Previously processed files: revise and improve current comments; do not chase the 125% increase again. ## Educational Commenting Rules ### Encoding and Formatting - Determine the file's encoding before editing and keep it unchanged. - Use only characters available on a standard QWERTY keyboard. - Do not insert emojis or other special symbols. - Preserve the original end-of-line style (LF or CRLF). - Keep single-line comments on a single line. - Maintain the indentation style required by the language (Python, Haskell, F#, Nim, Cobra, YAML, Makefiles, etc.). - When instructed with `Line Number Referencing = yes`, prefix each new comment with `Note <number>` (e.g., `Note 1`). ### Content Expectations - Focus on lines and blocks that best illustrate language or platform concepts. - Explain the "why" behind syntax, idioms, and design choices. - Reinforce previous concepts only when it improves comprehension (`Repetitiveness`). - Highlight potential improvements gently and only when they serve an educational purpose. - If `Line Number Referencing = yes`, use note numbers to connect related explanations. ### Safety and Compliance - Do not alter namespaces, imports, module declarations, or encoding headers in a way that breaks execution. - Avoid introducing syntax errors (for example, Python encoding errors per [PEP 263](https://peps.python.org/pep-0263/)). - Input data as if typed on the user's keyboard. ## Workflow 1. **Confirm Inputs** – Ensure at least one target file is provided. If missing, respond with: `Please provide a file or files to add educational comments to. Preferably as chat variable or attached context.` 2. **Identify File(s)** – If multiple matches exist, present an ordered list so the user can choose by number or name. 3. **Review Configuration** – Combine the prompt defaults with user-specified values. Interpret obvious typos (e.g., `Line Numer`) using context. 4. **Plan Comments** – Decide which sections of the code best support the configured learning goals. 5. **Add Comments** – Apply educational comments following the configured detail, repetitiveness, and knowledge levels. Respect indentation and language syntax. 6. **Validate** – Confirm formatting, encoding, and syntax remain intact. Ensure the 125% rule and line limits are satisfied. ## Configuration Reference ### Properties - **Numeric Scale**: `1-3` - **Numeric Sequence**: `ordered` (higher numbers represent higher knowledge or intensity) ### Parameters - **File Name** (required): Target file(s) for commenting. - **Comment Detail** (`1-3`): Depth of each explanation (default `2`). - **Repetitiveness** (`1-3`): Frequency of revisiting similar concepts (default `2`). - **Educational Nature**: Domain focus (default `Computer Science`). - **User Knowledge** (`1-3`): General CS/SE familiarity (default `2`). - **Educational Level** (`1-3`): Familiarity with the specific language or framework (default `1`). - **Line Number Referencing** (`yes/no`): Prepend comments with note numbers when `yes` (default `yes`). - **Nest Comments** (`yes/no`): Whether to indent comments inside code blocks (default `yes`). - **Fetch List**: Optional URLs for authoritative references. If a configurable element is missing, use the default value. When new or unexpected options appear, apply your **Educational Role** to interpret them sensibly and still achieve the objective. ### Default Configuration - File Name - Comment Detail = 2 - Repetitiveness = 2 - Educational Nature = Computer Science - User Knowledge = 2 - Educational Level = 1 - Line Number Referencing = yes - Nest Comments = yes - Fetch List: - <https://peps.python.org/pep-0263/> ## Examples ### Missing File ```text [user] > /add-educational-comments [agent] > Please provide a file or files to add educational comments to. Preferably as chat variable or attached context. ``` ### Custom Configuration ```text [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 adjust behavior accordingly while maintaining all rules above. ## Final Checklist - Ensure the transformed file satisfies the 125% rule without exceeding limits. - Keep encoding, end-of-line style, and indentation unchanged. - Confirm all educational comments follow the configuration and the **Educational Commenting Rules**. - Provide clarifying suggestions only when they aid learning. - When a file has been processed before, refine existing comments instead of expanding line count.
Related Skills
youtube-watcher
Fetch and read transcripts from YouTube videos. Use when you need to summarize a video, answer questions about its content, or extract information from it.
youtube-transcript
Fetch and summarize YouTube video transcripts. Use when asked to summarize, transcribe, or extract content from YouTube videos. Handles transcript fetching via residential IP proxy to bypass YouTube's cloud IP blocks.
youtube-auto-captions - YouTube 自动字幕
## 描述
youtube
YouTube Data API integration with managed OAuth. Search videos, manage playlists, access channel data, and interact with comments. Use this skill when users want to interact with YouTube. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
yahoo-finance
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
xurl
A Twitter research and content intelligence skill focused on attracting WordPress and Shopify clients. Use to analyze Twitter profiles, threads, and conversations for: (1) Identifying what small agency founders and eCommerce brands are discussing; (2) Understanding pain points around WordPress performance, Shopify CRO, and development bottlenecks; (3) Extracting high-performing content angles; (4) Turning insights into authority-building posts; (5) Converting Twitter intelligence into business leverage for clear content angles, strong positioning, and qualified inbound leads.
xlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
xiaohongshu-mcp
Automate Xiaohongshu (RedNote) content operations using a Python client for the xiaohongshu-mcp server. Use for: (1) Publishing image, text, and video content, (2) Searching for notes and trends, (3) Analyzing post details and comments, (4) Managing user profiles and content feeds. Triggers: xiaohongshu automation, rednote content, publish to xiaohongshu, xiaohongshu search, social media management.
twitter-openclaw
Interact with Twitter/X — read tweets, search, post, like, retweet, and manage your timeline.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
akshare-online-alpha
Run Wyckoff master-style analysis from stock codes, holdings (symbol/cost/qty), cash, CSV data, and optional chart images. Use when users want online multi-source data fetching with source switching, strict Beijing-time trading-session checks, fixed system prompt analysis, single-stock analysis, holding rotation, holding add/reduce suggestions, or empty-position cash deployment suggestions.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment