본문으로 건너뛰기
Skillpedia
일반 코딩40k · #7039

add-educational-comments

하는 일

이 도구는 코드 파일에 설명을 주석으로 추가합니다. 목표는 배우는 사람이 코드를 더 쉽게 이해하도록 돕는 것입니다.

사용하는 경우

  • ✓새로운 코드를 배우고 싶을 때.
  • ✓오래된 코드를 다시 보며 기억을 되살리고 싶을 때.
  • ✓초보자에게 코드를 공유할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/add-educational-comments/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/add-educational-comments/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 파일 ‘script.py’에 교육용 주석을 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI가 코드를 분석하고, 각 부분이 무엇을 하는지와 왜 그렇게 작성되었는지를 자세히 설명하는 내용을 넣습니다. 이 주석으로 파일 크기가 약 25% 늘어나도록 시도합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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).
  • 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).

…

자주 묻는 질문

파일을 제공하지 않으면 어떻게 되나요?

AI가 주석을 추가할 수 있도록 파일을 달라고 요청합니다.

AI가 코드를 바꾸나요?

아니요, AI는 설명용 주석만 추가합니다. 코드 자체는 바뀌지 않습니다.

주석의 상세 수준을 조절할 수 있나요?

네, ‘Comment Detail’ 설정을 조절해 설명을 더 기본적으로 하거나 더 깊이 있게 만들 수 있습니다.

상세 정보

작성자의 원본 설명

Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7039
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬