github-gitlab
What it does
Lets the assistant inspect code repositories and make small edits using your connected accounts. It is for developers who work in GitHub or GitLab.
When to use it
- ✓When you ask the assistant to check the status of issues or pull requests in a repository.
- ✓When you want a small code change made in a hosted project.
- ✓When you need the assistant to review branch history or find out what changed.
Skill link
https://github.com/yc-software/qm/blob/main/skills-seed/github-gitlab/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Look at the open pull requests in our repo and tell me which ones are waiting for review.”
5 new skills a week. 1 minute to read.
How it works
The assistant uses the command-line tools for GitHub or GitLab with an account you have authorized. If the intended account is unclear before a change, it asks you.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Which account does the assistant use?
It picks an account authorized for your conversation that fits your request. If the right one is unclear before a change, it asks you.
Can it use an account I did not choose?
No. It does not use a login just because it exists on the computer. If the intended account is unclear before a write, it asks.
What if one account fails?
It does not switch to another account automatically. You decide which account to use next.
Details
Original description by the author
Work with GitHub and GitLab repositories through resident gh/glab/git auth on the agent computer.
repo: yc-software/qm
Popularity
- GitHub stars
- 16k
- Ranking position
- #10892
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
deploy-qm
16kDeploys the QM package to Fly.io, AWS, or Render, then sets up an administrator, connectors, and optionally Slack, following a full deployment checklist.
onboarding
16kWalks a new user through connecting accounts, sharing how they work, choosing a voice, and setting up first help, in one short conversation.
admin
16kLets a verified organization admin inspect or change org-wide settings and other scopes from chat, confirming each change before it is made.
browse
16kDrives a real stealth browser from your shell to act on websites, such as signing in or filling forms, with sign-ins kept per person. Meant for actions, not reading.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.