#964·skills

setup-matt-pocock-skills: `gh issue view --comments` returns the comments and not the issue body

Author: Simon-AI-codingCreated Aug 26, 2026Updated Sep 30, 2026
Labelsbug

skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md tells agents to read an issue with gh issue view <number> --comments (lines 8 and 34, and gh pr view --comments at 22). That flag replaces the body with the comment thread; it does not add to it. So every repo set up from this template gets a read command that never returns the requirements, and /code-review's Spec axis in those repos reviews against nothing while looking normal (the sub-agent quietly fetches the issue itself, or doesn't).

Measured with gh 2.88.1 against a live repo:

Command Result
gh issue view 98 --comments (0 comments) rc=0, 0 bytes
gh issue view 78 --comments (3 comments) rc=0, comments only, no body
gh issue view <ref> --json number,title,body,comments rc=0, body and comments, for 98, #98, a full URL, and a PR number

Fix (four lines, one file), ready on a branch — PRs from outside collaborators appear to be disabled on this repo, so I couldn't open one:

https://github.com/mattpocock/skills/compare/main...okqixiaobao727-design:skills:fix/issue-tracker-github-read-body

  • Read an issue → gh issue view <ref> --json number,title,body,labels,comments, with one sentence saying why --comments alone is wrong.
  • Read a PR → the same --json form.
  • The gh pr view → gh issue view fallback for a bare #42 is removed: gh issue view resolves a PR number natively.
  • The second "Run gh issue view --comments" under routing points at the corrected command instead of repeating it.

I have not measured glab, so issue-tracker-gitlab.md is untouched.