Skip to content

Commit f9ae231

Browse files
authored
feat: AI 어시스턴트 GitHub 템플릿(Issue/PR) 설계 적용 (#450) (#451)
* feat: apply github templates to ai assistant workflows and skills (#450) * fix: resolve CodeRabbit review comments on AI templates (#450) * fix: resolve second-round CodeRabbit review comments on manage-skills and PR workflows (#450) * fix: resolve third-round CodeRabbit review comments on manage-skills (#450) * fix: resolve fourth-round CodeRabbit review comments on manage-skills (#450) * fix: resolve fifth-round CodeRabbit review comments (#450)
1 parent a1bbc89 commit f9ae231

9 files changed

Lines changed: 1001 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: github-issue-create
3+
description: 새로운 작업을 시작하기 위해 "GitHub Issue"를 생성합니다. 사용자가 이슈 생성을 명시적으로 요청하거나, 현재 대화 내용을 바탕으로 "이슈로 등록해줘"라고 할 때 사용하십시오.
4+
---
5+
6+
# Create GitHub Issue
7+
8+
Helper skill to draft and create GitHub Issues.
9+
10+
## Instructions
11+
12+
1. **Draft Issue**
13+
- **Context-Based**: If no specific content is provided, analyze the chat history to draft an issue.
14+
- **Format**: Use `markdown`.
15+
- **Language**: **Korean** Only (Technical terms can be English).
16+
- **Structure**: Follow `.github/ISSUE_TEMPLATE` guidelines.
17+
- [FEAT]: `## 📃 요약`, `## 📎 참고 자료 (선택)`
18+
- [BUG]: `## 버그 설명`, `## 버그 발생 상황`, `## 예상 결과`, `## 참고할만한 자료(선택)`
19+
20+
2. **Review**
21+
- Show the draft to the user for approval.
22+
23+
3. **Create**
24+
- Use `run_command` with GitHub CLI:
25+
```bash
26+
gh issue create --title "제목" --body "내용"
27+
```
28+
29+
> **Note**: If `gh` CLI is unavailable, provide the content for the user to copy-paste.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: github-pr-comment-resolve
3+
description: PR 리뷰에 달린 코멘트들을 조회하고, 수정 계획을 세우거나 해결(Resolve) 처리를 돕습니다. "리뷰 반영할게", "PR 코멘트 확인해줘" 등의 상황에서 사용하십시오.
4+
---
5+
6+
# Resolve PR Comments
7+
8+
Systematically address code review comments.
9+
10+
## Steps
11+
12+
1. **Fetch Comments**
13+
- Get PR number: `gh pr view --json number`
14+
- Get unresolved comments using GraphQL:
15+
```bash
16+
gh api graphql -F owner=':owner' -F name=':repo' -F pr=<PR_NUM> -f query='
17+
query($owner: String!, $name: String!, $pr: Int!) {
18+
repository(owner: $owner, name: $name) {
19+
pullRequest(number: $pr) {
20+
reviewThreads(last: 50) {
21+
nodes {
22+
id
23+
isResolved
24+
path
25+
comments(first: 5) { nodes { body } }
26+
}
27+
}
28+
}
29+
}
30+
}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'
31+
```
32+
33+
2. **Analyze & Plan**
34+
- List comments and propose actions (Accept/Question/Refuse).
35+
36+
3. **Fix & Verify**
37+
- Apply code changes.
38+
- Run verification: `./scripts/check-all.sh`.
39+
40+
4. **Push**
41+
- `git push origin HEAD`
42+
43+
5. **Reply & Resolve**
44+
- Reply to comments using `gh api`.
45+
- Resolve threads using GraphQL (advanced) or manual verification.
46+
47+
## Tip
48+
- Always verify before pushing.
49+
- Write replies in Korean.

.agent/skills/github-pr/SKILL.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: github-pr
3+
description: 현재 작업 중인 변경사항을 Git 커밋하고 원격 저장소에 푸시한 뒤, "Pull Request(PR)"를 생성합니다. "작업 끝났어 PR 올려줘", "리뷰 요청할게" 등의 상황에서 사용하십시오.
4+
---
5+
6+
# Create GitHub PR
7+
8+
Creates a Pull Request for the current work.
9+
10+
## Instructions
11+
12+
1. **Branch Check**
13+
- If current branch is `main` or `develop`:
14+
- Ask user for branch name (e.g., `feature/...`).
15+
- `git checkout -b <new-branch>`
16+
- Else: Continue.
17+
18+
2. **Push Changes**
19+
- Ensure all changes are committed.
20+
- `git push origin HEAD`
21+
22+
3. **Draft PR Body**
23+
- **Format**: Markdown (Korean).
24+
- **Content**: Follow `.github/PULL_REQUEST_TEMPLATE.md`.
25+
- `## #️⃣연관된 이슈`: e.g. `close #ID`.
26+
- `## 📝 작업 내용`: Summary of changes (Why & What).
27+
- (Optional) Test/Verification status.
28+
- `## 🙏 리뷰 요구사항 (선택)`: Specific things to review.
29+
- **Show draft to user**.
30+
31+
4. **Create PR**
32+
- `gh pr create --base develop --title "제목" --body "본문"`

0 commit comments

Comments
 (0)