{"slug":"botkits-design-a-grok-bot","title":"botkits-design-a-grok-bot","summary":"Needs Grok Bot. Use this when designing or creating a new Grok Bot. Ask a few preference questions, write a tight persona, CreateAgent, then verify against the live profile. Coding bots use pstack / poteto-mode as the quality bar. On a fresh install, run setup-pstack first and en","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:42:17.468354Z","repo":{"url":"https://github.com/botkitsdev/botkits","stars":11,"forks":3,"license":"MIT","updatedAt":"2026-11-28T23:42:07Z"},"bodyHtml":"<hr>\n<h2>name: botkits-design-a-grok-bot\ndescription: &gt;-\nNeeds Grok Bot. Use this when designing or creating a new Grok Bot. Ask a few preference\nquestions, write a tight persona, CreateAgent, then verify against the live\nprofile. Coding bots use pstack / poteto-mode as the quality bar. On a fresh\ninstall, run setup-pstack first and ensure healthcheck routines exist.\ncompatibility: Needs Grok Bot (uses CreateAgent and Grok Bot profiles).</h2>\n<h1>Design a Grok Bot</h1>\n<p>Build a real bot for the user, not a template, unless they ask for a template. A good bot does one thing well and stays out of everything else.</p>\n<h2>The four parts of a bot</h2>\n<p>Write them in this order. The description holds all four.</p>\n<ol>\n<li><strong>Job.</strong> One sentence: what it does each time it wakes.</li>\n<li><strong>Not its job.</strong> The nearby things it refuses, even when asked. Those belong to another bot. (A mention scout doesn't post. A drafter doesn't send.)</li>\n<li><strong>Voice.</strong> A few words. The user's own tone or a named character, never \"helpful assistant\".</li>\n<li><strong>Wake.</strong> Chat, a routine, an event, or a mix. Silent when there is nothing worth saying.</li>\n</ol>\n<p>Keep the display name short, in the form <code>Name - Role</code>. Never name a bot after a real person. Leave out tool lists, model essays, and \"I can also help with...\".</p>\n<h2>Split test</h2>\n<p>Run this before you create a bot or add a pack. If any check fails, make two bots (or two packs), not one.</p>\n<ul>\n<li>If the one-job sentence needs \"and\", split.</li>\n<li>If a fix to one step would never change the other, split.</li>\n<li>A step with its own approvals and failure modes (posting, sending or spending) is its own bot.</li>\n</ul>\n<h2>Org fit</h2>\n<p>Keep the set of bots small and clear.</p>\n<ul>\n<li>A chief of staff routes work. Heads own one outcome each. Doers do one task.</li>\n<li>The user should talk to about 5 to 8 bots. If they need more, a head is missing or a bot has two jobs.</li>\n<li>A doer that has to ask more than yes or no means a head's SOP is missing. Fix the SOP. Do not add more questions to the doer.</li>\n<li>If the user asks for the same report three times, make it a daily routine. Never hourly.</li>\n</ul>\n<h2>Correct once</h2>\n<p>When the user corrects the bot, do all three before you call the work done:</p>\n<ol>\n<li>Update the bot's own instructions and the task SOP.</li>\n<li>Add one dated line to a shared corrections log: the date, the bot, what was wrong, and the new rule. Other bots must be able to read this log.</li>\n<li>Tell the user in one line which SOP changed.</li>\n</ol>\n<p>The work is not done if the change lives only in the chat. When you create a bot, agree one shared log path other bots can read, and put that path in the bot's description so it can follow these steps on its own.</p>\n<h2>Fresh install (first message after import)</h2>\n<p>Do this once, before any design work:</p>\n<ol>\n<li>If <code>~/.cursor/rules/pstack-models.mdc</code> is missing, run <code>/setup-pstack</code>. If a real repo exists and there is no <code>verify-*</code> skill, run <code>/create-verification-skill</code>. Don't ask first.</li>\n<li>List <code>/home/box/agent-data/agents/&lt;this-agent-id&gt;/automations/</code>. Create whichever healthcheck routine is missing with <code>update_state</code> (target <code>routine</code>, action <code>create</code>), each told to stay quiet when it has nothing to propose:\n<ul>\n<li><code>transcript-healthcheck</code>, schedule <code>44 8 * * 1-5</code>, runs the botkits-transcript-healthcheck skill.</li>\n<li><code>routine-healthcheck</code>, schedule <code>49 8 * * 1</code>, runs the botkits-routine-healthcheck skill.\nTell the user what you created or that both already existed. Imports don't always bring routines along, so this step is the safety net.</li>\n</ul>\n</li>\n<li>Offer once to run a routine checkup across all bots.</li>\n</ol>\n<p>Skip anything already done in this chat.</p>\n<h2>Intake</h2>\n<p>First read the bot's lessons file (for example <code>skill-lessons/design-a-grok-bot.md</code> in your workspace) if it exists. Apply each lesson marked KEEP.</p>\n<p>Ask only taste questions that no test can answer, and skip any already answered: the job, the name and voice (if they care), routine or on-demand, and who the bot talks to (just the user, other bots, a channel).</p>\n<p>Don't ask about tools, plugins, or models when a working sibling bot shows the answer. Once the job is clear, run the split test, then create the bot; don't ask \"shall I?\". For small reversible choices (a nickname, a color), pick one and say what you picked.</p>\n<h2>Approval cards</h2>\n<p>If the bot will ever need the user to approve, pick, or confirm (a post, a spend, a live change), put this in its description: always ask with a <code>SendToUser</code> question widget that has real, checked options. No plain-text \"reply A or B\", no \"waiting for your tap\" without a card. One card ends the turn. If a tool shows its own approval UI, use that instead.</p>\n<h2>Coding bots</h2>\n<p>The bar is pstack's poteto-mode (and boteto-mode on Grok Bot). In the description: the job and the not-jobs, short unslopped replies, repo work goes to a CloudAgent instead of a local clone, slash-skills are live files, and the model rule copied from an existing coding bot unless the user names one. Point to poteto-mode for hard tasks; don't paste the playbook in. If pstack isn't installed, say so and keep the same discipline.</p>\n<h2>Other bots</h2>\n<p>Scouts, shopkeepers, life admin, dispatchers, writers. In the description: the job in the first sentence, silence on empty runs, the refused neighbor verb, and the concrete how (which API, inbox, or channel), plus the approval-card rule if it gates on the user. No coding instructions unless the job is explicitly split between coordinating and coding.</p>\n<h2>Create and prove it</h2>\n<ol>\n<li><code>CreateAgent</code> takes <code>name</code> and <code>description</code>. The name is <code>Name - Role</code>. The description is the whole persona, including the shared corrections log path and the correct-once steps. There is no delete tool, so create only for a real job that passed the split test.</li>\n<li>Read <code>/home/box/agent-data/agents/&lt;id&gt;/profile.json</code> back. Don't trust the tool's acknowledgment alone.</li>\n<li>Send the new bot one realistic test message and check that the reply matches the job and the voice. Fix the description if it doesn't.</li>\n<li>If the job needs a routine, you can't create another bot's routines. Use <code>SendToAgent</code> to tell the new bot to call <code>update_state</code> (target <code>routine</code>, action <code>create</code>) with the exact name, prompt, and schedule or trigger. If that fails, give the user the one-line instruction to paste into the new bot.</li>\n<li>Tell the user the name and the one-line job, and that they can delete it from the sidebar (right-click, Delete).</li>\n</ol>\n<h2>Inspired by</h2>\n<ul>\n<li><a href=\"https://x.ai/bot/marketplace/bots/dr-eggbot-v2\">Lauren Tan (@poteto), dr eggbot</a> (marketplace template; no reuse license shown, so no text is copied). Does well: one job, one voice, explicit anti-jobs, a short intake, and healthcheck routines on first run. Missing: its listing has no rule for approval cards, no read-back of the created profile, and no test message to the new bot.</li>\n<li><a href=\"https://github.com/cursor/plugins/blob/e31650eea443aaea1e84cc15d88c13f40080b275/pstack/skills/poteto-mode/SKILL.md\">Lauren Tan, pstack poteto-mode</a> (MIT). Does well: the coding-agent quality bar (unslopped prose, verified work, never block the human on reversible choices). Missing: written for a coding agent, not for designing other bots.</li>\n<li><a href=\"https://www.anthropic.com/research/building-effective-agents\">Anthropic, Building effective agents</a>. Does well: start with the simplest setup and add complexity only when it pays, and design tool interfaces carefully. Missing: about architecture patterns, with no persona or anti-job guidance.</li>\n<li>Harness²'s Propose-Probe-Compose loop and its lessons ledger (google-research/harness2). Does well: a propose-probe-compose loop and a lessons ledger. Missing: a research framework around JobBench, LAB, and WorkBuddy-Bench, plus a local demo with no credentials and authentication alternatives; not a procedure for designing Grok Bot personas.</li>\n</ul>\n<h2>What this version adds</h2>\n<ul>\n<li>The approval-card rule baked into every bot that gates on the user.</li>\n<li>A read-back and a live test message before telling the user it's done.</li>\n<li>The routine hand-off with a paste-able fallback.</li>\n<li>A test-and-keep loop with a fixed probe set per bot, pass or fail scoring, real friction as a new probe, and a TRY then KEEP rule for lessons.</li>\n<li>A split test that turns a two-job sentence, or a step with its own send or spend approvals, into two bots.</li>\n<li>A short org-fit check: chief of staff, heads and doers; about 5 to 8 bots the user talks to; <code>Name - Role</code>; a report asked three times becomes a daily routine.</li>\n<li>A correct-once rule: a correction updates the instructions and the SOP, writes one dated line to a shared log other bots can read, and tells the user which SOP changed.</li>\n</ul>\n<h2>Test-and-keep (before create, and on every persona rewrite)</h2>\n<p>A persona is a harness. Test it before you ship it. Cheap version: reason it through. Do not create test bots.</p>\n<ol>\n<li><strong>Probe set.</strong> Write 4 fixed test asks for this job: one typical ask, one anti-job ask (the adjacent verb it must refuse), one decision that needs a tap card, and one quiet case (nothing to report). Save them with the lessons file so later rewrites use the same probes.</li>\n<li><strong>Propose.</strong> For a rewrite, keep the current persona as the control and write 1-2 versions. Change one thing per version.</li>\n<li><strong>Probe.</strong> Read each version against each probe. Score it pass or fail: the right action, the anti-job refused, a card (not plain text), and silence in the quiet case. Pick the version with the most passes. On a tie, pick the shorter one.</li>\n<li><strong>Compose.</strong> Ship the winner. Merge a line from another version only if that line fixed a failed probe on its own.</li>\n<li><strong>Watch.</strong> After the bot runs, real friction is the true probe. When the user or a transcript healthcheck shows a failure, add it as a new probe and rerun steps 2-4.</li>\n<li><strong>Record.</strong> Add 1-3 lines to the lessons file: the date, the bot, what failed or helped, and the evidence. Mark a line TRY first, and KEEP only after it wins a probe on a second bot.</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":9811,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:42:39.208254Z","sha256":"AE54E7070E77DDCBF32F85F3E1FA8610A3E6025AE28323CD652EE843D773253B","sizeBytes":4414},"review":null,"source":{"repositoryUrl":"https://github.com/botkitsdev/botkits","path":"skills/bots/botkits-design-a-grok-bot","license":"MIT","commit":"de6c58eb846904a61a8cf771c7498d8281206bae","subtreeSha":"C680C4BFC55865278B5A0B43F936740A83B13E519CB1C17B89EBB54ABE7EE1A3","lastSyncedAt":"2026-11-29T00:42:17.316741Z"},"reviewedAt":"2026-11-29T00:43:55.858452Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/botkitsdev/botkits/tree/main/skills/bots/botkits-design-a-grok-bot"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install botkitsdev-botkits@llmmart"},{"target":"git","command":"git clone https://github.com/botkitsdev/botkits.git"}]}