add-educational-comments
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/boleyn/add-educational-commentsWhat This Skill Does
The add-educational-comments skill transforms static code into interactive, annotated learning resources. As an OpenClaw AI agent capability, it parses your target source files and injects meaningful, context-aware commentary. It acts as an expert mentor, guiding users through the 'why' behind specific programming patterns, syntax choices, and architecture decisions. Whether you are a beginner looking to grasp fundamental logic or an advanced practitioner reviewing complex implementations, this skill scales the depth of explanations to match your configured proficiency level. By systematically increasing the file length to meet the 125% educational quota, it ensures that your codebase becomes self-documenting and pedagogical.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/boleyn/add-educational-comments
Ensure that you have the latest version of the ClawKit CLI installed and that your API keys are configured to allow the agent to read and write to your local development workspace.
Use Cases
This skill is perfect for developers maintaining open-source libraries who want to lower the barrier to entry for new contributors. It is also an essential tool for technical leads conducting code reviews or onboarding sessions, as it allows them to automate the creation of annotated reference material. Students and lifelong learners can use it to 'wrap' existing exercises with helpful context, turning raw code into a structured study guide. It effectively handles multi-language support, respecting indentation requirements for strict languages like Python or YAML while maintaining original file encoding and line-ending standards.
Example Prompts
- "OpenClaw, please add educational comments to my main.py script so that a junior developer can understand the asynchronous patterns I implemented."
- "Add educational comments to the data_parser.js file. I am at an intermediate level, so focus on best practices for error handling and performance optimization."
- "Process server_config.yaml with the educational comments skill. Use line number referencing so I can easily cross-reference the notes with the documentation I am writing."
Tips & Limitations
To maximize the quality of the annotations, ensure your user profile is updated with your current programming experience level. The skill respects a hard limit of 400 new lines to prevent bloating production files unnecessarily. When dealing with files larger than 1,000 lines, the agent intelligently optimizes for clarity over volume to avoid overwhelming the reader. Always review the output in a version control system (like Git) before committing, as the added comments are meant to augment, not replace, standard documentation practices. Avoid running this skill on minified files or binary data as the formatting logic is strictly designed for source code structure.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-boleyn-add-educational-comments": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
xiaolongxia-assistant
OpenClaw 插件开发助手,输出可运行的插件骨架、安装命令和调试步骤。
Ocms Ai Prompt Generator
Skill by boleyn
ai-prompt-engineering-safety-review
Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content.
xiaolongxia-assistant
OpenClaw 插件开发助手,输出可运行的插件骨架、安装命令和调试步骤。
ab-test-setup
When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," or "hypothesis." For tracking implementation, see analytics-tracking.