plugins/lisa/skills/github-read-issue/SKILL.md
Fetches the full scope of a GitHub Issue — metadata, body sections, all comments, native sub-issue parent and children, linked PRs, related issues parsed from `Blocks/Blocked by/Relates to/Duplicates/Cloned from` lines, and any cross-repo references. Produces a consolidated context bundle that downstream agents consume so they never act on an issue in isolation. The GitHub counterpart of lisa:jira-read-ticket.
npx skillsauth add codyswanngt/lisa github-read-issueInstall 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.
Fetch the full scope of the issue AND its related graph. Downstream agents must never act on an issue in isolation — always call this skill first so they see blockers, sibling sub-issues, linked PRs, and historical comments.
This skill is the GitHub counterpart of lisa:jira-read-ticket. The output bundle structure mirrors the JIRA bundle so vendor-neutral consumers can parse either with minimal branching.
Repository name for scoped comments and logs: basename $(git rev-parse --show-toplevel).
Confirm gh auth status succeeds.
Parse $ARGUMENTS. Accept either:
<org>/<repo>#<number> token, ORhttps://github.com/<org>/<repo>/issues/<number> URL.If $ARGUMENTS is just #<number> or <number>, resolve <org>/<repo> from .lisa.config.json (github.org / github.repo).
If the input doesn't parse cleanly, stop and report. Do NOT guess.
gh issue view <number> --repo <org>/<repo> --json number,title,body,state,stateReason,author,assignees,labels,milestone,createdAt,updatedAt,closedAt,url,comments,reactionGroups,projectItems
Extract and preserve:
number, title, state (open/closed), stateReason (completed/not_planned/reopened/null)author (immutable original reporter), assigneestype:<...> (issue type), status:<...> (workflow status), priority:<...>, component:<...>, points:<...>, fix-version:<...>, claude-triaged-<repo>, plus any free-form labelsmilestone (name + url)createdAt, updatedAt, closedAturl (canonical issue URL)Walk the markdown body and capture each top-level ## section by name. Standard sections (per lisa:github-write-issue Phase 3):
Context / Business ValueTechnical ApproachAcceptance Criteria (preserve the Gherkin code-fence verbatim)Out of ScopeTarget Backend EnvironmentSign-in RequiredRepositorySource ArtifactsSource PrecedenceLinksRelationship SearchValidation Journey (preserve verbatim — pass through to verifier agents)Open QuestionsCurrent ProductAny other ## section: capture under extra_sections so callers can see PRDs that adopt non-standard sections.
Fetch ALL comments. Do not truncate. The comments field from gh issue view --json comments includes author, body, createdAt for each. Flag comments that contain:
[<repo>]If pagination matters (issues with hundreds of comments), use gh api repos/<org>/<repo>/issues/<number>/comments --paginate to get the full set.
GitHub native sub-issues are exposed via GraphQL:
query($org:String!,$repo:String!,$number:Int!){
repository(owner:$org,name:$repo){
issue(number:$number){
id
parent { number title state url repository { nameWithOwner } }
subIssues(first: 100) {
nodes {
number title state url
repository { nameWithOwner }
labels(first: 50) { nodes { name } }
assignees(first: 5) { nodes { login } }
}
}
}
}
}
gh api graphql -f query='<above>' -F org=<org> -F repo=<repo> -F number=<number>
Capture:
type: and status:), assignees.If the GraphQL parent / subIssues fields aren't available (older GHES), fall back to parsing Parent: #<n> text in the body and recording sub-issue text references — note "GraphQL sub-issues unavailable" in the bundle so callers know parent-link is text-based.
The body's ## Links section encodes typed relationships. Parse:
| Pattern (case-insensitive) | Link type |
|----------------------------|-----------|
| Blocks #<n> or Blocks <org>/<repo>#<n> | blocks |
| Blocked by #<n> or Blocked by <org>/<repo>#<n> | is blocked by |
| Relates to #<n> or Relates to <org>/<repo>#<n> | relates to |
| Duplicates #<n> or Duplicates <org>/<repo>#<n> | duplicates |
| Cloned from #<n> or Cloned from <org>/<repo>#<n> | clones |
| Resolves #<n> or Closes #<n> or Fixes #<n> (PR refs) | remote-link to PR |
For each parsed reference, fetch the linked issue/PR:
gh issue view <link-number> --repo <link-org>/<link-repo> --json number,title,state,labels,assignees,url
gh pr view <link-number> --repo <link-org>/<link-repo> --json number,title,state,reviewDecision,merged,mergedAt,url,reviewRequests,reviews,comments
For each linked issue, capture: number, title, state, type (from labels), status (from labels), assignees, url.
For each linked PR, capture: number, title, state, mergedAt, reviewDecision, unresolved review comments, url.
Special handling for is blocked by: include the linked issue's PR refs (parse Resolves lines in its body) and fetch each PR's state, so the agent knows whether the blocker is actually shipped.
If the primary issue has a parent sub-issue (i.e., is a Story / Task / Sub-task / Improvement under an Epic):
subIssues query against the parent. Filter out the primary issue itself.status:in-progress with an assignee different from the primary issue's assignee, flag prominently so the caller can avoid duplicate work.If the primary issue IS an Epic, capture all children via Phase 3's subIssues traversal (already done).
Resolves / Cross-references)GitHub's native closingIssuesReferences and timeline give the canonical PR↔Issue relationship:
gh api graphql -f query='query($org:String!,$repo:String!,$number:Int!){repository(owner:$org,name:$repo){issue(number:$number){closedByPullRequestsReferences(first:50){nodes{number title state merged mergedAt url repository{nameWithOwner}}}timelineItems(first:100,itemTypes:[CROSS_REFERENCED_EVENT]){nodes{...on CrossReferencedEvent{source{...on PullRequest{number title state url repository{nameWithOwner}}}}}}}}}' -F org=<org> -F repo=<repo> -F number=<number>
Capture: PR number, title, state, mergedAt, repo, url. Dedupe with PRs found in Phase 4.
For each PR, fetch unresolved review comments via gh pr view <num> --repo <org>/<repo> --json reviews,reviewThreads.
Produce a single structured output that the caller can pass verbatim to downstream agents. Use this format:
# Issue Context: <org>/<repo>#<number>
## Primary Issue
- Ref: <org>/<repo>#<number>
- URL: <url>
- Type: <type from `type:` label>
- Status: <status from `status:` label>
- State: <open|closed> (<stateReason>)
- Priority: <priority from `priority:` label>
- Author: <login>
- Assignees: <list>
- Parent: <parent-ref> — <parent-title> (or "None")
- Milestone: <name> (or "None")
- Labels: <comma-separated raw labels>
- Components: <list from `component:` labels>
- Story points: <n from `points:` label> (or "None")
- Fix version: <from `fix-version:` label or milestone>
- Created: <ISO> | Updated: <ISO> | Closed: <ISO or "—">
### Body sections
#### Context / Business Value
<verbatim>
#### Technical Approach
<verbatim>
#### Acceptance Criteria
<verbatim, including the gherkin fence>
#### Validation Journey
<verbatim or "None">
#### Out of Scope
<verbatim>
#### Source Artifacts / Source Precedence / Links / Relationship Search / Repository / Sign-in Required / Target Backend Environment / Open Questions / Current Product
<each verbatim, omit those not present>
### Comments (<count>)
<chronological comments with author + ISO timestamp + body. Flagged items called out.>
## Sub-issue graph
### Parent
<parent block: ref, title, state, url, type label> (or "None — this is an Epic / unparented")
### Sub-issues (children, <count>)
- <ref> — <type> — <status> — <state> — <title>
- <one-paragraph body summary>
- <FLAG: in progress by other assignee> if applicable
## Linked Issues (parsed from body `## Links`)
### Blocks (<count>)
<per-issue block>
### Is Blocked By (<count>)
<per-issue block; include shipped/not-shipped state of any linked PRs>
### Relates To (<count>)
<per-issue block>
### Duplicates / Clones
<per-issue block>
## Linked Pull Requests
### Native (closedByPullRequestsReferences + cross-references)
- <pr-ref> — <state> — <title> — <reviewDecision>
<body summary + unresolved review comments>
### Body-referenced (`Resolves #<n>`)
<per-PR block>
## Sibling Sub-issues (other children of the same parent, <count>)
- <ref> — <type> — <status> — <assignee> — <title> **[FLAG: in progress by other assignee]**
## Summary for Downstream
- Full graph fetched: <issue-count>
- Blockers still open: <list>
- Related in-flight work: <list>
- Relevant PRs: <list with state>
## casings, missing optional sections) but strict enough that downstream skills can rely on the named sections being present when they exist.documentation
Onboard a user to the project via its LLM Wiki. Interviews the user about themselves in relation to the project, captures that to project-scoped memory only, then gives a guided tour of what the project is and sample questions they can ask. Use when someone is new to the project or asks to be onboarded. Read-mostly — it does not open PRs or write PII into the wiki.
documentation
Migrate an existing, hand-rolled wiki implementation onto the lisa-wiki kernel — phased and compatibility-first, with a strict no-loss guarantee. Use when adopting lisa-wiki in a repo that already has its own wiki/, ingest skills, docs, or roles. Renaming things into the canonical shape is fine; losing functionality or data is not. Ends by running /doctor.
development
Health-check the LLM Wiki. Reports orphan pages, contradictions, stale claims, broken internal links, missing index/log coverage, structure-manifest violations, and secret/tenant leaks. Use periodically or before hardening a wiki. Read-only — it reports findings, it does not fix them.
testing
Ingest source material into the LLM Wiki. With an argument (URL, file path, or prompt) it ingests that one source; with no argument it runs a full ingest across every enabled non-external-write source. Routes to the right connector, then runs the ordered pipeline (source note → synthesis → index → log → verify → state → commit/PR). Use whenever new knowledge should enter the wiki.