エンジニアリング
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
必須
ルーティン
初回の実行では使いません。まず手動で1回通して確認してください。
プロンプト
これはヒントであり、貼り付けられるシステムプロンプトではありません。作者はプロンプトを公開していません。初回の手順に従ってください。
初回実行
- 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.