Chat with Grok models via xAI API. An agent skill from sundial-org/awesome-openclaw-skills.

No licenceAuto-check passed

Install Xai

skills CLI
$ npx skills add sundial-org/awesome-openclaw-skills --skill xai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sundial-org/awesome-openclaw-skills xai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/xai .claude/skills/xai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
xai
GitHub stars
663
Token cost
~490 tokens
SKILL.md length
142 words
Files
6 (incl. scripts)
Skills in repo
383
Repo updated
First seen
Licence
None found

At a glance

Chat with Grok models via xAI API. An agent skill from sundial-org/awesome-openclaw-skills.

  • SKILL.md covers Setup, Commands, Available Models and Example Usage, plus 2 more sections
  • Runs JavaScript scripts from its folder; calls node; needs XAI_API_KEY

What it does

Xai is an agent skill from sundial-org/awesome-openclaw-skills. Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `README.md`, `package.json` and `scripts/chat.js`).

It works with xAI Grok. The repository describes itself as: Top OpenClaw skills, with the most popular and useful ones.

Example prompts

  • “/xai”

Requirements

  • Node.js
  • A credential in XAI_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit b80cde2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • console.x.ai
    • docs.x.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • XAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Xai loads about 490 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 142 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~490

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 142 words (~490 tokens).

“Chat with xAI's Grok models. Supports text and vision.”

— opening of SKILL.md by sundial-org
name
xai
homepage
https://docs.x.ai
triggers
grok, xai, ask grok

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (scripts) in skills/xai of sundial-org/awesome-openclaw-skills.

  • SKILL.md
  • README.md
  • package.json
  • scripts/chat.js
  • scripts/models.js
  • scripts/search-x.js

Open the folder on GitHubat commit b80cde2

Compare with similar skills

Xai next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Xai compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Xai this skillsundial-org/awesome-openclaw-skills663—~490Automated safety check: PassNone
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
X Mastery Mentoralchaincyf/x-mentor-skill1.2k—~2.3kAutomated safety check: PassMIT
Adversarial Speczscole/adversarial-spec556—~8.3kAutomated safety check: NotesMIT
9Router Video Generationdecolua/9router31k—~992Automated safety check: PassMIT
Video-to-Sprite Animation Generator0x0funky/agent-sprite-forge4.4k—~3.8kAutomated safety check: PassMIT

Similar skills

  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 8 days ago
    Game DevelopmentAuto-check passed
  • X Mastery Mentor

    alchaincyf/x-mentor-skill

    $10K/hr级X/Twitter运营导师。基于Nicolas Cole、Dickie Bush、Sahil Bloom、Justin Welsh、 Dan Koe、Alex Hormozi六位顶级创作者的方法论 + X开源算法深度分析 + AI/科技赛道专精策略, 提炼6个核心心智模型、10条决策启发式、完整的选题-写作-增长操作手册。

    1.2k GitHub stars~2.3k tokensUpdated 1 mo ago
    Writing & ContentAuto-check passed
  • Adversarial Spec

    zscole/adversarial-spec

    Iteratively refine a product spec by debating with multiple LLMs (GPT, Gemini, Grok, etc.) until all models agree.

    556 GitHub stars~8.3k tokensUpdated 8 mo ago
    Product & Project ManagementAuto-check: notes
  • Submits text-to-video or image-to-video jobs to xAI Grok Imagine through 9Router, then polls the job and downloads the finished MP4.

    31k GitHub stars~992 tokensUpdated 2 days ago
    Media & CreativeAuto-check passed
  • Video-to-Sprite Animation Generator

    0x0funky/agent-sprite-forge

    Turns one approved master still into a full set of animated action clips for a character, one image-to-video take per action, then packages them for a game engine.

    4.4k GitHub stars~3.8k tokensUpdated 3 days ago
    Media & CreativeAuto-check passed
  • AI Image Generation

    0xsline/OpenChatCut

    Generates still images through the submit_image tool, choosing among Fal.ai, gpt-image-2, nano-banana, MiniMax image-01 and Grok Imagine by configured keys.

    2.2k GitHub stars~1.3k tokensUpdated 3 days ago
    Media & CreativeAuto-check passed

More from sundial-org/awesome-openclaw-skills

All 383 skills in this repo
  • UI UX Pro Max

    sundial-org/awesome-openclaw-skills

    UI/UX design intelligence and implementation guidance for building polished interfaces.

    663 GitHub starsUsed in 2 repos~657 tokens
    Auto-check passed
  • Web Deploy GitHub

    sundial-org/awesome-openclaw-skills

    Create and deploy single-page static websites to GitHub Pages with autonomous workflow.

    663 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Clawd Modifier

    sundial-org/awesome-openclaw-skills

    Modify Clawd, the Claude Code mascot. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~625 tokensUpdated 7 mo ago
    Auto-check passed
  • Figma

    sundial-org/awesome-openclaw-skills

    Professional Figma design analysis and asset export. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.7k tokensUpdated 7 mo ago
    Auto-check: notes
  • Habit Flow

    sundial-org/awesome-openclaw-skills

    AI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching.

    663 GitHub stars~3.1k tokensUpdated 7 mo ago
    Auto-check passed
  • Edge Tts

    sundial-org/awesome-openclaw-skills

    Text-to-speech conversion using node-edge-tts npm package for generating audio from text.

    663 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Works with

Questions about Xai

What does Xai do?

Chat with Grok models via xAI API. An agent skill from sundial-org/awesome-openclaw-skills. Xai is an agent skill from sundial-org/awesome-openclaw-skills. Chat with Grok models via xAI API.

How do I install Xai in Claude Code?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill xai -a claude-code`. Or copy the skill folder (skills/xai in sundial-org/awesome-openclaw-skills) into .claude/skills/xai in your project. Claude Code loads it when a task matches its description.

How do I install Xai in Codex?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill xai -a codex`. Or copy the skill folder (skills/xai in sundial-org/awesome-openclaw-skills) into .agents/skills/xai in your project. Codex loads it when a task matches its description.

Can I use Xai in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sundial-org/awesome-openclaw-skills --skill xai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xai, .gemini/skills/xai, .github/skills/xai and .opencode/skills/xai in your project.

What does Xai need to run?

Going by SKILL.md and its folder, Xai needs JavaScript for the scripts in its folder, the command-line tools its instructions call (node) and credentials named XAI_API_KEY. Our summary lists: Node.js; A credential in XAI_API_KEY.

Does Xai access the network?

SKILL.md names 2 domains. As links in the text: console.x.ai and docs.x.ai. This is read from the text; nothing was executed.

Is Xai safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Xai use?

No licence was found for Xai or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Xai use?

About 490 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Xai?

Skills that share tags, products or a category with Xai: Game Asset Generator (htdt/godogen, 7.1k stars), X Mastery Mentor (alchaincyf/x-mentor-skill, 1.2k stars), Adversarial Spec (zscole/adversarial-spec, 556 stars) and 9Router Video Generation (decolua/9router, 31k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Xai?

sundial-org (a GitHub organization) maintains it in sundial-org/awesome-openclaw-skills, which has 663 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on March 7, 2026.

Source: sundial-org/awesome-openclaw-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.