본문으로 건너뛰기
Skillpedia
글쓰기40k · #7312

oo-component-documentation

하는 일

이 도구는 소프트웨어 컴포넌트 문서를 만들거나 업데이트하도록 돕습니다. 코드를 분석해 컴포넌트가 어떻게 작동하는지, 어떤 부분으로 이루어졌는지, 어떻게 쓰는지를 명확하게 설명하며, 확립된 표준을 따릅니다.

사용하는 경우

  • ✓새 코드를 처음으로 문서화해야 할 때.
  • ✓기존 코드를 바꾸고 문서도 업데이트해야 할 때.
  • ✓프로젝트 문서가 품질 기준을 따르도록 하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/oo-component-documentation/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“'src/auth' 폴더에 있는 'UserAuth' 컴포넌트의 문서를 만들어 주세요.”

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

작동 방식

도구는 소스 코드를 살펴 컴포넌트의 구조, 함수, 관계를 파악합니다. 그다음 표준 템플릿을 사용해 Markdown 문서 파일을 만들고, 정보가 정확하고 최신 상태인지 확인합니다.

기술 내용 (원본 SKILL.md)

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

OO Component Documentation

Create new documentation for an object-oriented component or update an existing component documentation file by analyzing the current implementation.

Determine the mode first

Choose the workflow before writing anything:

  1. Use update mode when the user provides an existing documentation Markdown file, points to a docs path, or explicitly asks to refresh or revise existing documentation. Follow references/update-mode.md.
  2. Use create mode when the user provides a source file or folder, points to a component path, or asks to generate documentation from code. Follow references/create-mode.md.
  3. If both code and an existing documentation file are provided, treat the existing documentation file as the output target and use the current source code as the source of truth.
  4. If the request is ambiguous, infer the mode from the path type whenever possible: existing Markdown documentation file means update mode; source/component path means create mode.

Documentation standards

  • DOC-001: Follow C4 Model documentation levels (Context, Containers, Components, Code)
  • DOC-002: Align with Arc42 software architecture documentation template
  • DOC-003: Comply with IEEE 1016 Software Design Description standard
  • DOC-004: Use Agile Documentation principles (just enough documentation that adds value)
  • DOC-005: Target developers and maintainers as the primary audience

Shared analysis guidance

  • ANA-001: Determine the primary component boundary and whether the input represents a folder, file, or existing documentation target
  • ANA-002: Examine source code files for class structures, inheritance, composition, and interfaces
  • ANA-003: Identify design patterns, architectural decisions, and integration points
  • ANA-004: Document or refresh public APIs, interfaces, dependencies, and usage patterns
  • ANA-005: Capture method parameters, return values, asynchronous behavior, exceptions, and lifecycle concerns
  • ANA-006: Assess performance, security, reliability, maintainability, and extensibility characteristics
  • ANA-007: Infer data flow, collaboration patterns, and relationships with surrounding components
  • ANA-008: Keep the documentation grounded in the implementation; avoid inventing behavior that is not supported by the code

Shared output requirements

  • Use assets/documentation-template.md as the canonical section checklist and baseline structure.
  • Keep the output in Markdown with a clear heading hierarchy, tables where useful, code blocks for examples, and Mermaid diagrams when architecture relationships need to be visualized.
  • Make examples and interface descriptions match the current implementation instead of generic placeholders.
  • Include only information that can be supported by the code, project structure, configuration, or clearly stated assumptions.
  • When source coverage is incomplete, document the limitation explicitly instead of guessing.

Language-specific optimizations

  • LNG-001: C#/.NET - async/await, dependency injection, configuration, disposal, options patterns
  • LNG-002: Java - Spring framework, annotations, exception handling, packaging, dependency injection
  • LNG-003: TypeScript/JavaScript - modules, async patterns, types, npm dependencies, runtime boundaries
  • LNG-004: Python - packages, virtual environments, type hints, testing, dependency management

Error handling

  • ERR-001: If the path does not exist, explain what path was expected and whether the skill needs a source path or an existing documentation file
  • ERR-002: If no relevant source files are found, document the gap and suggest the likely locations to inspect next
  • ERR-003: If the documentation target cannot be inferred from the request, state the ambiguity and ask for the missing path only when inference is not possible
  • ERR-004: If the code uses non-standard architectural patterns, document the custom approach rather than forcing it into a generic pattern
  • ERR-005: If source access is incomplete, continue with available evidence and clearly call out any unsupported sections

Workflow

  1. Determine whether the task is create mode or update mode.
  2. Inspect the component implementation and any related files needed to understand its public surface area and internal structure.

…

자주 묻는 질문

소프트웨어에서 '컴포넌트'는 무엇인가요?

특정 작업을 수행하는 프로그램의 독립적인 부분입니다. 전체 소프트웨어를 이루는 조립 블록이라고 생각하면 됩니다.

문서가 왜 중요한가요?

문서는 소프트웨어가 어떻게 작동하는지, 어떻게 쓰고 유지하는지 설명합니다. 다른 개발자와 미래의 자신이 코드를 더 쉽게 이해하고 다루도록 돕습니다.

'객체지향'은 무엇을 뜻하나요?

코드를 데이터와 기능을 함께 묶은 '객체'로 구성하는 프로그래밍 방식입니다. 소프트웨어를 구조화하는 흔한 방법입니다.

상세 정보

작성자의 원본 설명

Create or update standardized object-oriented component documentation using a shared template plus mode-specific guidance for new and existing docs.

repo: github/awesome-copilot

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬