Pythonスクリプトに解説コメントを追加し、包括的なREADME.mdチュートリアルを生成することで、初心者向けのプロジェクトへとリファクタリングします。
- GitHubスター
- 41,038
- ファイル
- 1
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
- 許可されたツール
- —
comment-code-generate-a-tutorial skillは何をしますか
comment-code-generate-a-tutorialはAgent Skillsです。 Pythonスクリプトに解説コメントを追加し、包括的なREADME.mdチュートリアルを生成することで、初心者向けのプロジェクトへとリファクタリングします。.
skillのSKILL.mdから生成された要約。
comment-code-generate-a-tutorial skill について
このツールの主な機能は、生のPythonスクリプトを新しい開発者のための教育リソースに変換することです。既存のスクリプトを取り込み、PEP 8スタイルガイドを適用することで、コードが標準的なPythonのベストプラクティスに従うようにします。不明瞭な変数名や関数名をリネームすることで、学習者が理解しやすい、元のロジックをよりクリーンにしたバージョンを作成します。
ユーザーが単一のファイルを完全なプロジェクトパッケージに変換する必要がある場合、エージェントはこのSKILLをロードすべきです。このプロセスでは、単なる構文の説明ではなく、ロジックの背後にある考え方を説明する解説コメントを注入します。最後に、プロジェクトの概要、セットアップ手順、コードの仕組みの解説、および使用例のスニペットを含むREADME.mdファイルを生成します。これにより、単純なスクリプトが構造化された学習モジュールへと変わります。
エージェントができること
- 1スクリプトを教育用プロジェクトに変換単一のPythonスクリプトを、解説コメントとチュートリアルを備えた、洗練された初心者向けのプロジェクトに変換します。
- 2包括的なプロジェクトドキュメントの作成セットアップ手順、ロジックの解説、使用例を含むREADME.mdファイルを生成します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
comment-code-generate-a-tutorial skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにcomment-code-generate-a-tutorial skillをインストールする
~/.claude/skills/comment-code-generate-a-tutorial/SKILL.md
$ npx degit github/awesome-copilot/skills/comment-code-generate-a-tutorial ~/.claude/skills/comment-code-generate-a-tutorialClaude Code (project)にcomment-code-generate-a-tutorial skillをインストールする
.claude/skills/comment-code-generate-a-tutorial/SKILL.md
$ npx degit github/awesome-copilot/skills/comment-code-generate-a-tutorial .claude/skills/comment-code-generate-a-tutorialCodexにcomment-code-generate-a-tutorial skillをインストールする
~/.agents/skills/comment-code-generate-a-tutorial/SKILL.md
$ npx degit github/awesome-copilot/skills/comment-code-generate-a-tutorial ~/.agents/skills/comment-code-generate-a-tutorialGemini CLIにcomment-code-generate-a-tutorial skillをインストールする
~/.gemini/skills/comment-code-generate-a-tutorial/SKILL.md
$ npx degit github/awesome-copilot/skills/comment-code-generate-a-tutorial ~/.gemini/skills/comment-code-generate-a-tutorialClaude.aiにcomment-code-generate-a-tutorial skillをインストールする
npx degit github/awesome-copilot/skills/comment-code-generate-a-tutorial comment-code-generate-a-tutorial && zip -r comment-code-generate-a-tutorial.zip comment-code-generate-a-tutorial # claude.ai → Customize → Skills → + → Create skill → Upload a skill → comment-code-generate-a-tutorial.zip
自動チェック
実行日 2026年11月14日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能github/awesome-copilot/skills/comment-code-generate-a-tutorial is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/comment-c ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/comment-c ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/comment-c ↗合格
SKILL.md
GitHubで表示Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial.
-
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
-
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
-
Generate a tutorial as a
README.mdfile
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
このスキルのファイル
1comment-code-generate-a-tutorial skillに関する質問
Claude Codeにcomment-code-generate-a-tutorial skillをインストールするには
npx degit github/awesome-copilot/skills/comment-code-generate-a-tutorial ~/.claude/skills/comment-code-generate-a-tutorialを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
comment-code-generate-a-tutorial skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
どのようなコーディング規約に従いますか?
リファクタリング後のコードがPEP 8スタイルガイドに従い、標準的なPythonのベストプラクティスを適用していることを保証します。
生成されるチュートリアルにはどのようなセクションが含まれますか?
生成されるREADME.mdには、プロジェクトの概要、セットアップ手順、ロジックの解説、使用例、およびオプションのサンプル出力が含まれます。