본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)16k · #10892

github-gitlab

하는 일

이 스킬은 어시스턴트가 연결된 계정을 써서 코드 저장소를 살펴보고 작은 수정을 하게 합니다. GitHub나 GitLab에서 일하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓저장소의 이슈나 풀 리퀘스트 상태를 확인해 달라고 요청할 때.
  • ✓호스팅된 프로젝트에 작은 코드 변경이 필요할 때.
  • ✓브랜치 이력을 검토하거나 무엇이 바뀌었는지 찾아야 할 때.

스킬 링크

https://github.com/yc-software/qm/blob/main/skills-seed/github-gitlab/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“우리 저장소에서 열려 있는 풀 리퀘스트를 보고, 검토를 기다리는 것이 무엇인지 알려 주세요.”

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

작동 방식

어시스턴트는 승인된 계정으로 GitHub나 GitLab의 명령줄 도구를 씁니다. 변경 전에 어떤 계정을 써야 할지 불분명하면 사용자에게 묻습니다.

기술 내용 (원본 SKILL.md)

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

GitHub / GitLab

Use this skill when the user asks to inspect repos, issues, pull requests, merge requests, code history, branches, or to make a small code change in a hosted repo.

Choose the account deliberately

Use the current credential manifest to choose an account authorized for this conversation that fits the user's intent. Run commands with execute and an explicit sandbox_id; keep that ID throughout checkout, edits, checks, and push. Personal and shared accounts are both valid choices; neither is an automatic fallback when the other fails. If the intended account is unclear before a write, ask. Do not infer permission from a login merely being present on the computer.

  • Personal login: use the authorized gh, glab, or Git login. Check the active provider account (for example, gh api user --jq .login) and the Git transport's auth configuration; a CLI API identity alone does not prove which account Git will use.
  • Shared org credential: if listed in the prompt, select its slug and use the core-hosted smart HTTP remote in the use-shared-credential skill. This uses the configured shared account, even when a personal OAuth connector is live. Its name is an admin label, not a verified upstream username.
  • Connected app: use only advertised capabilities. API access does not by itself establish native Git transport access or configure the CLI's active login.

For an existing checkout, inspect the remote and applicable credential-helper, SSH, proxy, and HTTP-header configuration. A reused checkout may still select a previous account. Commit author metadata is separate from transport identity. Resolve an unknown identity before a write; do not probe access by pushing.

Logging in

Use the native login only after an explicit authentication rejection. A TLS timeout, connection reset, rate limit, or GitHub server error is not evidence of logout or permission expiry. Do not consume another credential grant to repair transport.

For a confirmed missing or expired GitHub or GitLab login, follow the interactive-login skill: it runs gh auth login / glab auth login in a temporary home as a background job, relays the code and URL, and saves the login to the keychain so later commands use it through execute.credentials.

Read-only work

Check auth and inspect repo state:

gh auth status
gh repo view OWNER/REPO --json name,description,url,defaultBranchRef
gh issue list --repo OWNER/REPO --state open --limit 20
gh pr list --repo OWNER/REPO --state open --limit 20

For GitLab:

glab auth status
glab repo view GROUP/PROJECT
glab issue list --repo GROUP/PROJECT
glab mr list --repo GROUP/PROJECT

Use git log, git show, and git diff for codebase-change summaries. Cite commit hashes, PR/MR numbers, and links.

Checkout and edits

Clone or fetch only the repo the user asked for:

gh repo clone OWNER/REPO repo
cd repo
git checkout -b codex/small-change

Keep changes scoped. Run the repo's tests. If a push or PR/MR creation is requested, prepare the branch and summary first.

Writes require approval

Pushing branches, creating PRs/MRs, merging, closing issues, editing labels, changing repo settings, releases, or workflows are writes. Ask for approval before running the write command.

After approval:

git push -u origin codex/small-change
gh pr create --repo OWNER/REPO --title "..." --body-file pr.md

For GitLab:

git push -u origin codex/small-change
glab mr create --repo GROUP/PROJECT --title "..." --description-file mr.md

Report the final URL and leave enough context for review.

Wait for GitHub CI

Use the bundled helper instead of a bare gh pr checks --watch or a handwritten shell loop. Use the absolute directory reported by the skill read in place of <skill dir>. It is one blocking watcher process, not repeated agent turns:

node "<skill dir>/scripts/watch-ci.mjs" --repo OWNER/REPO --pr NUMBER --head REVIEWED_HEAD_SHA

Capture the full head SHA from gh pr view NUMBER --repo OWNER/REPO --json headRefOid before review. Use that same SHA for the watcher and the final merge gate. Start the watcher with execute using the selected sandbox_id and background:true, then subscribe with background action watch and its returned process_id. Keep one watcher per PR. Set the process lifetime longer than the helper's 30-minute deadline; use --timeout-ms for a different bounded deadline. Us

자주 묻는 질문

어시스턴트는 어떤 계정을 쓰나요?

대화에 승인된 계정 중 요청에 맞는 것을 고릅니다. 변경 전에 맞는 계정이 불분명하면 사용자에게 묻습니다.

내가 고르지 않은 계정을 쓸 수 있나요?

아닙니다. 컴퓨터에 존재한다는 이유만으로 로그인 정보를 쓰지 않습니다. 쓰기 전에 대상 계정이 불분명하면 묻습니다.

계정 하나가 실패하면 어떻게 하나요?

다른 계정으로 자동 전환하지 않습니다. 다음에 어떤 계정을 쓸지는 사용자가 정합니다.

상세 정보

작성자의 원본 설명

Work with GitHub and GitLab repositories through resident gh/glab/git auth on the agent computer.

repo: yc-software/qm

인기도

GitHub 스타
16k
순위
#10892
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬