About github
A GitHub workflow skill for agents using `gh` to manage issues and pull requests, inspect review discussions, and check Actions security. It includes specific guidance for review-thread resolution and minimum-age Action updates.
Key features
- 01Issue, PR, and release workflows with `gh`
- 02Read general PR comments and review threads
- 03Resolve or reopen review threads with GraphQL
- 04Check Actions versions and audit security
Use cases
- 01Inspect PR discussion and unresolved review feedback
- 02Resolve a review thread when explicitly requested
- 03Update GitHub Actions and run a security audit
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ sammcj/ agentic-coding --skill githubAfter installing, type/githubin Claude Code to confirm it loaded.
Details
From the project READMEGitHub
- Use the
ghCLI tool for interacting with GitHub (issues, PRs, releases) and performghcommands outside of the sandbox - When when working with Github Actions, you should always check for and use the latest Actions versions that are at least 7 days old, you can use
pinact run -update --min-age 7to achieve this - For the general PR conversation timeline (not line-level review comments), use
gh pr view --commentsor the REST/issues/N/commentsendpoint - When you need to read line-level review comments with their resolved state (e.g. triaging bot or human review feedback), fetch them via GraphQL in one call:
gh api graphql -f query='query { repository(owner: "OWNER", name: "REPO") { pullRequest(number: N) { reviewThreads(first: 100) { nodes { id isResolved path line comments(first: 1) { nodes { author { login } body } } } } } } }' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)' - When explicitly asked by the user to "close" or "resolve" a review comment, resolve the thread via the GraphQL mutation (do not reply to a comment unless instructed):
gh api graphql -f query='mutation($id: ID!) { resolveReviewThread(input: { threadId: $id }) { thread { isResolved } } }' -f id="PRRT_..." - Thread IDs start with
PRRT_. UseunresolveReviewThreadto reopen - You can audit Github Actions security by running
zizmor .
Comments
Markdown supported