gh-skill
Manage GitHub Projects (V2), Issues, and Boards. View project boards, create/move issues, comment, and track status via CLI. Use when you need to interact with GitHub Projects.
Best use case
gh-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Manage GitHub Projects (V2), Issues, and Boards. View project boards, create/move issues, comment, and track status via CLI. Use when you need to interact with GitHub Projects.
Teams using gh-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gh-skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gh-skill Compares
| Feature / Agent | gh-skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Manage GitHub Projects (V2), Issues, and Boards. View project boards, create/move issues, comment, and track status via CLI. Use when you need to interact with GitHub Projects.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# GitHub Project Skill This skill provides a comprehensive CLI wrapper for the GitHub GraphQL API, enabling efficient management of GitHub Projects V2 and Issues directly from the terminal. ## Usage The main entry point is `dist/cli.js` (relative to the project root). You can verify it works with: ```bash node dist/cli.js --help ``` **Global Options:** - `-j, --json`: Output results in JSON format. **ALWAYS use this flag** when parsing output programmatically. Note: In `--json` mode, the CLI prints **only JSON** to stdout. ### 0. 🔍 Discovery **Goal:** Explore owner resources and project structure. #### List Projects - **Command:** `node dist/cli.js project-list <owner>` - **Usage:** ```bash node dist/cli.js project-list "my-org" --json ``` #### List Repositories - **Command:** `node dist/cli.js repo-list <owner>` - **Usage:** ```bash node dist/cli.js repo-list "my-org" --json ``` #### Get Project Board Details - **Command:** `node dist/cli.js board <owner> <project>` - **Arguments:** `<project>` can be the Project Number or the Project Title (case-insensitive). - **Options:** `--status-field <name>` (Default: "Status") - **Usage:** ```bash node dist/cli.js board "my-org" "My Project Name" --json ``` _Returns project ID, global node ID, and column definitions (including Option IDs needed for moving items)._ ### 1. 📋 Board Items **Goal:** List all items (Issues/PRs/Drafts) on the board with their current status. - **Command:** `node dist/cli.js items <owner> <project>` - **Usage:** ```bash node dist/cli.js items "my-org" 1 --json ``` _Returns list of items with their Item IDs (for moving/archiving) and Content Node IDs._ #### List Issues Linked to a Project (Project-Centric) **Goal:** One consistent way for AI agents: start from Project, get issues + both IDs (Issue node ID and Project item ID). - **Command:** `node dist/cli.js project-issues <owner> <project>` - **Options:** - `--status-field <name>` (Default: "Status") - `--state <open|closed|all>` (Default: `open`) - `--limit <n>` (Default: `50`) - `--repo <owner/repo>` (Optional: narrow search to a single repo) - **Usage:** ```bash node dist/cli.js project-issues "my-org" "Trionix Lab" --state open --limit 50 --json # optionally scope to one repo for speed/limits node dist/cli.js project-issues "my-org" 1 --repo "my-org/my-repo" --json ``` _Implementation note: uses GitHub GraphQL `search` + `Issue.projectItems` to avoid cases where `ProjectV2.items` listing is incomplete for some integrations._ #### Show Project Item by Item ID **Goal:** Inspect a specific project item when listing is incomplete. - **Command:** `node dist/cli.js item-show <itemId>` - **Options:** `--status-field <name>` (Default: "Status") - **Usage:** ```bash node dist/cli.js item-show "PVTI_..." --json ``` _Useful workaround if `items` does not show Issues/PRs due to access restrictions._ ### 2. 🆕 Issue & Draft Management #### List Issues **Goal:** List issues in a repository (with pagination). - **Command:** `node dist/cli.js issue-list <owner/repo>` - **Options:** `--state <open|closed|all>` (Default: `open`), `--limit <n>` (Default: `50`) - **Usage:** ```bash node dist/cli.js issue-list "my-org/my-repo" --state open --limit 50 --json ``` #### Create Issue - **Command:** `node dist/cli.js issue-create <owner/repo> "<title>"` - **Options:** `--body "<body>"` - **Usage:** ```bash node dist/cli.js issue-create "my-org/my-repo" "Fix bug" --body "Details" --json ``` #### Create Draft - **Command:** `node dist/cli.js draft-create <owner> <project> "<title>"` - **Options:** `--body "<body>"` - **Usage:** ```bash node dist/cli.js draft-create "my-org" "Product Roadmap" "Task title" --body "Details" --json ``` #### Show Issue - **Command:** `node dist/cli.js issue-show <owner/repo> <issue_number>` - **Usage:** ```bash node dist/cli.js issue-show "my-org/my-repo" 123 --json ``` #### Get Issue by Node ID (Agent-Friendly) **Goal:** Fetch issue content when you already have `issue.id` (node ID). - **Command:** `node dist/cli.js issue-get <issueNodeId>` - **Usage:** ```bash node dist/cli.js issue-get "I_kwDO..." --json ``` #### Update Issue - **Command:** `node dist/cli.js issue-update <issueNodeId>` - **Options:** `--title <text>`, `--body <text>` - **Usage:** ```bash node dist/cli.js issue-update "I_kwDO..." --title "New Title" --json ``` #### Close Issue - **Command:** `node dist/cli.js issue-close <issueNodeId>` - **Usage:** ```bash node dist/cli.js issue-close "I_kwDO..." --json ``` #### Delete Issue (Behavior) **Note:** GitHub APIs do not support hard-deleting Issues. This command closes the issue. - **Command:** `node dist/cli.js issue-delete <issueNodeId>` - **Usage:** ```bash node dist/cli.js issue-delete "I_kwDO..." --json ``` ### 3. 💬 Collaboration **Goal:** Add comments to issues. - **Command:** `node dist/cli.js issue-comment <issueNodeId> "Comment text"` - **Usage:** ```bash node dist/cli.js issue-comment "I_kwDO..." "Done" --json ``` #### List Comments **Goal:** Get existing comments for an issue (for agents that need context). - **Command:** `node dist/cli.js issue-comments <issueNodeId>` - **Options:** `--limit <n>` (Default: `50`) - **Usage:** ```bash node dist/cli.js issue-comments "I_kwDO..." --limit 50 --json ``` ### 4. 🚚 Kanban Operations #### Add Issue to Project - **Command:** `node dist/cli.js issue-add-to-project <owner> <project> <issueNodeId>` - **Usage:** ```bash node dist/cli.js issue-add-to-project "my-org" "Project Name" "I_kwDO..." --json ``` #### Move Item - **Command:** `node dist/cli.js issue-move <itemId> <projectId> <statusFieldId> <optionId>` - **Usage:** ```bash # IDs are obtained from 'board' and 'items' commands node dist/cli.js issue-move "PVTI_..." "PVT_..." "PVTSSF_..." "f75ad846" --json ``` #### Move Item (Agent-Friendly) **Goal:** Move an item without dealing with option IDs. - **Command:** `node dist/cli.js item-move <owner> <project> <itemId> --status "<Status Name>"` - **Options:** `--status-field <name>` (Default: "Status") - **Usage:** ```bash node dist/cli.js item-move "my-org" "Product Roadmap" "PVTI_..." --status "In progress" --json ``` #### Archive Item - **Command:** `node dist/cli.js item-archive <owner> <project> <itemId>` - **Options:** `--unarchive` - **Usage:** ```bash node dist/cli.js item-archive "my-org" 1 "PVTI_..." --json ``` #### Delete Item from Project - **Command:** `node dist/cli.js item-delete <owner> <project> <itemId>` - **Usage:** ```bash node dist/cli.js item-delete "my-org" "Project Alpha" "PVTI_..." --json ``` ## Best Practices 1. **Use JSON**: Always append `--json` for robust parsing. 2. **Get IDs First**: Most mutation commands require Node IDs (strings starting with like `PVT_`, `I_`, `PVTI_`). Use `project-list`, `board` and `items` commands to retrieve these IDs. 3. **Owner Logic**: Owner can be either an Organization or a User. The tool automatically tries both. ## Troubleshooting - **"Project not found"**: Check if `owner` and `project_number` are correct. - **"Resource not accessible by integration"**: Check your `.env` credentials and GitHub App permissions. ### Notes on Project Items Visibility - A Project V2 may contain items that the current token cannot fully view. GitHub can return items as **REDACTED** when the integration lacks permissions to view the underlying Issue/PR. - If `issue-add-to-project` succeeds but `items` does not show the Issue/PR item, use `item-show <itemId>` (the `itemId` returned by `issue-add-to-project`) to inspect it directly. ### Recommended Single Workflow (for AI agents) 1. List work from the Project (project-centric): `project-issues <owner> <project> --json`. _Note: `<project>` can be a name or a number._ 2. Read issue content by node ID: `issue-get <issueNodeId> --json`. 3. Update / comment: - `issue-update <issueNodeId> --title ... --body ... --json` - `issue-comments <issueNodeId> --json` (get context) - `issue-comment <issueNodeId> "..." --json` (add) 4. “Delete” in practice: - GitHub APIs do not support hard-deleting Issues. - Use `issue-delete <issueNodeId>` (closes the issue) and/or `item-delete <owner> <project> <projectItemId>` (removes it from the Project). 5. Move on the board using readable status: - `item-move <owner> <project> <projectItemId> --status "To Do" --json` 6. Optional lifecycle: - `item-archive <owner> <project> <projectItemId> --json`
Related Skills
bgo
Automated Blender build-go workflow. Automatically builds, removes old version, installs, enables, and launches Blender with your extension/add-on. Use when you want to quickly test changes, execute complete build-to-launch cycle, or run custom packaging scripts with automatic Blender launch.
github-search
Search GitHub for repos, code, and usage examples using gh CLI. Capabilities: repo discovery, code search, finding library usage patterns, issue/PR search. Actions: search, find, discover repos/code/examples. Keywords: gh, github, search repos, search code, find examples, how to use library, stars, language filter. Use when: finding repositories, searching code patterns, discovering how libraries are used, exploring open source.
github-repo-skill
Guide for creating new GitHub repos and best practice for existing GitHub repos, applicable to both code and non-code projects
github-repo-analysis
Analyze GitHub repositories to extract insights about commit frequency, outstanding contributors, release timeline, and project health metrics. Use when users request repository analysis, commit history investigation, contributor identification, release tracking, or development activity assessment for any GitHub project.
github-pr-review-comments
Comprehensive workflow for managing GitHub PR review comments using gh CLI and GraphQL API. Use when asked to address review comments, find unreplied comments, reply to review threads, or resolve/unresolve review conversations. Supports finding ALL comments across pagination boundaries, replying to threads, and resolving conversations.
github-navigator
GitHub operations via gh CLI. CRITICAL: Always use instead of WebFetch for ANY github.com URL. Use when user provides GitHub URL, says 'facebook/react', 'show README', 'list issues', 'check PR', 'clone repo', 'analyze this repo', 'understand the architecture', 'how is X structured', 'explore the codebase'. For deep analysis of external repos, clones locally.
github-issues
Manage GitHub issues - create, edit, close, comment, assign, and delegate to Copilot. Uses GitHub MCP.
github-issue-triage
Analyze GitHub issues for the Nx repository and provide assignment recommendations based on technology stack, team expertise, and priority classification rules.
github-issue-resolver
Strategically resolves GitHub Actions failures, failed pull requests, and Dependabot issues using the gh CLI with intelligent analysis and automated fixes.
github-issue-creator
Creates well-structured GitHub issues for the MCPSpy project using the gh CLI tool. Use when asked to create issues, report bugs, or document features. Follows conventional naming with feat/chore/fix prefixes and maintains appropriate detail levels.
github-copilot-agent-tips-and-tricks
Tips and Tricks for Working with GitHub Copilot Agent PRs
github-commit
Create a well-formatted git commit following best practices