Skip to main content

Skill turns a 2x2 expression sheet into state-switching bot avatars; Grok Bot gets a GIF

GitHubGitHub9618822026-11-26

Getting startedLimitsSource read in fullRead first
GitHubGitHub9618822026-11-26

Open original

Overview

A Grok Bot bot owner who wants an expressive avatar instead of one still image uploads the repo's single-file skill, has the 2x2 expression sheet generated and sliced, and uploads the resulting four-expression GIF as the bot's avatar.

Workflow

  1. What it is: a skill pack with two Python scripts that turns one 2x2 expression sheet into a still PNG and four GIFs, giving a bot an avatar that changes expression. It targets two platforms: OpenMausBot, where a theme swaps the GIFs by bot state (hover, working, replying), and Grok Bot, where the avatar is one GIF that cycles all four expressions. The repo ships the agent skill SKILL.md, the Grok Bot single-file version grok/bot-expression-avatar.md, the slicer scripts/make_avatar.py, the CSS generator scripts/maus_css.py, example sheets with outputs, and a 29-second demo video. The README does not label it a hackathon, demo or prototype.
  2. Grok Bot parts used: one skill and one bot avatar, both managed inside Grok Bot's own interface. The skill is named bot-expression-avatar; for Grok Bot it is uploaded as the single text file grok/bot-expression-avatar.md, because the README states that Grok Bot imports text files such as .md and .txt, that each file becomes one skill, and that zip or .py files are skipped. The avatar is one image per bot, set through the Edit bot avatar dialog; the slicer outputs name-grok.gif for this upload. There is no x.ai/bot template link, and no Bots, Routines, connectors, Pages or Vault.

    Not part of Grok Bot: Python 3 and Pillow, the two scripts, the image generator for the sheet, the OpenMausBot theme system, and the other agents the README names (Claude Code, Codex). No xAI API or Grok Build parts appear in the repo.

  3. You need: Python 3 and Pillow, an image generator, and access to Grok Bot's interface. Slicing yourself needs Python 3 and Pillow (pip install pillow); the Grok Bot single-file skill embeds the script because Grok Bot bots run in the cloud and cannot read local folders. The sheet comes from any image generator (GPT Image, Midjourney or any other), or from the agent itself when it has an image tool. The skill upload and the avatar upload are manual steps the owner does in Grok Bot's interface. No API keys and no server appear in the install path; any Grok Bot plan requirement is not stated in the source. The OpenMausBot path additionally needs an OpenMausBot installation.
  4. Install: upload one .md file into Grok Bot, or clone the repo and run the slicer yourself. The repo's own path, in its order:
    • Fastest way, for agents that can clone repos (OpenMausBot, Claude Code, Codex): hand them the link with the README's prompt — such an agent cannot change a Grok Bot avatar, which stays manual:

      Use https://github.com/961882/bot-expression-avatar to make an expression avatar for my bot

    • Local setup: pip install pillow, then git clone https://github.com/961882/bot-expression-avatar.git.
    • As a skill for local agents: copy the repo folder into the agent's skills folder (the README shows cp -r bot-expression-avatar ~/.agents/skills/); the README notes SKILL.md is written in Chinese and agents read it fine.
    • Grok Bot skill upload: upload only the single-file version grok/bot-expression-avatar.md through Grok Bot's skill import — bots run in the cloud and cannot read local folders, and zip or .py uploads are skipped.
    • Usage Step 1: generate one 2x2 expression sheet with the README's Step 1 prompt template (also in SKILL.md; too long to retype here, so copy it from the repo), replacing the bracketed placeholders; check that all four panels line up on a white background, or generate again.
    • Usage Step 2: python3 scripts/make_avatar.py sheet.png out_dir name [--size 320] — outputs name.png, name-hover.gif, name-busy.gif, name-talk.gif and name-grok.gif; 320 px is the default, --size 200 for smaller files.
    • Usage Step 3B, the Grok Bot avatar: click the bot's name, choose Edit bot avatar, and upload name-grok.gif (png, jpeg, gif or webp, up to 20 MB). Pitfall written by the author: if the avatar stops moving after the crop dialog flattens the GIF, upload name.png instead.
  5. After install: the bot's avatar becomes one GIF that cycles the four expressions.
    • Grok Bot keeps one cloud avatar per bot with no state switching, so the GIF loops calm, blink, working face and happy/talking in turn.
    • Trigger: ask for an expression avatar; SKILL.md tells the agent to check its own tools first — generate the sheet itself only with an image tool, otherwise hand the prompt to the user — and in the Grok Bot case to always leave the avatar upload to the user.
    • It reads one 2x2 expression sheet and produces one still PNG plus four GIFs per character.
    • The avatar upload always waits for the owner, done in Grok Bot's interface in about 30 seconds per the README.
    • On OpenMausBot the same outputs give hover, working and replying states through generated theme CSS, outside Grok Bot.
  6. Did the author run it: no run records; the repo ships example artifacts only. The repository has no run records from the author — no history files, event logs or result tables. It ships four example 2x2 sheets (elephant, tiger, camel, meerkat) in examples/sheets/, the full generated avatar set for the elephant at --size 200 in examples/output/, plus docs/demo.gif and the 29-second docs/demo.mp4 with Chinese captions (author's claim, not reproduced). Nothing shows the skill imported into Grok Bot or a GIF uploaded as a Grok Bot avatar, and the example table of four thinking-partner bots does not say which platform they run on.

Key points and results

  • Maturity: At fetch time on 2026-11-26 the repo was less than a day old (created 2026-11-25 18:52 UTC, last pushed 2026-11-25 19:37 UTC), with 10 commits, 0 stars, 0 forks, 0 open issues or PRs, and an MIT license.
  • Permissions and boundaries: the scripts only slice local images and write CSS; nothing in the repo sends messages, buys, posts or contacts third parties. In Grok Bot, the skill upload and the avatar upload are manual steps done by the owner in the interface. In OpenMausBot, the skill may change at most 10 settings per conversation turn — one bot uses 4 (three GIFs plus the picture) — and only in a turn where the user sent a message.
  • Known limits: Grok Bot keeps one cloud avatar per bot with no state switching, so the GIF just loops all four expressions. Grok Bot imports only text files (.md or .txt), one skill per file, and skips zip and .py, so only grok/bot-expression-avatar.md can be uploaded. The avatar crop dialog can flatten a GIF; the fallback is the still PNG. Slicing needs Python 3 and Pillow, and the four panels must line up on a white background or the character jumps. The OpenMausBot CSS breaks when the app front-end changes, and avatars stay still under the system reduce-motion setting.
  • Worth borrowing: generate one 2x2 sheet and slice it instead of asking an image model for separate pictures — one image keeps the character in the same spot, so switches do not jump (README, How it works; scripts/make_avatar.py).
  • Worth borrowing: ship a Grok Bot skill as one .md file with the script embedded, because Grok Bot imports text files only and skips zip and .py (grok/bot-expression-avatar.md).
  • Worth borrowing: give each bot a different animal and a role-related gold pin, and record the animals already used so a bot group never repeats one (SKILL.md, style and wrap-up sections).

Source

Platform
GitHub
Author
961882
Published
Categories
Getting started, Limits

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.