github-gitlab
できること
このスキルは、アシスタントが接続されたアカウントを使って、コードリポジトリを確認し、小さな編集を行えるようにします。GitHubやGitLabで作業する開発者向けです。
使う場面
- ✓リポジトリの課題やプルリクエストの状況を確認させたいとき。
- ✓ホストされたプロジェクトで小さなコード変更を行わせたいとき。
- ✓ブランチの履歴を確認したり、何が変わったかを調べたりする必要があるとき。
スキルのリンク
https://github.com/yc-software/qm/blob/main/skills-seed/github-gitlab/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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-credentialskill. 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
よくある質問
アシスタントはどのアカウントを使いますか?
あなたの会話で承認されていて、依頼に合うアカウントを選びます。変更の前に適切なアカウントが不明確な場合は、あなたに尋ねます。
私が選んでいないアカウントを使えますか?
いいえ。コンピューター上に存在するという理由だけでそのログインを使うことはありません。書き込みの前にアカウントが不明確であれば、尋ねます。
1つのアカウントが失敗したら?
別のアカウントに自動的に切り替えることはありません。次に使うアカウントはあなたが決めます。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
deploy-qm
16kQMパッケージをFly.io、AWS、Renderのいずれかにデプロイし、完全なデプロイ手順に従って、管理者、コネクタ、必要に応じてSlackを設定します。
onboarding
16k仕事の進め方を伝え、接続したいツールを設定し、話し方を選び、最初の手助けを整えるまでを、ひとつの短い会話で新しいユーザーに案内します。
admin
16k認証された組織の管理者が、チャットから組織全体の設定などを確認または変更できるようにします。各変更は実行前に確認されます。
browse
16kシェルから本物のステルスブラウザを操作し、サインインやフォーム入力などのWeb上の作業を行います。サインインは人ごとに保持されます。読み取りではなく操作のためのものです。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。