Home › Grok Build lesson 3: Skills and scripts

Grok Build lesson 3: Skills and scripts

Last checked

Once it works in your project, make it work your way: an AGENTS.md file and skills give it your conventions, and headless mode lets scripts and automations call it.

Step by step

  1. Add an AGENTS.md file to the project with your rules (test command, code style, folders to avoid).
  2. Turn a session that went well into a reusable skill with /skillify.
  3. Skills run automatically when a task matches, or you call them by name.
  4. For scripts, run grok -p "your prompt" to get an answer without the full-screen interface.
  5. Add --output-format streaming-json when another program needs to read the output.

Try it: examples

Good to know

Sources (official pages, read Nov 8, 2026)

Written from SpaceXSI's official documentation and product pages; we don't run hands-on tests. Features and limits vary by plan and country.

Report an error on this page