Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)16k · #10892

github-gitlab

Ce qu’il fait

Permet à l'assistant d'examiner des dépôts de code et de faire de petites modifications avec vos comptes connectés. Elle s'adresse aux développeurs qui travaillent sur GitHub ou GitLab.

Quand l’utiliser

  • ✓Quand vous demandez l'état des tickets ou des demandes de fusion d'un dépôt.
  • ✓Quand vous voulez une petite modification de code dans un projet hébergé.
  • ✓Quand vous devez examiner l'historique d'une branche ou savoir ce qui a changé.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/yc-software/qm/blob/main/skills-seed/github-gitlab/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Regarde les demandes de fusion ouvertes dans notre dépôt et dis-moi lesquelles attendent une revue.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'assistant utilise les outils en ligne de commande de GitHub ou GitLab avec un compte que vous avez autorisé. Si le compte visé n'est pas clair avant une modification, il vous le demande.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Quel compte l'assistant utilise-t-il ?

Il choisit un compte autorisé pour votre conversation qui correspond à votre demande. Si le bon compte n'est pas clair avant une modification, il vous demande.

Peut-il utiliser un compte que je n'ai pas choisi ?

Non. Il n'utilise pas un accès simplement parce qu'il existe sur l'ordinateur. Si le compte visé n'est pas clair avant une écriture, il demande.

Que se passe-t-il si un compte échoue ?

Il ne passe pas automatiquement à un autre compte. C'est vous qui décidez du compte à utiliser ensuite.

Détails

Description originale de l’auteur

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

repo: yc-software/qm

Popularité

Étoiles GitHub
16k
Position au classement
#10892
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires