Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

docs(agents): add Homarr triage skill (#7263)

Thomasb663d940ae17
diff --git a/.agents/skills/homarr-triage/SKILL.md b/.agents/skills/homarr-triage/SKILL.md
new file mode 100644
index 000000000..8cfbe47b2
--- /dev/null
+++ b/.agents/skills/homarr-triage/SKILL.md
@@ -0,0 +1,66 @@
+---
+name: homarr-triage
+description: Triage Homarr GitHub issues and pull requests, refresh reporter follow-ups, prioritize investigations, and operate the triage Project. Use for queue updates and approved issue work, including contributor PRs.
+---
+
+# Homarr Triage
+
+Work in `homarr-labs/homarr`. Treat an issue and its implementation PR as one investigation, while retaining their separate testing and review states.
+
+## Load the contract
+
+From the repository root, read:
+
+- [Issue tracker](../../../docs/agents/issue-tracker.md): repository, request surfaces, and operations.
+- [Triage labels](../../../docs/agents/triage-labels.md): exact categories, primary states, sizes, and reporter acceptance.
+- [Project automation](../../../docs/agents/triage-project.md): Status mapping, event behavior, credentials, and recovery limits.
+
+These repository documents take precedence over differently named labels or state meanings in a generic triage skill. This skill does not require a globally installed skill. Open linked files directly if the agent environment has no skill invocation tool.
+
+Use [GitHub operations](references/github-operations.md) when collecting conversations, checking the board, or repairing synchronization. Use [delivery and replies](references/delivery.md) when implementing, publishing evidence, replying, or merging.
+
+## Refresh and recommend
+
+1. Establish the requested scope and time window. For "today", use the user's timezone and convert midnight to UTC; state the timezone and checked-at time. Keep yesterday's carryover separate. A request for a table or recommendations is read-only; it does not authorize comments, label changes, code, CI approval, or delegation.
+2. Discover newly opened **and updated** issues and PRs, including recently closed/merged work. Include collaborator PRs and explicitly named items. Separate automated dependency/translation activity from human replies. Paginate reads; a list/search result is discovery, not a full conversation review.
+3. Read selected bodies, Conversation comments, review submissions, inline review replies, label/state events, linked reports, and current PR heads. Preserve resolved questions, maintainer decisions, existing contributor work, and explicit holds. An `updated_at` change alone is not a human reply. Distinguish a new comment from an edit of an older one.
+4. Check current default-branch code using `codebase-context`, plus relevant glossary/ADRs. Search existing implementations and open/merged fixes before assigning work. If rejection records such as `.out-of-scope/` exist, consult them; their absence is not evidence of approval.
+5. Rank by user-visible impact, affected users, reproducibility, bounded scope, and existing progress. Favor a focused regression fix or review of an existing small PR over a competing implementation. Identify missing evidence and product choices separately.
+
+Present a linked table: item, current state/new evidence, value, proposed action, and blocker or maintainer decision. Distinguish source findings, reporter claims, and locally reproduced behavior. End with a small proposed set of disjoint investigations; dispatch only when authorized. Do not claim every item was source-reviewed or reproduced when only metadata was refreshed.
+
+## Apply an authorized decision
+
+- Re-read the item immediately before mutating it. For open triaged work, use the exact repository category, one primary state, and one size once scope is understood. Preserve unrelated labels. Flag conflicting primary states for maintainer resolution rather than selecting one from an arbitrary ordering; the workflow skips those items.
+- A contributor PR and green checks do not establish that the maintainer wants the feature or its current design. Resolve product choices before implementation. Inspect a draft when requested, but preserve its draft/hold status until the maintainer or author advances it.
+- An author saying "works" is evidence to read, not permission to merge. Record what build and behavior were accepted. Follow the repository's acceptance/closure contract, including any explicit maintainer override.
+- Existing authorization remains valid within its stated scope. Do not repeatedly ask for approved work, or extend permission for one PR's CI, preview, or admin bypass to unrelated PRs.
+- When delegation is authorized, give each agent one owning issue/PR, an isolated checkout, expected behavior, existing decisions, evidence requirements, and permitted side effects. Respect requested model/concurrency settings and the runtime limit. Keep one lead-owned findings table; integrate fresh remote state before publishing.
+
+## Follow the board correctly
+
+Labels are authoritative. The Project is a mirror; moving a card does not change labels or authorize work. Open unlabelled items can appear as **Needs triage** without acquiring a repository label.
+
+An original human author's new top-level Conversation reply releases a sole `waiting-for-reporter` state to `needs triage` only when it postdates the current waiting-label event. This requests another review; it is not acceptance. Bot/App replies and recognized AI-disclaimer replies are ignored. Non-author comments, inline review replies, edited-old comments, and maintainer holds still require manual attention.
+
+A PR push can invalidate older testing readiness. The automation preserves explicit holds, conflicting states, newer readiness, and ambiguous same-second ordering. Recheck the actual current head, checks, and published image rather than assuming the workflow removed every stale label.
+
+Use **All tracked items** to inspect completed work; **Triage board** filters to open work. Verify both the workflow result and the real card Status after an authorized repair. A green run can still report skipped Project sync or a conflict; read the relevant step output.
+
+## Leave useful public context
+
+Prefix new AI-authored public triage text with:
+
+```markdown
+> _This was generated by AI during triage._
+```
+
+Explain what changed or was established, the evidence, and the single next action. Use human-facing language; keep agent assignments, internal prompts, and status recitations in the working ledger. Do not post an "Agent Brief" to the contributor.
+
+Inspect the latest Conversation before posting. If an AI/LLM triage follow-up already exists and no human has replied since, a later triage pass must not append another AI message. This applies across sessions, models, and accounts; intervening bot activity does not reset it. Leave the message alone when nothing material changed, or edit it with new findings/corrections. When an authorized fresh ping is needed, replace the identified existing AI note with one corrected message instead of leaving both in the conversation.
+
+The authenticated account can also contain human-written comments; verify the exact comment ID and AI provenance before editing/deleting. Edit/delete only messages within the agent's authorized control. If the existing AI note cannot be updated, keep the new findings in the working ledger until a human replies or the maintainer directs otherwise. Preserve human replies, useful history, and the maintainer's removal of obsolete AI notes. Re-read after a successful write.
+
+## Completion
+
+Report the requested outcome with links and distinguish what is still waiting: investigation, implementation, CI, preview publication, reporter validation, merge, or release. Update the working findings table and changed cards within the authorized scope. Do not infer release/deployment success from a merge or silently revive held work.
diff --git a/.agents/skills/homarr-triage/agents/openai.yaml b/.agents/skills/homarr-triage/agents/openai.yaml
new file mode 100644
index 000000000..36dc6d500
--- /dev/null
+++ b/.agents/skills/homarr-triage/agents/openai.yaml
@@ -0,0 +1,3 @@
+interface:
+ display_name: "Homarr Triage"
+ short_description: "Triage Homarr issues, PRs, and Project follow-ups"
diff --git a/.agents/skills/homarr-triage/references/delivery.md b/.agents/skills/homarr-triage/references/delivery.md
new file mode 100644
index 000000000..8ab036f88
--- /dev/null
+++ b/.agents/skills/homarr-triage/references/delivery.md
@@ -0,0 +1,63 @@
+# Delivery, evidence, and contributor replies
+
+## Investigation and implementation
+
+Reproduce the reporter's path before claiming a bug is fixed. Keep a source finding, local fixture, browser reproduction, published image, and reporter confirmation as separate evidence. When reproduction is incomplete, report the exact missing detail and a concrete next check. A useful question resolves a remaining uncertainty; do not ask the reporter to reconfirm an answer already provided.
+
+Inspect current code and overlapping PRs before editing. Prefer updating an existing contributor fix when authorized; refresh its head before pushing and preserve contributor credit. Use isolated branches/checkouts so parallel agents cannot overwrite each other or unrelated user work. Follow `AGENTS.md` for targeted validation: add tests only when requested, run only relevant checks, and use runtime/browser/container validation when it materially verifies the claimed behavior. Avoid broad suites and image builds for a focused documentation or metadata change.
+
+Review fork code at an exact commit before approved CI execution or preview publication. Inspect workflow changes, scripts and other executable changes too. Existing permission applies only within its stated scope; a need for fresh permission should identify the exact action and why it is required. A screenshot in a contributor comment alone does not establish a published current-head preview.
+
+## UI proof and PR body
+
+For a visible UI fix, capture matched before/after screenshots of the reported case: same viewport, fixture data, theme, and relevant settings. State what the fixture proves and what still requires the reporter's environment. Do not substitute a mock-up for a reproduced application screenshot.
+
+Use a current `gh` with `--attach` support. Check command help if the installed version is older; the [current CLI manual](https://cli.github.com/manual/gh_pr_create) describes attachment rewriting. A PR body can reference the same files in a table:
+
+```markdown
+> _This was generated by AI during triage._
+
+Compact month now retains event indicators at the affected widget size.
+
+| Before | After |
+| ----------------------------------- | ---------------------------------- |
+| ![Missing indicators](./before.png) | ![Visible indicators](./after.png) |
+
+Validation: reproduced with the reported integrations at the stated viewport.
+```
+
+For example, from the temporary directory containing `pr.md`, `before.png`, and `after.png`, with the implementation already committed/pushed:
+
+```bash
+gh pr create --repo homarr-labs/homarr --base dev --head feat/your-fix \
+ --title 'fix(calendar): retain compact event indicators' \
+ --body-file ./pr.md --attach ./before.png --attach ./after.png
+```
+
+The CLI rewrites matching image references to uploaded assets. Read back the published body/comment and check the actual attachment URLs. Local `/tmp` paths, inaccessible local servers, or unrelated branch files are not public evidence. Attachment upload can partly fail after a PR has already been created: inspect the printed URL and existing PR before retrying, to avoid a duplicate. Use `--attach` with issue/PR comments when updating reporter evidence. Skip screenshots for changes with no visible UI behavior.
+
+Keep ordinary PR descriptions focused on the final problem, resulting behavior, and relevant validation. Put an explicitly requested session handoff in the PR body; it does not belong in the committed skill or an unrelated source file. Keep sensitive/private findings out of public bodies and follow the repository's `SECURITY.md` location for private reporting.
+
+## Update a public follow-up
+
+Apply the cross-pass message-continuity rule in `SKILL.md` before publishing. After implementation, tell the person what changed, link the PR and exact usable preview, show relevant evidence, and give short reproduction steps plus the remaining question. If checks/publication are pending, say so rather than asking them to test an unavailable build.
+
+For editing an existing top-level Conversation comment, first list comments and identify the exact AI-authored comment by ID and provenance, especially when automation shares the maintainer account:
+
+```bash
+gh api 'repos/homarr-labs/homarr/issues/7258/comments?per_page=100' --paginate
+
+# After confirming COMMENT_ID belongs to the AI note being updated:
+gh api --method PATCH repos/homarr-labs/homarr/issues/comments/COMMENT_ID \
+ -F body=@/tmp/triage-reply.md
+```
+
+Use the AI disclaimer required in `SKILL.md`. The `--edit-last` and `--delete-last` shortcuts select by account, not AI authorship; they can target a human maintainer comment. Delete only the identified AI comment when replacing it is authorized and needed for a new ping. Keep the replacement concise and verify the resulting conversation rather than stacking AI status comments.
+
+## Testing, merge, and release states
+
+Apply the precise [testing labels](../../../../docs/agents/triage-labels.md): current-head required checks plus a published test image establish test readiness; an issue awaiting testing uses `waiting-for-reporter`. A new head requires fresh checks and publication. Preview tags can move, so record the tested head/digest and workflow link; verify architectures when platform behavior matters.
+
+Before merge, refresh the exact head/base, required checks, mergeability, unresolved review threads, maintainer scope decision, and relevant reporter acceptance. Reporter success does not grant an admin bypass. If the author account cannot self-approve, use another eligible reviewer or obtain a specific authorized bypass; do not borrow a bot's approval credentials to evade review rules. Pin the expected head for the merge.
+
+After merge, confirm the actual merged state and clean stale pending labels within scope. Close implemented bug reports after the acceptance/merge contract is satisfied, or follow an explicit maintainer override. A merged PR is not a deployed image or published release. The Project's Done state mirrors closure/merge, so explain any remaining deployment or reporter uncertainty separately.
diff --git a/.agents/skills/homarr-triage/references/github-operations.md b/.agents/skills/homarr-triage/references/github-operations.md
new file mode 100644
index 000000000..8a36a7f91
--- /dev/null
+++ b/.agents/skills/homarr-triage/references/github-operations.md
@@ -0,0 +1,91 @@
+# GitHub conversations and Project operations
+
+Run these examples from a Homarr checkout or pass `--repo homarr-labs/homarr`. Replace example numbers and timestamps with the current task. Keep snapshots in the OS temporary directory; do not commit a session ledger or handoff as part of an unrelated fix.
+
+## Read a complete delta
+
+```bash
+# Updated includes replies and closures; created-only searches miss follow-ups.
+gh api 'repos/homarr-labs/homarr/issues?state=all&since=2026-10-20T22:00:00Z&sort=updated&direction=desc&per_page=100' --paginate
+
+# This REST endpoint includes both issues and PRs; pull_request identifies a PR.
+gh api 'repos/homarr-labs/homarr/issues/7258/comments?per_page=100' --paginate
+gh api 'repos/homarr-labs/homarr/issues/7258/events?per_page=100' --paginate
+
+# PR Conversation is not the whole review discussion.
+gh pr view 7260 --repo homarr-labs/homarr --comments
+gh api 'repos/homarr-labs/homarr/pulls/7260/reviews?per_page=100' --paginate
+gh api 'repos/homarr-labs/homarr/pulls/7260/comments?per_page=100' --paginate
+gh pr diff 7260 --repo homarr-labs/homarr
+gh pr view 7260 --repo homarr-labs/homarr --json headRefOid,isDraft,mergeable,statusCheckRollup
+```
+
+Inspect complete bodies/replies for selected work, including unresolved review threads when deciding readiness. Use the GraphQL `reviewThreads` connection if resolution state is needed. GraphQL unions require `... on Issue` / `... on PullRequest` fragments for their fields.
+
+`--paginate` emits one JSON document per page. Use a compatible CLI's `--slurp` or explicitly decode all pages; do not parse only the first document. For missing PR checks, inspect Actions runs for the exact `head_sha`: fork runs awaiting approval may not appear in `statusCheckRollup`.
+
+## Locate and read the board
+
+The configured board is [Homarr triage](https://github.com/orgs/homarr-labs/projects/6), with [open Kanban](https://github.com/orgs/homarr-labs/projects/6/views/2) and [all tracked items](https://github.com/orgs/homarr-labs/projects/6/views/1). Verify the live variables rather than carrying IDs or column counts from a previous session:
+
+```bash
+gh variable list --repo homarr-labs/homarr --json name,value \
+ --jq '.[] | select(.name | startswith("TRIAGE_PROJECT_"))'
+
+# Current owner/number shown here; adapt to the configured values.
+gh api graphql --paginate -f owner=homarr-labs -F number=6 -f query='
+ query($owner: String!, $number: Int!, $endCursor: String) {
+ organization(login: $owner) {
+ projectV2(number: $number) {
+ id title url
+ items(first: 100, after: $endCursor) {
+ nodes {
+ id isArchived
+ content {
+ ... on Issue { number url state }
+ ... on PullRequest { number url state }
+ }
+ fieldValueByName(name: "Status") {
+ ... on ProjectV2ItemFieldSingleSelectValue { name }
+ }
+ }
+ pageInfo { hasNextPage endCursor }
+ }
+ }
+ }
+ }'
+```
+
+Cross-check the issue's current labels/state with the card. The mapping lives in [the automation contract](../../../../docs/agents/triage-project.md), not this reference. **Done** is tracker closure/merge, not proof of reporter acceptance or release. **Not planned** also covers closed `not_planned` issues; a missing primary label on an open item maps to Needs triage. Conflicting primary labels leave the card unchanged.
+
+## Diagnose before repairing
+
+```bash
+gh run list --repo homarr-labs/homarr --workflow triage-project.yml --limit 10
+gh run view RUN_ID --repo homarr-labs/homarr
+gh run view RUN_ID --repo homarr-labs/homarr --log
+```
+
+Check `.github/workflows/triage-project.yml` and `.github/scripts/triage-project.cjs` on current `dev` for exact behavior. Read step outcomes and notices: authentication failure, missing configuration, conflicting labels, and a missing Status option require different recovery. Avoid echoing credentials while diagnosing.
+
+With authorization to synchronize/repair:
+
+```bash
+# Specific sync also adds needs triage to an OPEN item with no primary state.
+gh workflow run triage-project.yml --repo homarr-labs/homarr --ref dev -f number=7258
+
+# Bulk: up to 500 OPEN items already carrying a canonical state label.
+gh workflow run triage-project.yml --repo homarr-labs/homarr --ref dev
+```
+
+Manual sync mirrors current labels; it does not replay old comments or determine acceptance. Specific dispatch can mutate labels; bulk is not a complete import of all open/unlabelled or historical closed items. Separate label and Project calls are not atomic. Re-read after a failure, resolve the observed cause, and retry the affected item once; if the same failure repeats, report it with the run link and leave it unresolved. Inspect each resulting card before declaring recovery.
+
+For an explicitly requested full initial import, discover current item/field/option IDs and add the selected issue/PR node IDs with `addProjectV2ItemById`, then set Status using the current mapping. That mutation reuses an existing card for the same content. Read back the item, Status, and paginated Project membership. Preserve unrelated cards and record every acknowledged item ID so partial failures can be diagnosed without a destructive reimport. Do not replace Status options or delete/recreate the board during routine sync.
+
+If individual stored item nodes are correct but the Project connection is empty, distinguish stored writes from visible membership. Verify the correct owner/Project/filter, archived state, and pagination; recheck once. Preserve the receipts and report the discrepancy rather than repeatedly deleting/re-adding cards. A historical GitHub indexing incident is not proof of a current outage.
+
+## Credentials and permissions
+
+The current workflow reuses `homarr-update-contributors`: variable `HOMARR_UPDATE_CONTRIBUTORS_CLIENT_ID`, secret `HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY`. The generated Project token requests organization Projects write and repository Issues/Pull requests read. Its broader App capabilities do not grant this workflow permission to edit code or merge. Repository `GITHUB_TOKEN` performs label changes; it cannot access organization Projects.
+
+Local `gh` Project authorization and Actions App authorization are separate. `gh auth refresh -s project` addresses a confirmed local Project-scope error only; it does not fix Actions. After an App permission change, compare its registration with the organization installation's accepted permissions. Reuse existing credentials; do not export a broad personal CLI token into Actions secrets or attempt to retrieve stored private keys. Follow [setup documentation](../../../../docs/agents/triage-project.md) if configuration actually needs changing.
diff --git a/AGENTS.md b/AGENTS.md
index dd25dd71e..765db4224 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -111,6 +111,7 @@ Portable skills live in `.agents/skills/`. Read the relevant `SKILL.md` before w
- `documentation-sync` — user-critical documentation only
- `mcp-integration` — safe tRPC-to-MCP exposure
- `homarr-custom-widget` — safe Custom JSX v2 authoring
+- `homarr-triage` — issue/PR queues, reporter follow-ups, and GitHub Project operations
### Issue tracker