Skip to content
Agentmart
Submit a tool

anvia-chat

Wire an Anvia chat UI end to end — server stream route, client transport, React hook, and UI primitives.

Skill by anvia-hq

IndexedMIT★ 57
Write a review

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/anvia-hq-anvia-chat

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.

We use your email only for this newsletter. Privacy

About

Wire an Anvia chat UI end to end — server stream route, client transport, React hook, and UI primitives.

Use cases: design, frontend, backend

No 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 and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/anvia-chat

What's inside

Skill name
anvia-chat
Description
Wire an Anvia chat UI end to end — server stream route, client transport, React hook, and UI primitives.
License
MIT
Instructions
58 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • SKILL.md
  • react-ui.md · references/
  • server-protocol.md · references/
  • transports-state.md · references/
  • check-chat-boundary.sh · scripts/

SKILL.md (first lines)

# Anvia Chat Skill

Use this skill when the user wants a chat or completion UI backed by Anvia:
new chat routes, transports, `useChat`/`useCompletion` wiring, message rendering,
resumable streams, agent tool-approval interactions, or `anvia add chat` work.

## Process

1. Build the server route first (`references/server-protocol.md`).
2. Pick the transport and state conversions (`references/transports-state.md`).
3. Wire the React controller and render UI primitives (`references/react-ui.md`).
4. Run `scripts/check-chat-boundary.sh` from the app root before claiming done.

## Minimal slice

```ts
// Server route: core events -> client protocol -> framed response.
import { completionToClientStream, parseClientStreamRequest } from "@anvia/client";
import { streamCompletion } from "@anvia/core";
import { createClientStreamResponse } from "@anvia/server";

const body = parseClientStreamRequest(await request.json());
if (body.type !== "messages") throw new Error("This completion endpoint accepts messages only.");
const events = completionToClientStream({
  events: streamCompletion({ model, messages: body.messages }),
});
return createClientStreamResponse({ events }); // JSONL by default
```

```tsx
// App: explicit transport, hook owns state, primitives render it.
import { createHttpClientTransport } from "@anvia/client";
import { useChat } from "@anvia/react";
import { ChatProvider, ComposerPrimitive, ThreadPrimitive } from "@anvia/react-ui";

const transport = createHttpClientTransport({ endpoint: "/api/chat" });
const chat = useChat({ transport });

<ChatProvider controller={chat}>
  <ThreadPrimitive.Root>
    <ThreadPrimitive.Viewport>
      <ThreadPrimitive.Messages />
    </ThreadPrimitive.Viewport>
    <ComposerPrimitive.Root>
      <ComposerPrimitive.Input placeholder="Send a message..." />
      <ComposerPrimitive.Submit>Send</ComposerPrimitive.Submit>
    </ComposerPrimitive.Root>
  </ThreadPrimitive.Root>
</ChatProvider>;
```

## Output

Keep the answer to the smallest working vertical slice: one route, one transport,
one hook, one render tree. Point to the relevant reference file instead of
pasting its contents into chat.

From anvia-hq/anvia, MIT.

More from anvia-hq/anvia

Signals

Stars
57
Forks
6
Open issues
0
Last commit (this folder)
Sep 11, 2026 (1 month ago)
Last release
Oct 23, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
Website
anvia.dev
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from anvia-hq

Cite this page

anvia-chat skill. Agent Mart. https://agentmart.dev/skills/anvia-hq-anvia-chat (last updated 2026-10-24)