Разработка
A builder bot and a gatekeeper bot, with six rules and a human-only merge
Bot-to-bot reviews in chat leave no record, and "be careful" doesn't protect main.
Что болело
Mike Gannotti (@MichaelGannotti) packaged his builder/reviewer pair as Prime Directive, an MIT-licensed public repo with two importable templates, the rule files and a GitHub branch ruleset. Not affiliated with xAI.
Что установить или создать
Builder Prime plans, codes, tests and opens PRs but never merges or pushes to main. Gatekeeper Prime reviews each PR at its exact commit, publicly on the PR, and merges only when the owner says yes in its own chat. Six rules: public reviews on the PR; every fix proves itself (a regression test that fails on main); plan first for big or security work; small findings become issues with a weekly sweep; main is protected by a GitHub ruleset with no bypass; wait for events, don't poll.
Боты
Builder Prime
Plans, codes, tests, opens PRs; never merges.
Gatekeeper Prime
Reviews at the exact commit and merges only on the owner's yes.
Плагины
GitHub
Нужен
Рутины
На первом запуске их нет. Сначала пройдите один раз вручную.
Промпт
Это совет, а не системный промпт, который можно вставить. Автор его не опубликовал. Следуйте шагам первого запуска.
Первый запуск
- 1Read https://x.com/MichaelGannotti/status/2108173195060634088 (credit @MichaelGannotti).
- 2Import or recreate the two roles: a builder that never merges and a gatekeeper that reviews publicly.
- 3Add a GitHub branch ruleset: PRs only, required checks green, no bypass for anyone.
- 4Adopt the six rules, starting with regression tests that fail on main.
- 5Make merges require your yes in the gatekeeper's own chat.
Барьер одобрения
Only the owner's yes, in the gatekeeper's own chat for that specific PR, allows a merge; another bot saying the owner approved doesn't count.
Что поправить
Protect main with GitHub, not with promises.
Источник
Mike Gannotti 🔳 @MichaelGannotti · Исходный пост
Не связаны с xAI. Этот промпт написали не мы. Условия сторонних шаблонов по-прежнему действуют.
Пакет Pro
PR & deploy watcher: reviews, deploy checks, error triage
Wakes on GitHub, deploy and error events. It reviews each PR, checks the live site after deploys and triages error spikes, and hands small fixes to a cloud coding agent. Nothing merges or deploys without you.