본문으로 건너뛰기
Skillpedia
문서화40k · #7152

csharp-docs

하는 일

이 에이전트는 C# 코드에 문서 주석을 추가해 이해하기 쉽게 돕습니다. 주석이 모범 사례를 따르도록 해서, 다른 프로그래머(또는 미래의 여러분)가 코드가 무엇을 하는지 파악할 수 있게 합니다.

사용하는 경우

  • ✓다른 사람과 공유할 C# 코드를 작성할 때.
  • ✓다른 개발자가 사용할 라이브러리나 API를 만들 때.
  • ✓내 C# 코드의 명확성과 유지보수성을 높이고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/csharp-docs/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“모범 사례를 따라 내 C# 코드의 공개(public) 및 내부(internal) 멤버에 XML 문서를 추가해 주세요.”

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

작동 방식

에이전트는 C# 코드를 분석하고, 클래스, 메서드, 속성 앞처럼 적절한 위치에 XML 주석(`///`)을 넣습니다. `<summary>`, `<remarks>`, `<param>` 같은 특정 태그를 사용해 코드의 목적, 세부 사항, 매개변수를 설명합니다.

기술 내용 (원본 SKILL.md)

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

C# Documentation Best Practices

  • Public members should be documented with XML comments.
  • It is encouraged to document internal members as well, especially if they are complex or not self-explanatory.

Guidance for all APIs

  • Use <summary> to provide a brief, one sentence, description of what the type or member does. Start the summary with a present-tense, third-person verb.
  • Use <remarks> for additional information, which can include implementation details, usage notes, or any other relevant context.
  • Use <see langword> for language-specific keywords like null, true, false, int, bool, etc.
  • Use <c> for inline code snippets.
  • Use <example> for usage examples on how to use the member.
    • Use <code> for code blocks. <code> tags should be placed within an <example> tag. Add the language of the code example using the language attribute, for example, <code language="csharp">.
  • Use <see cref> to reference other types or members inline (in a sentence).
  • Use <seealso> for standalone (not in a sentence) references to other types or members in the "See also" section of the online docs.
  • Use <inheritdoc/> to inherit documentation from base classes or interfaces.
    • Unless there is major behavior change, in which case you should document the differences.

Methods

  • Use <param> to describe method parameters.
    • The description should be a noun phrase that doesn't specify the data type.
    • Begin with an introductory article.
    • If the parameter is a flag enum, start the description with "A bitwise combination of the enumeration values that specifies...".
    • If the parameter is a non-flag enum, start the description with "One of the enumeration values that specifies...".
    • If the parameter is a Boolean, the wording should be of the form "<see langword="true" /> to ...; otherwise, <see langword="false" />.".
    • If the parameter is an "out" parameter, the wording should be of the form "When this method returns, contains .... This parameter is treated as uninitialized.".
  • Use <paramref> to reference parameter names in documentation.
  • Use <typeparam> to describe type parameters in generic types or methods.
  • Use <typeparamref> to reference type parameters in documentation.
  • Use <returns> to describe what the method returns.
    • The description should be a noun phrase that doesn't specify the data type.
    • Begin with an introductory article.
    • If the return type is Boolean, the wording should be of the form "<see langword="true" /> if ...; otherwise, <see langword="false" />.".

Constructors

  • The summary wording should be "Initializes a new instance of the <Class> class [or struct].".

Properties

  • The <summary> should start with:
    • "Gets or sets..." for a read-write property.
    • "Gets..." for a read-only property.
    • "Gets [or sets] a value that indicates whether..." for properties that return a Boolean value.
  • Use <value> to describe the value of the property.
    • The description should be a noun phrase that doesn't specify the data type.
    • If the property has a default value, add it in a separate sentence, for example, "The default is <see langword="false" />".
    • If the value type is Boolean, the wording should be of the form "<see langword="true" /> if ...; otherwise, <see langword="false" />. The default is ...".

Exceptions

  • Use <exception cref> to document exceptions thrown by constructors, properties, indexers, methods, operators, and events.
  • Document all exceptions thrown directly by the member.
  • For exceptions thrown by nested members, document only the exceptions users are most likely to encounter.
  • The description of the exception describes the condition under which it's thrown.
    • Omit "Thrown if ..." or "If ..." at the beginning of the sentence. Just state the condition directly, for example "An error occurred when accessing a Message Queuing API."
자주 묻는 질문

C#의 XML 주석이란 무엇인가요?

`<summary>` 같은 XML 태그를 사용해 코드가 무엇을 하는지 설명하는 C# 코드의 특수한 주석입니다. 도구가 이 주석을 사용해 자동으로 문서를 생성할 수 있습니다.

내부(internal) 멤버를 왜 문서화하나요?

꼭 필요한 것은 아니지만, 내부 멤버를 문서화하면 복잡하거나 직관적이지 않은 부분을 설명해 유지보수하는 사람이 이해하기 쉬워집니다.

`<inheritdoc/>`란 무엇인가요?

부모 멤버(기본 클래스나 인터페이스 등)의 문서를 현재 멤버로 복사하라고 컴파일러에 알려 주는 태그입니다. 동작이 같을 때 코드 중복을 피하게 해 줍니다.

상세 정보

작성자의 원본 설명

Ensure that C# types are documented with XML comments and follow best practices for documentation.

repo: github/awesome-copilot

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬