Awesome-omni-skill 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.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/gh-skill" ~/.claude/skills/diegosouzapw-awesome-omni-skill-gh-skill && rm -rf "$T"
skills/tools/gh-skill/SKILL.mdGitHub 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:
node dist/cli.js --help
Global Options:
: Output results in JSON format. ALWAYS use this flag when parsing output programmatically.-j, --json
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:
node dist/cli.js project-list "my-org" --json
List Repositories
- Command:
node dist/cli.js repo-list <owner> - Usage:
node dist/cli.js repo-list "my-org" --json
Get Project Board Details
- Command:
node dist/cli.js board <owner> <project> - Arguments:
can be the Project Number or the Project Title (case-insensitive).<project> - Options:
(Default: "Status")--status-field <name> - Usage:
Returns project ID, global node ID, and column definitions (including Option IDs needed for moving items).node dist/cli.js board "my-org" "My Project Name" --json
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:
Returns list of items with their Item IDs (for moving/archiving) and Content Node IDs.node dist/cli.js items "my-org" 1 --json
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:
(Default: "Status")--status-field <name>
(Default:--state <open|closed|all>
)open
(Default:--limit <n>
)50
(Optional: narrow search to a single repo)--repo <owner/repo>
- Usage:
Implementation note: uses GitHub GraphQLnode 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
+search
to avoid cases whereIssue.projectItems
listing is incomplete for some integrations.ProjectV2.items
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:
(Default: "Status")--status-field <name> - Usage:
Useful workaround ifnode dist/cli.js item-show "PVTI_..." --json
does not show Issues/PRs due to access restrictions.items
2. 🆕 Issue & Draft Management
List Issues
Goal: List issues in a repository (with pagination).
- Command:
node dist/cli.js issue-list <owner/repo> - Options:
(Default:--state <open|closed|all>
),open
(Default:--limit <n>
)50 - Usage:
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:
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:
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:
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:
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:
node dist/cli.js issue-update "I_kwDO..." --title "New Title" --json
Close Issue
- Command:
node dist/cli.js issue-close <issueNodeId> - Usage:
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:
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:
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:
(Default:--limit <n>
)50 - Usage:
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:
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:
# 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:
(Default: "Status")--status-field <name> - Usage:
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:
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:
node dist/cli.js item-delete "my-org" "Project Alpha" "PVTI_..." --json
Best Practices
- Use JSON: Always append
for robust parsing.--json - Get IDs First: Most mutation commands require Node IDs (strings starting with like
,PVT_
,I_
). UsePVTI_
,project-list
andboard
commands to retrieve these IDs.items - Owner Logic: Owner can be either an Organization or a User. The tool automatically tries both.
Troubleshooting
- "Project not found": Check if
andowner
are correct.project_number - "Resource not accessible by integration": Check your
credentials and GitHub App permissions..env
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
succeeds butissue-add-to-project
does not show the Issue/PR item, useitems
(theitem-show <itemId>
returned byitemId
) to inspect it directly.issue-add-to-project
Recommended Single Workflow (for AI agents)
- List work from the Project (project-centric):
. Note:project-issues <owner> <project> --json
can be a name or a number.<project> - Read issue content by node ID:
.issue-get <issueNodeId> --json - Update / comment:
issue-update <issueNodeId> --title ... --body ... --json
(get context)issue-comments <issueNodeId> --json
(add)issue-comment <issueNodeId> "..." --json
- “Delete” in practice:
- GitHub APIs do not support hard-deleting Issues.
- Use
(closes the issue) and/orissue-delete <issueNodeId>
(removes it from the Project).item-delete <owner> <project> <projectItemId>
- Move on the board using readable status:
item-move <owner> <project> <projectItemId> --status "To Do" --json
- Optional lifecycle:
item-archive <owner> <project> <projectItemId> --json