Task source github issues

From shogo-labs/shogo-ai · View interactive version

Task source github issues is an AI agent skill from the GitHub repository shogo-labs/shogo-ai. TaskSource adapter backed by the connected GitHub repo — issues, comments, and PR reviews

How to use this skill

Skill file

Task Source — GitHub Issues

Active when this project has a GitHub App connection. apps/api/src/routes/github.ts forwards issues, issue_comment, pull_request_review, and pull_request_review_comment webhooks straight to this project's agent as a rendered message — you never fetch the event yourself.

gh is already authenticated as this environment's GitHub App bot (GH_TOKEN is the installation token). Comments, reviews, and commits from these commands show up as that bot — the same account that opens pull requests. Do not run gh auth login and do not save a personal GITHUB_TOKEN over it.

`comment(ref, body, runId)`

gh issue comment <number> --repo <owner/repo> --body "$(cat <<'EOF'
<body>

<!-- shogo:runId=<runId> -->
EOF
)"

Use gh pr comment for a PR. The HTML comment is invisible on GitHub — don't strip it.

`list()` / `get(ref)`

gh issue view <number> --repo <owner/repo> --json title,body,url,comments,state (or gh pr view).

`transition(ref, label)`

gh issue edit <number> --repo <owner/repo> --add-label "<label>" — optional.

Recovering a `runId`

Already recovered by the API before you're woken, when one exists. If a message lacks one and should have it, gh issue view/gh pr view and look for the marker in the body.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.