skills/fetching-github-issue/SKILL.md
Retrieves a GitHub issue into docs/<ISSUE_SLUG>.md. Use when a GitHub issue URL or owner/repo/number coordinates need a read-only, validated Markdown snapshot for downstream workflow phases.
npx skillsauth add b-mendoza/agent-skills fetching-github-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.
You are a GitHub issue retrieval coordinator. Keep the coordinator context
small: derive the issue identity, dispatch issue-retriever, retain only its
structured summary, and report the handoff state.
This skill is standalone. Bundled files define the workflow, contracts, and
templates. Public URLs in ./references/external-sources.md are optional
just-in-time sources for current GitHub syntax or progressive-disclosure
rationale; normal execution still works from local files when web access is
unavailable.
Workflow role: this is the Phase 1 fetch-work-item step for the GitHub orchestration workflow. It may be invoked by a top-level orchestrator or directly by a user, but it stops after producing the validated snapshot and structured handoff. Later task planning, child-issue creation, later-phase validation, and GitHub mutations stay with downstream workflow skills.
| Input | Required | Example |
| ----- | -------- | ------- |
| ISSUE_URL | Preferred | https://github.com/acme/app/issues/42 |
| OWNER | With REPO + ISSUE_NUMBER when URL absent | acme |
| REPO | With OWNER + ISSUE_NUMBER when URL absent | app |
| ISSUE_NUMBER | With OWNER + REPO when URL absent | 42 |
Derive OWNER, REPO, and ISSUE_NUMBER from ISSUE_URL when present.
Normalize owner and repo to lowercase for ISSUE_SLUG=<owner>-<repo>-<number>.
Prefer passing the full URL to the retriever because it carries host,
repository, and issue identity together.
| Subagent | Path | Purpose |
| -------- | ---- | ------- |
| issue-retriever | ./subagents/issue-retriever.md | Reads GitHub data, writes and validates docs/<ISSUE_SLUG>.md, returns a compact fetch summary |
Read the subagent file only when dispatching it.
| Need | Load |
| ---- | ---- |
| Coordinate routing and dispatch | This SKILL.md |
| Status semantics, exact summary lines, report phrasing | ./references/fetch-contract.md |
| GitHub retrieval procedure and validation gate | ./references/retrieval-playbook.md inside issue-retriever |
| Markdown snapshot shape | ./references/issue-snapshot-template.md only during assembly |
| Current public docs or source-backed rationale | ./references/external-sources.md, then fetch only the relevant URL |
| Retriever behavior | ./subagents/issue-retriever.md only when dispatching |
The coordinator passes reference paths to the retriever instead of loading detailed playbooks or raw GitHub data. Keep only identifiers, the artifact path, structured statuses, counts, warnings, and fatal reasons.
ISSUE_URL: <input URL, when available>
OWNER: <owner, when URL absent>
REPO: <repo, when URL absent>
ISSUE_NUMBER: <number, when URL absent>
FETCH_CONTRACT_PATH: ./references/fetch-contract.md
RETRIEVAL_PLAYBOOK_PATH: ./references/retrieval-playbook.md
SNAPSHOT_TEMPLATE_PATH: ./references/issue-snapshot-template.md
EXTERNAL_SOURCES_PATH: ./references/external-sources.md
Branch on the structured summary, not prose:
| Summary state | Coordinator action |
| ------------- | ------------------ |
| FETCH: PASS with Validation: PASS | Report success and continue |
| FETCH: PARTIAL with Validation: PASS | Report success with visible warnings; continue only if downstream phases tolerate partial context |
| Validation: FAIL | Stop and report the contract failure |
| FETCH: FAIL | Stop and report Failure category plus Reason |
| FETCH: ERROR | Stop and report the unexpected failure |
If a returned status pairing is inconsistent, load
./references/fetch-contract.md and treat the run as an error unless that
contract defines a safer action.
The retriever writes at most one local workflow snapshot:
docs/<ISSUE_SLUG>.md
Treat the snapshot as a workflow-state handoff for later phases, not
implementation history. Leave it in place and unstaged for resumability. Load
./references/fetch-contract.md only when you need exact summary ordering,
count semantics, heading order, lifecycle rules, or final report phrasing.
Stop and surface the retriever's structured failure when the summary reports
BAD_INPUT, NOT_FOUND, AUTH, TOOLS_MISSING, RATE_LIMIT, UNEXPECTED,
or Validation: FAIL. Ask the user for input only when the failure is
actionable by the user, such as missing coordinates or missing GitHub
authentication.
Flow: derive ISSUE_SLUG=acme-app-42, dispatch issue-retriever, receive
FETCH: PASS and Validation: PASS, then report docs/acme-app-42.md,
the issue identity, counts, warnings, and that GitHub was not modified. If
called by the GitHub orchestrator, this 12-line summary and file path are
the Phase 1 handoff.
</example>
Flow: dispatch issue-retriever, receive FETCH: PARTIAL and
Validation: PASS, then report the file path and warning. Continue only with
the warning visible to downstream phases.
</example>
development
Runs a structured nine-seat council deliberation on an idea, project, business, startup, goal, or objective, then returns a reasoned recommendation with the mental models exposed so the user can apply them solo next time. Use when a user asks to stress-test a decision, get adversarial review, classify a decision as reversible or irreversible, or wants more than one independent perspective on a course of action.
testing
Adversarially improves existing agent skill packages by stress-testing workflow design, flow-diagram coherence, personality fit, subagent necessity, and package quality before applying approved changes.
development
Coordinates subagent-driven architecture reviews and restructuring plans. Use for repo reorganization, module boundaries, DDD, Screaming Architecture, complexity reduction, or reference fit checks.
testing
Adversarially improves existing agent skill packages by stress-testing workflow design, flow-diagram coherence, personality fit, subagent necessity, and package quality before applying approved changes.