How this helps you
The parts of a job that must be exact stop drifting between runs, and the Bot keeps its judgment for the parts that need it.
Look at your [skill name] skill. List each step and mark the ones that must give exactly the same result every time (fixed formats, calculations, file names, the order of API calls). For those steps only, write a small script on your computer that does the step, test it on [sample input], and show me the output next to [expected output]. Then update the skill to run the script instead of doing that step by hand. If the script fails, stop and tell me; don't fall back to doing it by hand. Show me the updated skill before you save it.
Fill in: [skill name]: the skill to tighten. [sample input] and [expected output]: one real example and the exact result you want. The prompt is ours, built from the workshop advice.
What they did
In the official Team Bots workshop, someone asked whether part of a Team Bot can be fixed and predictable while it uses its own judgment elsewhere. Akshat Agrawal, who works on the product at SpaceXSI, said the skills standard was designed for agents to follow fairly strictly, and the team is confident in how well Grok Bot follows instructions, so encoding the steps in a skill often works. For work that really is a fixed step-by-step routine, he said many people build a custom MCP server that calls an API or runs code to do it. That part is then not agentic, costs nothing to run, and happens the same way every time, and the Bot simply calls it. Code the Bot can run on its own computer is the other option. His recommendation: start with a skill and make it good; if there are still gaps, turn that specific action into code the Bot can run.
Who it's for: People whose Bot does reports, invoices, file handling or data entry where one wrong format or number matters.
Before you start
- A workflow the Bot already does as a skill
- A clear example input and the exact output you expect
- For an MCP server: a developer, or a Bot with a coding tool
How to try it
- Write the workflow as a skill first: ask the Bot to save the exact steps.
- Run it on the same sample input a few times and note where the results differ.
- For the step that drifts, such as a calculation, a file name or a fixed series of API calls, paste the prompt below so the Bot turns it into a script on its computer.
- If the step has to call another system for the whole team, have a developer wrap it in a small custom MCP server and connect it to the Bot.
- Check that the updated skill calls the script or tool, and that it stops and tells you when the script fails.
What to expect
Illustrative: an invoice skill gives totals rounded two different ways across three runs. The Bot writes a short script for the total, the skill now calls it, and three new runs give the same number.
Common mistakes
- Going straight to code. A good skill is often enough, and it is easier to change.
- Turning the whole workflow into code. Keep code for the steps that must not vary and leave judgment to the Bot.
- Letting it quietly fall back to doing the step by hand when the script breaks. Ask it to stop and tell you.
- Skipping the side by side check against the expected output.
Related tips
- Teach a task by doing it once: Do the workflow while it watches; it records the steps.
- Let your Bot open a page on your own computer with Tailscale: Kacper Rutkiewicz shows how a Bot reaches something running on his PC that isn't on the internet: install Tailscale, add the Tailscale plugin, then ask for the page by port.
- How to trust your Bot's work more: Put most of your effort at the top: code structure, then lint/tests/CI, then prose rules, then human review.
Worth knowingIf the code has to reach a tool on your private network, Grok Bot can now join a Tailscale tailnet to reach private MCP servers (see the related tip). The claim that a coded step costs nothing refers to the code itself; the Bot still uses usage around it.Next in Skills →Make a Bot the expert on a tricky tool before it starts
Learn more: Grok Bot Skills: How to Create, Use and Audit Them · All Grok Bot skills tips