gh-issues
できること
このスキルは、エージェントをGitHubのIssueから完成したプルリクエストまでを案内します。リポジトリの定型的なバグ修正をエージェントに任せたい開発者向けです。
使う場面
- ✓エージェントに、開いているGitHubのIssueをいくつか選んで、1つを修正してほしいとき。
- ✓修正をGitHubのプルリクエストにしたいとき。
- ✓レビュー担当者がプルリクエストにコメントを残し、エージェントにそれへの返信をさせたいとき。
スキルのリンク
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/gh-issues/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“リポジトリの開いているバグを見て、安全に直せるものを一つ選び、プルリクエストを開いてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはリポジトリとGitHubのログインを確認し、候補のIssueを一覧にして、ブランチで的を絞った変更を行います。依頼された結果に対してのみ、プッシュまたはプルリクエストを開きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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/repoor infer it fromgit 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 ororigin.
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:
- Create
fix/issue-<n>from the verifiedBASE_BRANCHin its isolated working tree. - Reproduce or locate the problem.
- Implement the smallest coherent fix; avoid unrelated refactors.
- Add or update focused tests when appropriate.
- Run the relevant tests, type checks, and build steps.
- R
よくある質問
一覧だけがほしい場合も変更しますか?
いいえ。調べるだけ、分類するだけ、計画するだけの依頼なら、ファイル、ブランチ、Issue、プルリクエストを変更する前に止まります。
フォークにプッシュできますか?
はい。フォークを指定すれば可能です。その場合、元のリポジトリに対してプルリクエストを開きます。
GitHubにはどのツールを使いますか?
GitHubのコマンドラインツールであるghを使い、それにサインインしている必要があります。
詳細
作者による元の説明
Triage GitHub issues, select safe candidates, implement focused fixes, open pull requests, and address actionable review feedback.
repo: EKKOLearnAI/ekko-studio
人気
- GitHubのスター
- 12k
- ランキング
- #11565
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
1password
12kエージェントが、1PasswordのCLIを使って、コマンドや設定ファイルに必要な秘密情報を、チャット、ログ、保存されたファイルに表示せずに取得できるよう支援します。
apple-notes
12kエージェントが、memoコマンドラインツールを使って、Macのメモ(Apple Notes)を作成、検索、読み取り、編集、移動、削除できるよう支援します。
apple-reminders
12kエージェントが、remindctlツールを使って、Macのリマインダーとリマインダーのリストを一覧表示、作成、編集、完了、削除できるよう支援します。
document-to-action-items
12kエージェントが、文書、会議の書き起こし、メモを、タスク、担当者、期限、決定事項の明確な表に変換できるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。