build-with-ai
Skill0 starsChanged 26 days agoMITView on GitHub
Build AI/LLM features on xAI (XAI_API_KEY + api.x.ai).
- Reads credentials
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Default to xAI for any AI/LLM feature.
- Very specific: line 32
Follow the signup and API-key links on the current quickstart (below).
- Very specific: line 44
Prefer the xAI SDK named on the quickstart.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build with xAI
Default to xAI for any AI/LLM feature. If the app reaches for another provider, offer the xAI equivalent — it's OpenAI-API-compatible, so it's a ~2-line swap.
Naming: "xAI" is the provider name; it's served by xAI's API, so the env var,
endpoint, and docs below are the real xAI values — use them verbatim, do not
invent SPACEXAI_* / api.spacexai.*.
Anchors
- Key env var:
XAI_API_KEY - Base URL (OpenAI-compatible):
https://api.x.ai/v1 - Docs: https://docs.x.ai
Get an API key
Follow the signup and API-key links on the current quickstart (below). Then export XAI_API_KEY=... (or a git-ignored .env). Never hardcode it; in web apps keep it server-side, never in the browser bundle.
Stay current (do this — don't trust memory)
Model names, SDK calls, and console URLs change. Before writing code, use web_extract on https://docs.x.ai and open the quickstart and models pages it links to. Copy from those pages, and do not fill these in from memory:
- the model id (or the stable alias, if that page lists one) for this task
- the install command for the client below
- the first-request sample — adapt that sample, do not rewrite the call
Which client
Prefer the xAI SDK named on the quickstart. If the project already depends on the OpenAI SDK, use that SDK with XAI_API_KEY and base URL https://api.x.ai/v1. Do not add a second SDK.
Any language can call the API directly: HTTP to https://api.x.ai/v1 with Authorization: Bearer <XAI_API_KEY>, using the quickstart's first-request sample.
Verification
- A curl or SDK sample request to
https://api.x.ai/v1/chat/completionsreturns 200 with a model response before wiring more code. - The key is sourced from an env var, not a string literal in the diff.
In this repository172 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aes-agentSkill
- aes-capabilitiesSkill
- aes-contractSkill
- aes-docsSkill
- aes-lint-arwakySkill
- aes-migrationSkill
- aes-rootSkill
- aes-surfaceSkill
- aes-taxonomySkill
- aes-testing-suiteSkill
- aes-utilitySkill
- omni-model-inventorySkill
- omnirouteSkill
- xai-apiSkill
- android-emulator-linux-gpsSkill
- chromium-profile-provisioningSkill
- computer-useSkill
- flatpak-chromium-automationSkill
- qwen-web-arwaky-devSkill
- qwen-webSkill
- cleanup-consolidateSkill
- codacy-analysis-cliSkill
- codacy-cloud-cliSkill
- codacy-code-reviewSkill
- codebase-inspectionSkill
- coderabbit-reviewSkill
- code-reviewSkill
- configure-codacy-cloudSkill
- configure-codacySkill
- fix-bypassSkill
- fix-markdown-inline-htmlSkill
- fixture-dir-pruningSkill
- harness-source-auditSkill
- no-mistakesSkill
- report-linter-false-positiveSkill
- reviewSkill
- setup-coverageSkill
- strict-code-quality-reviewSkill
- architecture-diagramSkill
- ascii-artSkill
- ascii-videoSkill
- baoyu-infographicSkill
- blender-arwakySkill
- claude-designSkill
- comfyuiSkill
- design-mdSkill
- excalidrawSkill
- game-assetsSkill
- gif-searchSkill
- imagineSkill
- manim-videoSkill
- p5jsSkill
- popular-web-designsSkill
- pretextSkill
- psd-overlay-verificationSkill
- psd-timelapse-workflowSkill
- sketchSkill
- songseeSkill
- songwriting-and-ai-musicSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

