Skip to content
Back to skills

Cloudbase Agent Ts

ASecurity

Build and deploy AI agents with Cloudbase Agent (TypeScript), a TypeScript SDK implementing the AG-UI protocol. Use when: (1) deploying agent servers with @cloudbase/agent-server, (2) using LangGraph adapter with ClientStateAnnotation, (3) using LangChain adapter with clientTools(), (4) building custom adapters that implement AbstractAgent, (5) understanding AG-UI protocol events, (6) building web UI clients with @ag-ui/client, (7) building WeChat Mini Program UIs with @cloudbase/agent-ui-min...

  • 430 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 3, 2026
devopsjavascripttypescriptjavafrontendbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add TencentCloudBase/awesome-cloudbase-examples --skill cloudbase-agent-ts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloudbase Agent Ts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloudbase Agent Ts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tencentcloudbase-cloudbase-agent-ts-d073b8b1/badge)](https://www.skillsdirectory.com/skills/tencentcloudbase-cloudbase-agent-ts-d073b8b1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloudbase-agent-ts
description: "Build and deploy AI agents with Cloudbase Agent (TypeScript), a TypeScript SDK implementing the AG-UI protocol. Use when: (1) deploying agent servers with @cloudbase/agent-server, (2) using LangGraph adapter with ClientStateAnnotation, (3) using LangChain adapter with clientTools(), (4) building custom adapters that implement AbstractAgent, (5) understanding AG-UI protocol events, (6) building web UI clients with @ag-ui/client, (7) building WeChat Mini Program UIs with @cloudbase/agent-ui-miniprogram."
alwaysApply: false
---

# Cloudbase Agent (TypeScript)

TypeScript SDK for deploying AI agents as HTTP services using the AG-UI protocol.

> **Note:** This skill is for **TypeScript/JavaScript** projects only.

## When to use this skill

Use this skill for **AI agent development** when you need to:

- Deploy AI agents as HTTP services with AG-UI protocol support
- Build agent backends using LangGraph or LangChain frameworks
- Create custom agent adapters implementing the AbstractAgent interface
- Understand AG-UI protocol events and message streaming
- Build web UI clients that connect to AG-UI compatible agents
- Build WeChat Mini Program UIs for AI agent interactions

**Do NOT use for:**
- Simple AI model calling without agent capabilities (use `ai-model-*` skills)
- CloudBase cloud functions (use `cloud-functions` skill)
- CloudRun backend services without agent features (use `cloudrun-development` skill)

## How to use this skill (for a coding agent)

### MUST READ: Read ALL docs that match your task

**Before writing any code**, identify which docs you need and read ALL of them. Reading only a subset leads to incomplete implementations (missing CORS, wrong adapter patterns, no UI client code).

#### Scenario-based reading lists

| If the task asks you to... | You MUST read these docs |
|---|---|
| **Build a full-stack agent** (backend + frontend) | `server-quickstart.md` + adapter doc + `ui-clients.md` |
| **Deploy an agent server only** | `server-quickstart.md` |
| **Use LangGraph for agent logic** | `adapter-langgraph.md` + `server-quickstart.md` |
| **Use LangChain for agent logic** | `adapter-langchain.md` + `server-quickstart.md` |
| **Build a custom adapter** (no LangGraph/LangChain) | `adapter-development.md` + `agui-protocol.md` + `server-quickstart.md` |
| **Build a web/mini-program UI client** | `ui-clients.md` + `agui-protocol.md` |

### Step-by-step workflow

1. **Identify the adapter type** from the task description (LangGraph / LangChain / custom)
2. **Read the matching docs** from the table above — read ALL listed docs, not just one
3. **Set up the agent server** using `@cloudbase/agent-server` — always include `cors: true`
4. **Implement the agent logic** using the chosen adapter
5. **If building UI**, read `ui-clients.md` and create the client code

## Reference doc index

| Doc | When to read |
|------|------|
| [server-quickstart](server-quickstart.md) | Always — deployment, CORS, logging, endpoints |
| [adapter-langgraph](adapter-langgraph.md) | Task mentions LangGraph, StateGraph, or graph-based workflows |
| [adapter-langchain](adapter-langchain.md) | Task mentions LangChain, chains, or chain-based patterns |
| [adapter-development](adapter-development.md) | Task requires custom adapter (no existing framework adapter) |
| [agui-protocol](agui-protocol.md) | Task requires custom adapter or deep protocol understanding |
| [ui-clients](ui-clients.md) | Task mentions web UI, frontend, client, or SSE streaming |
| [ui-miniprogram](ui-miniprogram.md) | Task mentions WeChat Mini Program or miniprogram UI |

## Quick Start

```typescript
import { run } from "@cloudbase/agent-server";
import { LanggraphAgent } from "@cloudbase/agent-adapter-langgraph";

run({
  createAgent: () => ({ agent: new LanggraphAgent({ workflow }) }),
  port: 9000,
});
```

Files in this skill

  • SKILL.md3.8 KB
  • adapter-development.md1.9 KB
  • adapter-langchain.md2.6 KB
  • adapter-langgraph.md4.9 KB
  • agui-protocol.md2.3 KB
  • server-quickstart.md3.3 KB
  • ui-clients.md1.2 KB
  • ui-miniprogram.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…