/grav-skills:grav-inbox-triagefrom grav-skills
Automates daily triage of GitHub notifications for the Grav CMS org: reproduces bugs, fixes code, merges PRs, pushes to develop, posts replies, and closes issues. Stops only for decisions Andy must make.
Ships in grav-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Andy clears his getgrav notifications daily. You fix, reply and close on your own. The default for every item is to take it all the way: reproduce, fix, verify, push, reply, close, mark done. Stop only when an item genuinely needs Andy (see "When to stop"), and batch those into one short list at the end rather than asking mid-run.
Security advisories are not part of this sweep. They go through the weekly grav-security-advisories skill. Leave advisory notifications untouched; just count them in the summary so Andy knows how many are waiting.
Two things hold across almost every batch, so plan for them:
develop before writing anything. Reporters test old tags.~/Projects/grav/<repo> on develop: core grav, grav-plugin-*, and the admin-next source at grav-admin-next. Sites under ~/workspace/* are runnable reeve installs at https://<name>.test (self-signed, curl -k). Never start a php -S server.model: "opus", one per item, read-only, in parallel. You (the main session) do the committing and posting, so two agents never race on a repo. Full test suites never run in parallel; run the tests next to the change.@handle, never a first name guessed from a handle (only use a name the person signed themselves).Andy's working list is his inbox filtered to not-Done. Done means "doesn't need looking at". Read/unread means nothing: GitHub's notification emails carry a tracking image that marks the web notification read the moment he glances at the email.
The API can't filter on Done (it has no Done flag, and all=true returns Done threads too), and it can't filter on unread either for the reason above. What it can do is time: new activity on a Done thread moves it back into the inbox, so "everything with activity since the last sweep" is exactly what has arrived in or come back to his not-Done list since then. The state file holds the rest:
STATE=~/Projects/grav/.inbox-triage/state.json # {"last_run": "<ISO8601>", "carryover": ["<thread-id>", ...]}
SINCE=$(jq -r .last_run "$STATE")
gh api "notifications?all=true&since=${SINCE}&per_page=100" --paginate > notifications.json
jq -r '.[] | [.id,.reason,.subject.type,(.repository.full_name|sub("getgrav/";"")),.subject.title,.subject.url] | @tsv' notifications.json
The day's set is:
gh api notifications/threads/<id>),At the end of the run, write the run's start time to last_run (so activity that arrives mid-run isn't skipped next time) and replace carryover with the thread ids of this run's stop items. Everything handled gets marked Done with DELETE, which keeps the web inbox matching.
If the state file is missing, ask Andy for the date of his last sweep and the count his inbox shows, seed last_run, and check the day's set against his count once. After that, don't ask. Print the item list at the start of the run and carry on without waiting for confirmation. If Andy names specific items, do those regardless of the window.
Drop RepositoryAdvisory items (count them). Group the rest: bug issues, PRs, feature requests/questions, and noise (CI, releases, bot activity).
gh issue view <n> -R getgrav/<repo> --json number,title,body,state,author,comments,labels (or gh pr view ... --json ...,files,commits,baseRefName,maintainerCanModify). Read the whole thread, including Andy's own comments. If he already answered or decided something, act on that answer. Never report a decision as pending without having read the thread yourself; an agent's summary once reported an issue as undecided when Andy had answered it in full the day before.
One agent per item, given the full text in a scratch file, the repo paths, and a read-only instruction (no commits, pushes, or edits to tracked files). Each returns:
.test site and what happened; for UI bugs, drive it in Chrome.file:line, and whether it matches the reporter's.grav-plugin-admin2 live in grav-admin-next; blueprint and form bugs can be in core, api, flex-objects or admin2).Spot-check every "already fixed" and every negative result yourself before acting on it.
Bug, reproduced, fix verified:
develop (check out develop explicitly in grav-plugin-api, which also has main)..test site before commit, including logging in to admin. Lint and unit tests have passed on changes that broke login.npm run build:plugin, stash WIP first) and add the admin2 CHANGELOG bullet. Both are required.git add <paths>, never -A: repos often hold Andy's uncommitted WIP). No Co-Authored-By trailers.git fetch and check git log origin/develop..develop. If it holds commits that aren't yours, don't push: Andy's unpushed work would go public with yours. Put it in the stop list.Contributor PR: check the base branch (develop, not main), run their test against unfixed code (if it passes, it proves nothing), and apply the needed corrections yourself rather than requesting changes. House merge pattern: merge locally --no-ff with Merge PR #N: <lowercase description>, push, then a separate [bugfix] ... commit with your corrections. getgrav/grav blocks merge commits through the API, and some repos (e.g. grav-plugin-simplesearch) block merge commits entirely, so squash there. Or push corrections to the contributor's branch when maintainerCanModify is set, then merge. Reply thanking them and saying briefly what you adjusted.
Already fixed: reply with the version that has it, close.
Can't reproduce after a real attempt: reply with what you tried and on which version, ask for the missing detail if one would settle it, close.
Underspecified: ask for the specific missing thing (version, blueprint, steps). Leave open.
Questions and support: answer if the answer is clear from the code or docs, close if resolved.
Noise (CI, release, bot): mark done.
Posting:
gh issue comment <n> -R getgrav/<repo> --body-file reply.md
gh issue close <n> -R getgrav/<repo>
gh api -X DELETE notifications/threads/<thread-id> # marks the notification Done
Post the comment separately from the close: gh issue close --comment has dropped the comment while still closing. Check the comment landed. Mark a notification done only when its item is fully handled.
Don't act on an item, just draft, when any of these holds:
For each stop item, still do everything short of the public action: the investigation, a local branch with the fix, and the drafted reply, so Andy's answer is one word.
End with a short summary in the terminal:
If there are stop items with drafted replies, or more than a handful of items, publish the same content as an HTML Artifact so Andy can copy replies out of it, with every reply in its own copy block and every id linked. Update it in place if anything changes, before mentioning the change in chat.
:c/:t/:h after a variable are history modifiers even in double quotes (always brace: "${t}:${f}"); unquoted globs in flags fail before the command runs (--include='*.yaml').#[DataProvider] attributes; use @dataProvider docblocks.?? is an isset() test: an empty-string value suppresses the fallback. A frequent contributor regression around $_SERVER/getenv().isAdmin() is false during API requests (AdminProxy registers at routing), so plugins that gate on it at onPluginsInitialized never subscribe under admin2.develop mid-work. On conflict keep their new strings, drop only your removals, and re-check the YAML parses.bin/grav clear, never rm -rf. Admin::enablePages() before using the pages object in admin context. admin-next: i18n for every new string, window.__GRAV_DIALOGS instead of native dialogs.grav-plugin-api, admin2 and a few others release to main; core and most plugins use git-flow on master/develop.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
grav-cms, github-notifications, issue-triage, automation, bug-fixing
Other plugins' skills for the same job
9 skills in this plugin
/grav-2-migrationUse when migrating an existing Grav 1.7/1.8 site to Grav 2.0 by hand — the agent-driven equivalent of what the `migrate-grav` plugin's wizard does, for sites where core is swapped in place (git checkout, deploy pipeline, rsync) rather than staged in a subdirectory and promoted. Covers the whole sequence: preflight and a restore point, swapping core, bringing plugins/themes to their 2.0 releases and replacing classic `admin` with `admin2` + `api`, translating classic `admin.*` account and group permissions into the `api.*` set 2.0 actually enforces (including the `api.access` gate no 1.x permission corresponds to), reopening the `security.twig_content` gates and seeding `security.twig_sandbox` allowlists from the site's own content, `system.images.url_actions`, the GFM `tagfilter`, and verifying the result. Trigger when the user says "migrate this site to Grav 2", "upgrade my 1.7 site to 2.0", asks to do what migrate-grav does without running the plugin, or asks why Twig in content, image resizing, raw HTML, or a user's permissions broke after moving to Grav 2.0./grav-admin-ui-polishUse when reviewing, auditing or polishing the admin UI of a Grav 2.0 plugin that renders inside Admin Next (admin2) — a plugin page in component mode, an add-on section, a dashboard widget, a custom field, or a blueprint settings form. Covers the review method (walk both themes plus a tablet width via the same-origin iframe trick, read-only, demo rows injected client-side when the seed is empty, then one code-side consistency pass against the host's own tokens), the ten design rules that repeat across every view (status registry instead of raw enums, the zero-value rule, one primary per screen with destructive neutral at rest, one entry point per row with a ⋯ menu, collapsed creation forms, effective state instead of stored flags, one date and number format, counts for the whole result set, prose into `<details>`, every "see X" a link, every editor a route with a dirty guard, sub-nav groups, empty states with a CTA), host fit against Admin Next's `--background/--muted/--border/--input/--ring/--success/--warning/--destructive` custom properties and its badge/button/card/table/tabs/segmented/input conventions, the `--kc-*`-style token block and constructable-stylesheet pattern, the primitives a plugin admin needs (`status()`, `rowActions()`, `emptyState()`, `.table-scroll`, route + dirty-guard helpers, formatting helpers), the `ctx.ui` / `ctx.sheet` / `ctx.route` / `ctx.navigate` / `ctx.setTitle` contract an add-on section is handed, blueprint label and help-text rules, a twelve-item rendering-defect checklist, and the host/API limitations to plan around. Trigger when the user says "review the admin UI", "polish this plugin page", "make it feel native", "make it look premium", "bring it in line with KahunaCart", or mentions Admin Next, admin2, plugin page, kc-view, web component admin UI, blueprint labels/help, status pills, dark mode contrast, rendering defects, or a UI review of a Kahuna add-on (subscriptions, licenses, payment providers)./grav-api-admin-next-integrationUse when integrating a Grav 2.0 plugin with Admin Next (the new SvelteKit SPA admin) and the API plugin. Covers all integration points: API endpoints (`onApiRegisterRoutes`), sidebar items, menubar/toolbar buttons, floating widgets, modal dialogs (`window.__GRAV_DIALOGS.form()`/`.open()` and the page-creation deep link), plugin pages (blueprint and component modes), custom field types, custom reports, blueprint modifications, permissions, languages, and config exposure to web components. Trigger when migrating an admin-classic plugin to Admin Next, when adding any Admin Next UI to a plugin, when working under `user/plugins/<plugin>/admin-next/` or on event handlers prefixed `onApi*`, or when the user mentions admin-next, custom field type, sidebar nav, floating widget, modal dialog, plugin page, custom report, or any of the `onApi*` events. Use the lighter `grav-api-integration` skill instead if the plugin only needs API endpoints with no admin UI./grav-api-integrationUse when adding REST API endpoints to a Grav 2.0 plugin via the first-party Grav API plugin. Covers controller setup extending AbstractApiController, route registration via `onApiRegisterRoutes`, permission checks, response helpers, exceptions, and curl-based testing. Trigger when working under `user/plugins/<plugin>/` on code that exposes plugin functionality as HTTP endpoints, or when the user mentions Grav API, AbstractApiController, ApiResponse, or onApiRegisterRoutes. Use the broader `grav-api-admin-next-integration` skill instead if the plugin also needs custom Admin Next UI (sidebar, menubar, fields, pages, widgets, panels, reports)./grav-plugin-reviewUse when reviewing a third-party Grav 2.0 / Admin2 plugin for compatibility and security, especially a GPM (`getgrav/grav` `[add-resource]`) submission. Covers the review method (clone, map, cross-check against the real api/admin2/login plugins in the workspace), the verified API/Admin2 integration contract (which `onApi*` events exist, `AbstractApiController` shape, public-route mechanism, component-page convention, settings-panel secret-leak vector), and a findings taxonomy with concrete fixes: manifest/GPM correctness, auth granularity, secret handling, unauthenticated public writes, CSV/mail-header injection, XSS escaping, path traversal in file-serving, SVG upload, open proxies, pure-PHP SSE worker exhaustion, CSRF, message/identity spoofing, account mass-assignment, plus citizen-behavior and author-branding-in-defaults smells. Also covers how to produce a paste-ready, file:line-referenced handoff. Trigger when the user asks to review/vet/audit a Grav plugin, asks about a GPM submission, links a `grav-plugin-*` repo for review, or mentions checking a plugin for Grav 2.0 / Admin2 compatibility./grav-releaseUse when cutting a release of a Grav plugin (Team Grav / Trilby Media, e.g. `grav-plugin-*`) or Grav core itself. Covers the two release shapes — full git-flow when the work is on `develop`, and tag-only when the work is on a dedicated release branch (like flex-objects `1.4.0` or an older Grav maintenance line like `1.7`) — plus the prerelease decision (`testing: true` in blueprints, or an `-rc.`/`-beta.` version, or Grav core's `system/defines.php`), the bare-numeric tag/title rule (never `v`-prefixed), sourcing release notes from the top CHANGELOG block, and post-release verification. Trigger when the user says "release <plugin>", "cut a release", "tag and release", "get <plugin> out", "do a prerelease", or asks to run a git-flow release / `gh release` for a Grav plugin or Grav core.npx claudepluginhub getgrav/grav-skills --plugin grav-skills