plugins-copilot/git-tools/skills/git-cli/SKILL.md
Interact with GitHub and Gitea issue trackers and CI systems. List and show issues, file bugs, comment on issues or PRs, list and show pull requests, and fetch CI run logs — all from any repo context without leaving the session.
npx skillsauth add st0nefish/claude-toolkit git-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use native host tooling to interact with the issue tracker and CI system for the
current repository. On GitHub repos, prefer gh. On Gitea or other hosts, use
the equivalent host-native CLI or API tooling if it is available.
# List open issues
gh issue list --limit N --state open --json number,title,state,labels,assignees,url
# Show a single issue with full body and comments
gh issue view <number> --json number,title,body,state,author,labels,assignees,comments,url
# Create an issue (pipe body via heredoc)
gh issue create --title "Title" --label bug --body-file - <<'EOF'
## Problem
...
EOF
# Add a comment
gh issue comment <number> --body-file - <<'EOF'
Progress update...
EOF
gh issue comment <number> --body 'LGTM'
# Read / edit / delete comments — verify a post by its id instead of blind-retrying
gh api repos/{owner}/{repo}/issues/<number>/comments
gh api -X PATCH repos/{owner}/{repo}/issues/comments/<id> -f body='Updated'
gh api -X DELETE repos/{owner}/{repo}/issues/comments/<id>
# Close or reopen
gh issue close <number>
gh issue reopen <number>
Raw
gh api/tea apiis the escape hatch when a higher-level command is missing a capability — it returns the backend's JSON, which you can shape with--jqor pipe throughjq.
# List PRs
gh pr list --state open --limit N --json number,title,state,headRefName,baseRefName,url
# Show a single PR with details
gh pr view <number> --json number,title,body,state,headRefName,baseRefName,author,reviewRequests,comments,url
# Create a PR
gh pr create --title "Title" --head branch --base main --body-file - <<'EOF'
## Summary
...
## Test plan
...
EOF
# Comment on a PR
gh pr comment <number> --body-file - <<'EOF'
Review follow-up...
EOF
# Merge or close
gh pr merge <number> [--squash | --rebase]
gh pr close <number>
# List recent runs
gh run list --limit N --json databaseId,status,workflowName,headBranch,event,startedAt,url
# Show details of a specific run
gh run view <run-id> --json databaseId,status,conclusion,workflowName,headBranch,url,jobs
# Fetch logs
gh run view <run-id> --log
gh run view <run-id> --log-failed
gh repo view --json defaultBranchRef,name,description,url
gh api user --jq '{login: .login}'
Prefer JSON-shaped output when scripting:
{
"number": 42,
"title": "...",
"body": "...",
"state": "open",
"author": "username",
"labels": ["bug", "high-priority"],
"milestone": null,
"assignees": ["username"],
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z",
"url": "https://..."
}
Use --json ... plus jq to normalize the fields you need for the current task.
If the remote is not GitHub, use the equivalent host-native tooling and shape the
output into a similarly small JSON object before reasoning over it.
Pipe the body via a heredoc. No temp file, no cleanup:
gh issue create --title "Bug: ..." --label bug --body-file - <<'EOF'
## Problem
...
## Steps to reproduce
...
EOF
If the host is not GitHub, use the equivalent host-native command or API call and preserve the same heredoc/stdin pattern where possible.
development
Start work from your description — explore the codebase and plan
data-ai
Multi-phase, multi-agent feature workflow: spec → plan → refine → divide → execute → review. Invoke when the user escalates a session-start/session-issue flow to orchestration, or asks to run a non-trivial feature (multiple files, design ambiguity, cross-cutting concerns, correctness-critical paths) through the full multi-agent workflow. For small fixes, prefer session-start.
tools
Browse open issues, pick one, and start work on it
tools
MUST be used for ALL GitHub/Gitea CLI operations. Never invoke `gh`, `tea`, or their subcommands directly — always go through git-cli. Use for issues, PRs, CI runs, repo, and api calls; auto-detects the platform from the git remote.