Aller au contenu
Skillpedia
Programmation générale12k · #11565

gh-issues

Ce qu’il fait

Cette skill guide l'agent depuis un ticket GitHub jusqu'à une demande de fusion finalisée. Elle s'adresse aux développeurs qui veulent que l'agent prenne en charge les corrections de bogues courantes dans un dépôt.

Quand l’utiliser

  • ✓Quand vous voulez que l'agent choisisse quelques tickets GitHub ouverts et en corrige un.
  • ✓Quand vous voulez qu'une correction devienne une demande de fusion sur GitHub.
  • ✓Quand un relecteur laisse des commentaires sur une demande de fusion et que vous voulez que l'agent y réponde.

Lien du skill

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/gh-issues/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/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/gh-issues/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

“Regardez les bogues ouverts de notre dépôt, choisissez-en un qui peut être corrigé sans risque et ouvrez une demande de fusion.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vérifie le dépôt et la connexion GitHub, liste les tickets candidats et effectue une modification ciblée sur une branche. Il ne pousse ou n'ouvre une demande de fusion que pour le résultat que vous avez demandé.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

GitHub issues to pull requests

Use this workflow for issue-to-PR work. Use gh for GitHub data and mutations, git for the local checkout, and delegate_task only when an isolated subtask is genuinely useful.

Read the bundled github Skill before executing this workflow. GitHub writes, commits, pushes, PR creation, and review replies must stay within the outcome the user requested.

Inputs

  • Repository: accept owner/repo or infer it from git remote get-url origin.
  • Optional filters: label, milestone, assignee, state, and limit.
  • Optional fork: push a branch to a named fork and open the PR against the source repository.
  • Dry run: list candidates and planned actions without changing local or remote state.
  • Reviews only: skip issue selection and process explicitly scoped PR feedback.

If the user asked only to inspect, triage, or plan, stop before changing files, branches, issues, or PRs.

1. Resolve and verify the repository

git remote get-url origin
git status --short
gh auth status
gh repo view OWNER/REPO --json nameWithOwner,defaultBranchRef

Derive and keep explicit:

  • SOURCE_REPO: repository containing the issue.
  • PUSH_REPO: fork when explicitly requested, otherwise the source.
  • BASE_BRANCH: source default branch unless the user named another.
  • PUSH_REMOTE: configured fork remote or origin.

Stop if GitHub authentication is unavailable. Never search local configuration files for tokens, print gh auth token, or ask the user to paste a token into chat.

Do not mix issue work with unrelated uncommitted changes. If the checkout is dirty, preserve those changes and either ask the user how to proceed or create a dedicated git worktree after confirming the repository and base branch.

In fork mode, show the exact source, fork, base branch, and remote before adding or changing a git remote.

2. Fetch candidates

gh issue list --repo "$SOURCE_REPO" --state open --limit 10 \
  --json number,title,labels,url,body,assignees,milestone

Add only the filters the user requested. gh issue list excludes pull requests. If there are no matches, report that and stop. For a dry run, show a compact candidate list with issue number, title, labels, and URL, then stop.

3. Avoid duplicate work

For each candidate, look for an existing fix before selecting it:

gh pr list --repo "$SOURCE_REPO" --search "$SOURCE_REPO#<n>" --state open \
  --json number,url,title,headRefName
gh pr list --repo "$SOURCE_REPO" --head "fix/issue-<n>" --state open \
  --json number,url
gh api "repos/$PUSH_REPO/branches/fix/issue-<n>" >/dev/null

Skip an issue that already has an open PR or branch unless the user asked to continue that work. Read the issue body and relevant code before deciding it is actionable. Prefer small, reproducible issues with a clear acceptance condition; flag ambiguous or security-sensitive issues for clarification.

When several issues match and the user did not already select them, present the candidates and ask which issue numbers to fix.

4. Isolate the work

Default to one issue at a time. Ekko subagents share the workspace, so never let concurrent workers checkout different branches in the same working tree.

For one issue, either implement locally or call delegate_task in foreground mode with a self-contained goal and all required context. For independent parallel work, first create one dedicated git worktree per issue and give each background subagent its exact worktree path. Use background mode only when enabled and useful; progress is visible to the user, but the parent must not pretend it synchronously collected a result.

The task context must include:

  • issue URL, title, body, labels, and acceptance conditions;
  • source and push repositories, base branch, push remote, and fork mode;
  • isolated working directory and target branch fix/issue-<n>;
  • required tests and proof;
  • the authorized mutation boundary, including whether commit, push, and PR creation were requested.

Delegated subagents cannot ask the user questions or delegate recursively. Resolve ambiguity before delegation.

5. Implement and prove the fix

For each selected issue:

  1. Create fix/issue-<n> from the verified BASE_BRANCH in its isolated working tree.
  2. Reproduce or locate the problem.
  3. Implement the smallest coherent fix; avoid unrelated refactors.
  4. Add or update focused tests when appropriate.
  5. Run the relevant tests, type checks, and build steps.
  6. R
Questions fréquentes

Modifiera-t-elle quoi que ce soit si je veux seulement une liste ?

Non. Si vous demandez seulement d'inspecter, de trier ou de planifier, elle s'arrête avant de modifier des fichiers, des branches, des tickets ou des demandes de fusion.

Peut-elle pousser la correction vers un fork ?

Oui, si vous nommez un fork. Elle ouvre alors la demande de fusion vers le dépôt d'origine.

Quel outil utilise-t-elle pour GitHub ?

Elle utilise l'outil en ligne de commande GitHub, gh, et vous devez être connecté à celui-ci.

Détails

Description originale de l’auteur

Triage GitHub issues, select safe candidates, implement focused fixes, open pull requests, and address actionable review feedback.

repo: EKKOLearnAI/ekko-studio

Popularité

Étoiles GitHub
12k
Position au classement
#11565
Licence
—
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