이 퀵스타트에서는 리포지토리에 대한 사용자 지정을 GitHub Copilot하는 방법을 안내합니다. 결국 Copilot , 프로젝트의 규칙을 알고, 일반적인 작업에 대한 전문 에이전트를 가지고 있으며, 프로젝트 컨텍스트를 큐레이팅합니다.
**시나리오:** 설정된 테스트 도구 모음, 코딩 규칙 및 활성 문제를 사용하여 팀의 웹 애플리케이션 리포지토리에서 작업합니다. 첫날부터 코드베이스를 효과적으로 사용하려고 Copilot 합니다.
필수 조건
- Copilot 계획은 Copilot 클라우드 에이전트, GitHub Copilot Pro+, 코파일럿 사업, 또는 Copilot Enterprise를 포함합니다. 자세한 내용은 GitHub Copilot 계획을(를) 참조하세요.
- 클라우드 에이전트 조직 또는 계정에 활성화되었습니다. 자세한 내용은 GitHub Copilot 클라우드 에이전트에 대한 액세스 관리을(를) 참조하세요.
- GitHub 리포지토리에 대한 쓰기 권한입니다.
1단계: 프로젝트의 규칙 교육 Copilot
리포지토리 사용자 지정 지침은 프로젝트의 구조, 코딩 표준 및 코드 빌드 및 테스트 방법에 대한 지속적인 컨텍스트를 제공합니다 Copilot . 리포지토리의 모든 Copilot 상호 작용은 이러한 지침을 자동으로 사용합니다.
Copilot 클라우드 에이전트에게 `copilot-instructions.md` 파일을 생성하도록 요청하십시오.
1. github.com/copilot/agents 이동합니다.
-
프롬프트 필드의 드롭다운 메뉴에서 리포지토리를 선택합니다.
-
다음 프롬프트를 입력합니다.
Text Onboard this repository to Copilot cloud agent by adding a .github/copilot-instructions.md file. Include information about project structure, coding conventions, the test framework, and how to build and run the project.
Onboard this repository to Copilot cloud agent by adding a .github/copilot-instructions.md file. Include information about project structure, coding conventions, the test framework, and how to build and run the project. -
생성된 파일을 검토하고 끌어오기 요청을 병합합니다.
Copilot 이제 채팅, 코드 검토 및 에이전트 세션에서 프로젝트의 규칙을 이해합니다. [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions)을(를) 참조하세요.
2단계: 특수 에이전트 만들기
사용자 지정 에이전트 를 사용하면 되풀이 작업에 대한 포커스가 있는 도우미를 만들 수 있습니다. 이 예제에서는 버그를 진단하고 수정하는 에이전트를 만듭니다.
1. github.com/copilot/agents 이동하여 리포지토리를 선택합니다.
-
프롬프트 필드에서 을 클릭합니다 . 그런 다음 사용자 지정 에이전트 만들기를 클릭합니다.
-
파일 이름을 .로
bug-fixer.agent.md바꿉니다. -
템플릿 콘텐츠를 다음으로 바꿉다.
YAML --- name: Bug Fixer description: Diagnoses and fixes bugs reported in GitHub issues. tools: - read - edit - terminal - search --- You are a bug-fixing specialist. When given a bug report or issue: 1. Reproduce the bug by writing a failing test. 2. Identify the root cause. 3. Fix the code. 4. Verify the fix passes the test and doesn't break existing tests. Always follow the project's testing conventions and coding standards.
--- name: Bug Fixer description: Diagnoses and fixes bugs reported in GitHub issues. tools: - read - edit - terminal - search --- You are a bug-fixing specialist. When given a bug report or issue: 1. Reproduce the bug by writing a failing test. 2. Identify the root cause. 3. Fix the code. 4. Verify the fix passes the test and doesn't break existing tests. Always follow the project's testing conventions and coding standards. -
파일을 커밋하고 기본 분기에 병합합니다.
이제 버그 해결사 에이전트가 에이전트 탭의 에이전트 드롭다운에 표시됩니다. 문제 URL을 붙여넣기 전에 선택하여 포커스가 있는 디버깅 세션을 시작합니다. 에 대한 사용자 지정 에이전트 만들기 Copilot 클라우드 에이전트을(를) 참조하세요.
3단계: 공백으로 프로젝트 컨텍스트 구성
Copilot 스페이스 프로젝트의 특정 영역에 대한 정확한 컨텍스트 Copilot 요구 사항을 큐레이팅할 수 있습니다. 답변은 관련 파일, 문제 및 설명서에 기반합니다.
1. github.com/copilot/spaces 이동하여 공백 만들기를 클릭합니다.
-
공간 이름(예: "API 아키텍처")을 지정하고 소유자를 선택합니다.
-
** <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-plus" aria-label="plus" role="img"><path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"></path></svg>원본 추가**를 클릭한 다음 프로젝트와 관련된 맥락을 추가합니다.
<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-file-code" aria-label="file-code" role="img"><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path></svg> 파일 및 리포지토리 추가** - 아키텍처 문서, API 스키마 또는 키 구성 파일을 추가합니다.
<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-link" aria-label="link" role="img"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg> 파일 연결, 끌어오기 요청 및 문제** - 활성 문제 또는 디자인 토론을 위해 URL을 붙여넣습니다. -
공간의 채팅에서 다음과 같은 질문을 합니다. "API에서 오류 처리에 사용하는 패턴은 무엇인가요?"
Copilot 은 사용자가 큐레이팅한 컨텍스트만 사용하여 답변합니다. [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/copilot-spaces/create-copilot-spaces)을(를) 참조하세요.
다음 단계
[AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-personal-instructions)** - 모든 리포지토리에 적용되는 개인 기본 설정을 지정합니다.
[AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills)** — 에이전트에 새 기능을 추가합니다.
[AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/extend-cloud-agent-with-mcp)** - 에이전트를 외부 도구 및 서비스에 연결합니다.
[AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/copilot-spaces/collaborate-with-others)** - 팀 동료와 공간을 공유합니다.