Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/moeru-ai-xsai-text
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: model-inference
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/xsai-text
What's inside
- Skill name
xsai-text- Description
- Generate or stream text with xsAI. Use for tool calls, structured output, conversations, or protocol adapter selection.
- License
- MIT
- Instructions
- 34 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# xsAI text
Read only the pages needed for the task. The URLs below return Markdown. Make sure that the API matches the installed xsAI version.
An adapter connects a model to an HTTP protocol.
| Task | Page |
| --- | --- |
| First request, install | https://xsai.js.org/getting-started.md |
| One reply | https://xsai.js.org/text/generating.md |
| Incremental output | https://xsai.js.org/text/streaming.md |
| Tools, the tool loop, and its hooks | https://xsai.js.org/text/tools.md |
| Structured output | https://xsai.js.org/text/structured-output.md |
| Multi-turn input, images, Parts | https://xsai.js.org/text/messages.md |
| Event types, the terminal event, event listeners | https://xsai.js.org/text/events.md |
| Adapter choice and provider options | https://xsai.js.org/text/adapters.md |
| Options, results, errors | https://xsai.js.org/text/api.md |
| Cancellation | https://xsai.js.org/text/generating.md |
| Failures | https://xsai.js.org/text/troubleshooting.md |
| Custom models, typed provider options | https://xsai.js.org/advanced/custom-models.md, https://xsai.js.org/advanced/module-augmentation.md |
| Schemas for tools without native JSON Schema support | https://xsai.js.org/xsschema.md |
Use these API rules:
- Pick the adapter by endpoint protocol: `responses()` from `@xsai/text-responses`, `chat()` from `@xsai/text-chat`, or `messages()` from `@xsai/text-messages`. Use the project's endpoint and model configuration.
- Operations take the model first: `generateText(model, { input })`. Import from `@xsai/text` or the existing `xsai` package.
- `generateText` returns a result object. Before you parse `result.text`, make sure that the output is complete and contains no refusal. Then parse the JSON and make sure that it matches the schema.
- If you consume `stream`, also handle the `result` promise from `streamText`. Failures that the provider reports reject `result`. Network errors or errors in the response data can also make the stream throw.
- Messages requires `maxOutputTokens`.
- Preserve the returned assistant messages and their metadata. After a tool loop, send each step's message and tool results in the next request.
For code changes, make sure that the installed types accept the code. Test the affected behavior with existing tests or mock responses.From moeru-ai/xsai, MIT.
More from moeru-ai/xsai
- 0.818score
simple-english
moeru-ai
Write or rewrite text in plain, layman-readable English in the spirit of ASD-STE100 Simplified Technical English: short sentences, active voice, simple…
SkillAFreshness: A★ 664Claude Code +9 - 0.809score
i-have-adhd
moeru-ai
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time…
SkillAFreshness: A★ 664Claude Code +9 - 0.805score
xsai
moeru-ai
Choose xsAI packages or route tasks across text, audio, decisions, images, embeddings, and model lists.
SkillAFreshness: A★ 664Claude Code +9 - 0.803score
xsai-decide
moeru-ai
Ask typed questions about an input with xsAI, such as classification, routing, policy checks, or rating.
SkillAFreshness: A★ 664Claude Code +9 - 0.799score
xsai-image
moeru-ai
Generate images from text prompts with xsAI's image package.
SkillAFreshness: A★ 664Claude Code +9 - 0.799score
xsai-audio
moeru-ai
Generate or stream speech and transcribe recordings with xsAI's audio package.
SkillAFreshness: A★ 664Claude Code +9 - 0.799score
xsai-model
moeru-ai
List the models that a service offers or read one model entry with xsAI.
SkillAFreshness: A★ 664Claude Code +9 - 0.796score
xsai-embed
moeru-ai
Create text embeddings with xsAI for one string or a batch.
SkillAFreshness: A★ 664Claude Code +9 - 0.686score
diagnosing-bugs
moeru-ai
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: A★ 664Claude Code +9 - 0.681score
domain-modeling
moeru-ai
Build and sharpen a project's domain model.
SkillAFreshness: A★ 664Claude Code +9 - 0.681score
codebase-design
moeru-ai
Shared vocabulary for designing deep modules.
SkillAFreshness: A★ 664Claude Code +9 - 0.681score
code-review
moeru-ai
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding…
SkillAFreshness: A★ 664Claude Code +9
Signals
- Stars
- 664
- Forks
- 62
- Open issues
- 4
- Last commit (this folder)
- Oct 10, 2026 (17 days ago)
- Last release
- Sep 30, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/moeru-ai/xsai
- Website
- xsai.js.org
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from moeru-ai
- 0.818score
simple-english
moeru-ai
Write or rewrite text in plain, layman-readable English in the spirit of ASD-STE100 Simplified Technical English: short sentences, active voice, simple…
SkillAFreshness: A★ 664Claude Code +9 - 0.809score
i-have-adhd
moeru-ai
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time…
SkillAFreshness: A★ 664Claude Code +9 - 0.805score
xsai
moeru-ai
Choose xsAI packages or route tasks across text, audio, decisions, images, embeddings, and model lists.
SkillAFreshness: A★ 664Claude Code +9 - 0.803score
xsai-decide
moeru-ai
Ask typed questions about an input with xsAI, such as classification, routing, policy checks, or rating.
SkillAFreshness: A★ 664Claude Code +9 - 0.799score
xsai-image
moeru-ai
Generate images from text prompts with xsAI's image package.
SkillAFreshness: A★ 664Claude Code +9 - 0.799score
xsai-audio
moeru-ai
Generate or stream speech and transcribe recordings with xsAI's audio package.
SkillAFreshness: A★ 664Claude Code +9
Cite this page
xsai-text skill. Agent Mart. https://agentmart.dev/skills/moeru-ai-xsai-text (last updated 2026-10-24)