Gh notifications

From juanibiapina/dotfiles · View interactive version

Gh notifications is an AI agent skill from the GitHub repository juanibiapina/dotfiles. Lists and triages GitHub notifications through the gh API, marking threads done or unsubscribing from them. Use when the user asks to check, clean, or triage GitHub notifications.

How to use this skill

Skill file

GitHub Notifications

API Endpoints

Listing

gh api /notifications --paginate                          # all unread
gh api /notifications?participating=true --paginate       # only participating
gh api /notifications?all=true --paginate                 # include already-read
gh api /notifications?since=2025-01-01T00:00:00Z          # since timestamp

Compact projection:

gh api /notifications --paginate \
  -q '.[] | {id: .id, type: .subject.type, reason: .reason, title: .subject.title, repo: .repository.full_name, subject_url: .subject.url}'

Thread Actions

Three distinct operations:

| Action | Method | Effect |

|---|---|---|

| Mark as read | gh api -X PATCH /notifications/threads/{id} | Marks read, still visible in inbox |

| Mark as done | gh api -X DELETE /notifications/threads/{id} | Removes from inbox entirely (like web UI "Done" button) |

| Unsubscribe | gh api -X DELETE /notifications/threads/{id}/subscription | Stops future notifications for that thread |

There is no bulk "mark as done." Must DELETE each thread individually.

Never use mark as read. It leaves notifications in the inbox and solves nothing. Always mark as done.

Never use PUT /notifications either. It marks ALL notifications as read (not done).

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.