Skip to content
Back to skills

Rule Daemon Pull Requests

ASecurity

Pull requests and task lists captured from the transcript, and named paths. A repository rule for apps/daemon/src/v1/agents/**/pull-request-capture*, apps/daemon/src/v1/agents/**/named-paths*, apps/daemon/src/v1/agents/**/run-named-paths*, apps/daemon/src/v1/agents/**/task-list-*, apps/daemon/src/v1/tasks/**/task-merge*, apps/daemon/src/v1/agents/**/pull-request-lifecycle*, apps/daemon/src/v1/agents/**/pull-request-after-done*, apps/daemon/src/v1/agents/**/pull-request-done-marks*; read it be...

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgoshellgitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add geniro-io/geniro-app --skill rule-daemon-pull-requests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Daemon Pull Requests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rule Daemon Pull Requests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-daemon-pull-requests/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-daemon-pull-requests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rule-daemon-pull-requests
description: "Pull requests and task lists captured from the transcript, and named paths. A repository rule for apps/daemon/src/v1/agents/**/pull-request-capture*, apps/daemon/src/v1/agents/**/named-paths*, apps/daemon/src/v1/agents/**/run-named-paths*, apps/daemon/src/v1/agents/**/task-list-*, apps/daemon/src/v1/tasks/**/task-merge*, apps/daemon/src/v1/agents/**/pull-request-lifecycle*, apps/daemon/src/v1/agents/**/pull-request-after-done*, apps/daemon/src/v1/agents/**/pull-request-done-marks*; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/daemon-pull-requests.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Pull requests and task lists

- A thread's pull requests are read from its own transcript (`pull-request-capture`). Never key them by branch. A GitLab merge request is a pull request here: one ref model for both hosts (`utils/pull-request-ref.ts`: parse, key, label; twin `apps/ui/src/shared/pull-request-ref.ts`).
  - `Run.pullRequests` holds the ones it OPENED. Only these end a card on merge (`TaskMergeService`), count in Stats (`announceOpened`, the backfill) and stand as a card's result.
  - `Run.touchedPullRequests` holds the ones a conversation's CLI record names (`AgentAdapter.readSessionPullRequests`: claude's `pr-link` lines — created, pushed to, checked out, commented on, merged). Shown on the chat surfaces only: `readDisplayedPullRequests` merges both for the run wire and the run-status announce, marking each `opened`. A task card and `get_task` show the opened ones (`RunDao.pullRequestsOf`; the board reads them with each card's stage line in one read, `RunDao.boardFactsOf`).
  - A CLI record is kept only when the run opened that pull request or its own rows name it (`textNamesPullRequest` over `ItemDao.pullRequestNamingCandidates`: its URL or API path, or a `gh pr <verb>` naming its number). claude answers every push with `gh pr view` in its own folder, so in a shared checkout its record names whatever pull request that folder's branch has. An unnamed record is re-checked only over rows written since (`unnamed`, in memory); a from-start pass re-checks the carried ones too, and a list that shrinks is announced (empty included).
  - Transcript signal: a pull request URL (`github.com/…/pull/\d+`) or merge request URL (any host, `…/-/merge_requests/\d+`) that ENDS a line (alone, or after whitespace or `=`; never a bare `:`, which is `grep -n`) in a `tool_result` whose paired call opened one in command position (prefix words walked back): `gh pr create` for a GitHub URL; `glab mr create`, or a `git push` carrying `merge_request.create` with the URL right under GitLab's `remote: View merge request for <branch>:` line, for a GitLab one. The push hint `…/merge_requests/new?…` never counts. A URL mid-line is a quotation.
  - A record has no row of ours: it takes the seq of the tool result its time falls on (`ItemDao.toolResultSeqAt`), so ordering stays seq-based.
  - Incremental: the marker advances even when nothing was captured. Errors are swallowed per run. No repeating re-scan sweep; a rule change bumps `PULL_REQUEST_SCAN_VERSION`, and a run scanned under another version is re-read from the start once, by the boot sweep (`rescanOutdatedQuietly`) or its own turn end, never by a listing (a listing's re-read announced every run it re-read, and the renderer re-listed for each).
  - One pass per run at a time (`syncSerialized`), each over the row as this service last wrote it, so overlapping listings and a turn end never announce one change twice. A listing never waits on a pass in flight.
  - The marker stops at `ItemSeqAllocator.writtenThrough` (a reserved seq is not on disk yet); a pass reads candidates in seq windows with a yield between them and looks up their calls in one `rowsByPayloadId`, never a per-result `LIKE` over the history.
  - Store identity only (owner, repo, number, url; a GitLab row also `kind`, `host`, `path`, owner being the namespace and repo the project), never title or state. GitHub rows are stored and keyed as before (`owner/repo#n`); GitLab keys are `host/path!n`.
  - Every list the run wire or a run-status announce carries attaches each pull request's newest recorded outcome (`Run.runOutcomes`, read fresh by the capture pass), since the renderer replaces the whole list from each announce.
- A pull request's GitHub or GitLab life is read only for an analysis (`PullRequestLifecycleService`, `.claude/rules/daemon-thread-analysis.md` → *Pull requests after done*), through the user's `gh` or `glab` (a GitLab host only when `glab auth status` reports it signed in), and only for a pull request the analysed run named; it is kept in memory, never in a column (no merged/open state is stored).
- Worktrees a thread worked in (`RunNamedPathsService`, `POST /v1/chats/:runId/named-paths`): of the candidate folders the desktop app lists, the ones a `tool_call` of the run names — the path or its run-folder-relative form (two segments or more), followed by a path boundary; a relative form must also begin one (a shell word boundary, a quote, an escaped newline or tab, or `./`), so it is never found inside another repository's path. Never the run's folder or one holding it. Each run's reading is remembered in memory per parent folder: the last segments its tool calls put right after `<parent>/`, scanned through a seq and clamped to `writtenThrough`. A later ask reads only the rows written since, and a new folder under a parent already read reads only those rows too; a parent asked about for the first time reads the whole history once, in seq windows that yield the event loop. One substring per parent folder goes to the database, never one per candidate. A form whose last segment holds a path-boundary character is matched as written, its verdict kept per form. Asks for one run are serialized.
- `task_list` rows: `mode` says snapshot vs patch and is never inferred; absent means patch. The run fold is keyed by member AND `callId` and skips delegate rows (`parentToolUseId`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.