github-gitlab
Work with GitHub and GitLab repositories through resident gh/glab/git auth on the agent computer.
- License 许可
- MIT
- 最近更新
- 2026-08-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- github-gitlab
- description
- Work with GitHub and GitLab repositories through resident gh/glab/git auth on the agent computer.
- requiredCapabilities
- [ "egress:github.com", "egress:api.github.com", "egress:gitlab.com" ]
03 SKILL.md 正文
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.
This is a resident-machine-auth connector. Prefer the native CLIs (gh, glab) and
git, using the agent computer's logged-in state. Do not ask the user to paste tokens,
and do not rely on proxy bearer-token injection.
One exception: if the system prompt lists a shared org credential for a Git remote, the
token is broker-only and never appears on the computer. For clone/fetch/push, use the
core-hosted smart HTTP remote documented in skills/use-shared-credential/SKILL.md.
That keeps normal git workflows working while core injects the upstream credential
server-side.
Logging in
If gh auth status (or glab auth status) fails, log in with the native command:
gh auth login
The platform recognizes this device-flow login and runs it as a durable process
session (ADR 0002): it prints the one-time code + verification URL immediately and keeps
polling on the agent computer across turns — it does not block your turn or die at
teardown. Give the user the code and URL, ask them to approve in the browser, then say
"done". On the next turn, run gh auth status (or gh auth login again): the platform
reports you're authenticated once approval completes, and the login self-expires if the
user takes too long (just run gh auth login again to restart). GitLab is the same with
glab auth login.
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.
04 同仓库更多 Skills
use-shared-credential
When you need to call a service the org has a SHARED credential for (a SERP/search key, a paid-API key, a data-vendor feed, a Git remote) — and the platform has told you that credential is available to this conversation — make the call BY PROXY through the credential broker. You never see the secret; the core stamps it onto the outbound request for you.
taste-skill
Design taste and process for anything a person will look at in a browser — landing page, dashboard, prototype, deck. The default design driver for a browsable artifact, with an anti-slop playbook for the visual language.
publish
Publish a long-lived internal web app, site, or dashboard from the agent computer. Scope-bound (only the owner's scope, plus whoever you share it with, can reach it), immutable versions with rollback, a stable friendly link. No public URL.
popular-web-designs
54 real-world design systems (Stripe, Linear, Vercel, Notion, Apple…) as ready-to-paste HTML/CSS — exact colors, typography, components, and spacing for styling a page after a known brand.
morning-digest
Assemble and deliver one short morning digest for the person who owns the cron — what changed overnight in the sources they already connected, and what it means for their day.
memory
Deliberately search, add to, or curate your long-term memory with the `memory` tool — beyond the automatic recall/capture every turn already does. Use when asked who someone is or what they're working on, when you learn a durable fact worth keeping now, or when your notebook holds stale or wrong entries you should clean up.