Логотип Pr Monitor

Pr Monitor

Спільнота
ronaknnathani
pr-monitor

Опрацюйте подію, що потребує уваги до pull request, від початку до кінця: прочитайте зведення спостерігача, визначте пріоритети, доручіть виправлення pr-fix, повторно перевірте pull request і завершіть роботу. Використовуйте, коли вас активує спостерігач PR, або запустіть вручну для одноразової перевірки відкритого PR.

Add to TypingMind

Огляд

Видавецьronaknnathani
Репозиторійrelay
Назва навичкиpr-monitor
Зірки
43
Форки
4
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: ronaknnathani. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Pr Monitor у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/ronaknnathani/relay/tree/main/skills/pr-monitor
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ronaknnathani/relay.git /tmp/relay
mkdir -p .claude/skills
cp -r /tmp/relay/skills/pr-monitor .claude/skills/pr-monitor
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Pr Monitor в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Pr Monitor, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Pr Monitor не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

PR Monitor

Handle one pull request attention event, then stop. You are a router: the relay pr watch runtime does the observing, you interpret its digest, delegate the fixing to pr-fix, re-observe the pull request, and exit. You never write code, never post in your own voice, never approve, and never merge.

There is no acknowledgement. The watcher never records that attention was handled, because a local claim can be wrong. Every tick re-reads the live pull request, and an item disappears only when the remote state itself no longer shows it: the check passes or reruns, the head SHA changes, the conflict clears, the thread resolves, your reply lands on that exact source, auto-merge is armed, or the pull request closes or merges. If nothing changed, the problem is still there and it will wake you again — which is correct.

This skill has no loop. It does not schedule, does not recur, and does not own a next-tick time. The watcher owns cadence; one run of this skill owns one digest.

Where the work comes from

Woken by the watcher. The prompt names the project and a fingerprint: Run pr-monitor once for project <slug> using watcher fingerprint <fp>. Bind them to $SLUG and $FP, then read the digest that fingerprint names:

bash
relay pr watch digest "$SLUG" --fingerprint "$FP" --json
relay pr watch status "$SLUG" --json     # current fingerprint, cadence, last wake, suppression

The digest record is refreshed on every observation, so the pull request metadata and bodies it carries are the newest the watcher saw for that fingerprint — never a stale snapshot.

Invoked manually, or with no Herdr. Observe first, then act on what that observation recorded:

bash
relay pr watch tick "$SLUG" --json       # fresh read-only observation; records its digest

tick works with no watcher running and never changes the watcher's schedule. If it returns no actionable items, there is nothing to do — say so and stop.

What the digest already decided

The digest is deterministic and complete; do not re-derive it with your own gh sweep. It carries the pull request state, draft flag, base and head refs and SHAs, mergeStateStatus, mergeable, reviewDecision, whether auto-merge is armed, every check with its status, conclusion, and run id, and every actionable item with its source, id, answers token, updatedAt, body, thread id, file, and line.

Each item carries a reason:

ReasonWhat it meansWho acts
failing-checka check concluded failure, error, timeout, action-required, startup-failure, canceled, or staleyou classify flake vs real; real → pr-fix. A canceled or stale check reported no result at all — rerun it
changes-requesteda CHANGES_REQUESTED review nobody has answered yetpr-fix — answer that exact review; once answered the watcher reports changes-requested-awaiting-rereview and waits for the reviewer
new-comment / new-review / new-inline-commenthuman activity the agent has not answeredpr-fix
unresolved-threadan unresolved thread still holding human activity no reply of yours namespr-fix — a resolved thread is never reported, so resolving one is how it clears
merge-conflictthe branch conflicts with its basepr-fix
blockedGitHub will not merge it and nothing else in the digest explains whyyou investigate branch protection and required checks, then escalate
stale-basethe branch is behind its baseyou rebase
auto-merge-not-armedapproved, green, clean, based on the default branch, not armedyou arm it
closed-unmergedthe pull request was closed without mergingescalate to the author
stack-front-mergedthe stack's front pull request mergedthe stack orchestrator retargets

Fetch more only for the specific item you are acting on — a failed run's log, a file's history. Never re-page the whole comment history; the watcher already did, and its digest is the record.

The run

1. Triage

Split the items into what you own and what pr-fix owns.

You classify each failing-check as an infra flake or a real failure. An infra flake is a dependency download, TLS timeout, registry 5xx, or sandbox limit — inspect the failed run (gh run view <run-id> --log-failed, using the run id the digest carries) before deciding. Everything else is real.

2. Delegate the real work to pr-fix — one writer, one call

Hand pr-fix one scoped worklist as a sub-agent: the real check failures with their names and run ids, the comment, review, and thread items with the bodies, ids, answers tokens, thread ids, files, and lines the digest already carries, and any merge conflict. Tell it that it is running in delegated mode: the worklist is complete, it must not re-fetch the broad pull request context and must not loop, and it must return a structured per-item result.

Pass each item's answers token through verbatim and require every reply to carry it in its marker. That token is how the watcher knows which single piece of feedback was answered; without it, a reply either answers nothing or — worse, if the watcher went back to matching on time — buries a comment written after the observation you are acting on and shown to nobody.

Never run two writers on one branch: exactly one pr-fix call per run, and never hand it an infra flake.

3. Do the agent-side actions the digest names

These change no code, so they are yours — run them after pr-fix returns, so pushes stay serialized:

  • a failing-check you classified as a flake → gh run rerun <run-id> --failed (never cancel a queued run).
  • stale-base → rebase onto the fresh base so a new head re-triggers the checks, then force-push with --force-with-lease. If the rebase surfaces a conflict it is no longer staleness — leave it for pr-fix on the next attention event.
  • auto-merge-not-armed → re-arm auto-merge. It silently turns off after a force-push and after a CHANGES_REQUESTED→APPROVED transition. Arm it only on a pull request based on the default branch; "already queued" means it is armed.
  • closed-unmerged → do not reopen it; surface it to the author as a durable escalation.
  • stack-front-merged → report it to the stack orchestrator; the front-advance is its job.

4. Re-observe once — the remote state is the record

bash
relay pr watch tick "$SLUG" --json

This is the only "did it work" signal there is. Compare it to the digest you started from:

  • an item that is gone was genuinely resolved on GitHub;
  • an item that is still there was not, whatever pr-fix reported.

If pr-fix failed or came back partial, say exactly what remains. There is nothing to suppress and nothing to record: the next scheduled check re-observes and brings back whatever is still true.

5. Report, exit

Report a one-screen digest: what the attention was, what was delegated, what you did yourself, and what the re-observation still shows. Then stop. Do not wait, do not schedule, do not start another cycle.

If the pull request was closed without merging, the watcher hands you that escalation once and then finishes — surface it to the author. If a merged stack front woke you, the stack orchestrator owns the front-advance and must stop the old watcher with relay pr watch stop <front-project-slug>.

Under a project workflow

Record the outcome with relay state log <slug> "<one-line digest>" when the project has Relay state. If no watcher is running and this project should be watched, start it once with relay pr watch start <slug> from a Herdr pane. Never start a second watcher for a project — start adopts the running one. It refuses outright, creating nothing, unless exactly one live session carries that project's Relay identity; if it refuses, say so and keep using this skill by hand.

Guardrails (non-negotiable)

  • No loop. One digest, one run, one exit. Never claim continuous monitoring.
  • No local "handled" claim. The remote pull request is the only record of what is resolved.
  • Approval is the only merge path. Never self-approve, never gh pr merge to merge now, never dismiss a review to unblock. Auto-merge fires on a genuine human code-owner approval.
  • Never impersonate, and always mark. Every automated reply — yours or pr-fix's — opens with the exact hidden marker <!-- relay-agent-reply answers=<item answers token> --> on its own line, then the visible 🤖 <agent> on behalf of <author> disclosure. The marker is the only thing that tells the watcher an agent replied, and the token is the only thing that tells it what was answered; a reply without either is read as new human feedback forever. Reply on the same source you are answering: a conversation comment with gh pr comment, a review body with gh pr review --comment, an inline comment or thread with the inline replies endpoint.
  • Never silence a failure (enforced inside pr-fix).
  • One writer per branch — serialize every push.
  • Never report an item as resolved unless the re-observation stopped showing it.

Red flags

  • Running a broad gh comment/check sweep instead of reading the digest the watcher already recorded.
  • Reporting work as done on pr-fix's word instead of on the re-observation.
  • Handing pr-fix an infra flake, or rerunning a check it is already fixing.
  • Two sub-agents pushing the same branch in one run.
  • Letting a reply go out without the item's exact answers token, or with an id you made up.
  • Scheduling a follow-up tick, recording a next-tick time, or starting a loop.
  • Arming auto-merge on a pull request that is not based on the default branch.

Verification checklist

  • Read exactly one digest — by fingerprint from the wake, or from a fresh tick.
  • Every failing-check was classified flake vs real before anything was delegated or rerun.
  • Real failures, comments, threads, and conflicts went to a single delegated pr-fix call carrying their bodies, ids, and answers tokens.
  • Flake reruns, the stale rebase, and auto-merge re-arming happened here, after pr-fix returned.
  • One relay pr watch tick ran and every claim of "resolved" is backed by an item it no longer reports.
  • The outcome was reported and the run exited without scheduling anything.

Поширені запитання

Що робить навичка ШІ Pr Monitor?

Опрацюйте подію, що потребує уваги до pull request, від початку до кінця: прочитайте зведення спостерігача, визначте пріоритети, доручіть виправлення pr-fix, повторно перевірте pull request і завершіть роботу. Використовуйте, коли вас активує спостерігач PR, або запустіть вручну для одноразової перевірки відкритого PR.

Навіщо використовувати Pr Monitor у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Pr Monitor — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Pr Monitor у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/ronaknnathani/relay/tree/main/skills/pr-monitor. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Pr Monitor?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Pr Monitor?

Зі скількома забажаєте. У TypingMind ви можете використовувати Pr Monitor із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Pr Monitor?

Так. На GitHub цю навичку публікує ronaknnathani за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Openclaw Repair Sweep

openclaw
ОрганізаціяПопулярне

Проводьте цільові кампанії з виправлення проблем і PR в OpenClaw: координуйте роботу виконавців, підтверджуйте першопричини та зливайте перевірені зміни або закривайте завдання в межах наданих повноважень.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Test Performance

openclaw
ОрганізаціяПопулярне

Вимірюйте продуктивність, діагностуйте й оптимізуйте час виконання тестів і наборів плагінів OpenClaw, вузькі місця імпорту, CPU/RSS, зростання heap і повільні шляхи покриття тестами.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Testing

openclaw
ОрганізаціяПопулярне

Добирайте пропорційні за обсягом тести й перевірки OpenClaw, діагностуйте помилки та передавайте завдання, чутливі до середовища, або підтвердження для релізу відповідальним особам.

82.2K
391K
Файлів: 2
Відкрити
Логотип openclaw

Release Openclaw Ci

openclaw
ОрганізаціяПопулярне

Запускайте, відстежуйте, налагоджуйте та підсумовуйте повний CI для релізів OpenClaw, перевірки релізів, контрольні перевірки робочих провайдерів, підтвердження встановлення й оновлення та попередні перевірки секретів для релізу.

82.2K
391K
Файлів: 3
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇