yonatangross/orchestkit/github-operations
Claude Code and agent skill by yonatangross/orchestkit
- community
Checking that the SKILL.md file is still in the repository.
gh CLI and REST patterns for issues, PRs, milestones and Projects v2. Use when managing GitHub issues, PRs or projects.
Install
npx vskill@latest install yonatangross/orchestkit/github-operationsSKILL.md
The same SKILL.md was published earlier as yonatangross/orchestkit/github-operations.
GitHub Operations
Comprehensive GitHub CLI (gh) operations for project management, from basic issue creation to advanced Projects v2 integration and milestone tracking via REST API.
Overview
- Creating and managing GitHub issues and PRs
- Working with GitHub Projects v2 custom fields
- Managing milestones (sprints, releases) via REST API
- Automating bulk operations with
gh - Running GraphQL queries for complex operations
CRITICAL: Task Management is MANDATORY (CC 2.1.16)
BEFORE doing ANYTHING else, create tasks to track progress:
Quick Reference
Issue Operations
PR Operations
Tip (CC 2.1.27): Sessions created viagh pr createare automatically linked to the PR. Use--from-prto resume with full PR context.
Milestone Operations (REST API)
Footgun:gh issue edit --milestonetakes a NAME (string), not a number. The REST API uses a NUMBER (integer). Never pass a number to--milestone. LoadRead("references/cli-vs-api-identifiers.md").
Projects v2 Operations
JSON Output Patterns
Key Concepts
Milestone vs Epic
| Milestones | Epics | |
|---|---|---|
| Time-based (sprints, releases) | Topic-based (features) | |
| Has due date | No due date | |
| Progress bar | Task list checkbox | |
| Native REST API | Needs workarounds |
Rule: Use milestones for "when", use parent issues for "what".
Projects v2 Custom Fields
Projects v2 uses GraphQL for setting custom fields (Status, Priority, Domain). Basic gh project commands work for listing and adding items, but field updates require GraphQL mutations.
Rules Quick Reference
| Rule | Impact | What It Covers | |
|---|---|---|---|
issue-tracking-automation (load rules/issue-tracking-automation.md) | HIGH | Auto-progress from commits, sub-task completion, session summaries | |
issue-branch-linking (load rules/issue-branch-linking.md) | MEDIUM | Branch naming, commit references, PR linking patterns |
Batch Issue Creation
When creating multiple issues at once (e.g., seeding a sprint), use an array-driven loop:
Tip: Capture the created issue number with--json number --jq '.number'so you can reference it immediately (e.g., add to Projects v2, link in PRs).
Best Practices
- Always use `--json` for scripting - Parse with
--jqfor reliability - Non-interactive mode for automation - Use
--title,--bodyflags - Check rate limits before bulk operations -
gh api rate_limit. On CC ≥ 2.1.116, the Bash tool surfaces a rate-limit hint in the transcript whenghhits 403 — treat that hint as authoritative and back off, don't blind-retry. Before 2.1.116, agents had no signal and would burn all retry attempts in ~13 s. - Use heredocs for multi-line content -
--body "$(cat <<'EOF'...EOF)" - Link issues in PRs -
Closes #123,Fixes #456— GitHub auto-closes on merge - Use ISO 8601 dates -
YYYY-MM-DDTHH:MM:SSZfor milestone due_on - Close milestones, don't delete - Preserve history
- `--milestone` takes NAME, not number - Load
Read("references/cli-vs-api-identifiers.md") - Never `gh issue close` directly - Comment progress with
gh issue comment; issues close only when their linked PR merges to the default branch
2026 CLI changes — what to know
gh-copilot extension is retired
GitHub retired the gh-copilot extension in October 2025. Copilot is now a standalone binary:
Install from cli.github.com/copilot or via Homebrew (brew install github/gh/copilot). Authentication is shared with gh auth when both are installed.
gh agent-task (2026)
New subcommand for managing Copilot coding-agent tasks:
Pairs with the REST endpoint POST /repos/{owner}/{repo}/agent-tasks for CI-driven task creation.
Sub-issues (native, 2026)
Sub-issues are now a native GitHub concept — no extension required:
The old gh-sub-issue third-party extension still works but is superseded. GraphQL sub-issue mutations still require the issue node_id (see references/cli-vs-api-identifiers.md).
Related Skills
ork:create-pr- Create pull requests with proper formatting and review assignmentsork:review-pr- Comprehensive PR review with specialized agentsork-extras:release-management- GitHub release workflow with semantic versioning and changelogsork:commit- Stacked-PR workflow and rebase coordination live insrc/skills/commit/rules/(stacked-pr-workflow,stacked-pr-rebase). There is nostacked-prsskill.ork:issue-progress-tracking- Automatic issue progress updates from commits
Key Decisions
| Decision | Choice | Rationale | |
|---|---|---|---|
| CLI vs API | gh CLI preferred | Simpler auth, better UX, handles pagination automatically | |
| Output format | --json with --jq | Reliable parsing for automation, no regex parsing needed | |
| Milestones vs Epics | Milestones for time | Milestones have due dates and progress bars, epics for topic grouping | |
| Projects v2 fields | GraphQL mutations | gh project commands limited, GraphQL required for custom fields | |
| Milestone lifecycle | Close, don't delete | Preserves history and progress tracking |
Upstream coverage (do not restate)
These topics are documented first-party. Fetch them there instead of growing a copy in this skill.
| Topic | Source | |
|---|---|---|
gh issue bulk create / edit / list loops, templates, transfer and pin | https://cli.github.com/manual/gh_issue | |
| Cross-repo label create / edit / clone | https://cli.github.com/manual/gh_label | |
| Org-wide issue search qualifiers | https://cli.github.com/manual/gh_search_issues | |
| Milestone REST CRUD: endpoints, payload fields, list filters and sorting | https://docs.github.com/en/rest/issues/milestones | |
| Projects v2 field mutations, value unions, field and option ID discovery | https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects | |
| Sub-issue endpoint payloads and pagination | https://docs.github.com/en/rest/issues/sub-issues | |
| Rate-limit headers, reset semantics, secondary limits | https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api |
What still stays ours, in full, in this skill: PR review / merge gating including the statusCheckRollup array fold (references/pr-workflows.md); GraphQL queries, pagination, and node-id lookup (references/graphql-api.md); the CLI-NAME vs API-NUMBER identifier mapping for milestones and Projects v2 (references/cli-vs-api-identifiers.md); the sub-issue quick reference above; and the rate-limit pre-flight guard (examples/automation-scripts.md). House rules with their rationale are collected in references/ork-delta.md.
References
Load on demand with Read("references/<file>"):
| File | Content | |
|---|---|---|
ork-delta.md | House rules: hook contracts, close-don't-delete, rate-limit discipline, the file-set contract | |
pr-workflows.md | Reviews, merge strategies, auto-merge, statusCheckRollup folding | |
graphql-api.md | Complex queries, pagination, bulk operations | |
cli-vs-api-identifiers.md | NAME vs NUMBER footguns, milestone/project ID mapping | |
issue-management.md | Pointer stub: issue delta plus upstream links | |
milestone-api.md | Pointer stub: milestone delta plus upstream links | |
projects-v2.md | Pointer stub: Projects v2 delta plus upstream links |
Examples
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/skills/github-operations/SKILL.md
Popularity
- Repository stars
- 180
- Repository forks
- 15
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yonatangross/orchestkit/github-operations)