AI SDK Development
trypostit/trypost
TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.
Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.
$ npx skills add ryokun6/ryos --skill add-ai-chat-tool -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ryokun6/ryos add-ai-chat-tool --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/add-ai-chat-tool .claude/skills/add-ai-chat-tool && rm -rf skills-srcUse ~/.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/
Install the "add-ai-chat-tool" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-tool into .claude/skills/add-ai-chat-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-ai-chat-tool", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-toolType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ryokun6/ryos --skill add-ai-chat-tool -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ryokun6/ryos add-ai-chat-tool --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/add-ai-chat-tool .agents/skills/add-ai-chat-tool && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-ai-chat-tool" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-tool into .agents/skills/add-ai-chat-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-ai-chat-tool", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ryokun6/ryos --skill add-ai-chat-tool -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ryokun6/ryos add-ai-chat-tool --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/add-ai-chat-tool .cursor/skills/add-ai-chat-tool && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-ai-chat-tool" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-tool into .cursor/skills/add-ai-chat-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-ai-chat-tool", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ryokun6/ryos.git --path .cursor/skills/add-ai-chat-tool--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ryokun6/ryos --skill add-ai-chat-tool -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ryokun6/ryos add-ai-chat-tool --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/add-ai-chat-tool .gemini/skills/add-ai-chat-tool && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-ai-chat-tool" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-tool into .gemini/skills/add-ai-chat-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-ai-chat-tool", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ryokun6/ryos add-ai-chat-toolInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ryokun6/ryos --skill add-ai-chat-tool -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/add-ai-chat-tool .github/skills/add-ai-chat-tool && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-ai-chat-tool" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-tool into .github/skills/add-ai-chat-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-ai-chat-tool", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ryokun6/ryos --skill add-ai-chat-tool -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ryokun6/ryos add-ai-chat-tool --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/add-ai-chat-tool .opencode/skills/add-ai-chat-tool && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-ai-chat-tool" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/add-ai-chat-tool into .opencode/skills/add-ai-chat-tool/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-ai-chat-tool", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-ai-chat-toolAdd or modify an AI chat tool ("Ask Ryo" capability) in ryOS.
Add AI Chat Tool is an agent skill from ryokun6/ryos. Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS. Covers the server-side tool definition (Zod schema + description + optional execute) and the client-side handler dispatch, plus the server-vs-client execution split. Use when giving the AI a new capability, adding a tool to the chat agent, or editing chat/tool schemas, descriptions, or handlers.
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Structured output and tool calling and Backend development. It works with Zod. The repository describes itself as: ryOS, made with Cursor. The licence is AGPL-3.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d989f4d. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add AI Chat Tool loads about 2.2k tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 657 words of instructions outside code blocks.
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.
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); files beside SKILL.md are not scanned.
The full file from ryokun6/ryos at commit d989f4d, republished under its AGPL-3.0 licence (© ryokun6). 657 words, ~2,187 tokens.
.claude/skills/add-ai-chat-tool/SKILL.md (or your agent's skills folder).ryOS chat tools follow the Vercel AI SDK tool-loop pattern. A tool is defined on the server (name + description + Zod inputSchema), and is either:
execute fn that runs in api/chat/tools/ (needs Redis, secrets, server fetch). Add the name to SERVER_EXECUTED_TOOL_NAMES.execute. The model emits a tool call, the browser runs a handler in src/apps/chats/tools/, and the result is sent back via addToolOutput (needs Zustand stores, IndexedDB, media/DOM APIs).| Concern | File |
|---|---|
| Server: input schemas (Zod) | api/chat/tools/schemas.ts |
| Server: descriptions + tool object + profile filtering | api/chat/tools/index.ts (TOOL_DESCRIPTIONS, createChatTools) |
| Server: shared types/constants | api/chat/tools/types.ts |
Server: execute logic | api/chat/tools/executors.ts, app-state-executors.ts, maps-executor.ts |
| Server/client: execution split source of truth | src/shared/tools/serverExecuted.ts |
| Client: per-tool handlers | src/apps/chats/tools/<name>Handler.ts |
| Client: handler types/registry | src/apps/chats/tools/types.ts, index.ts |
Client: dispatch (switch on tool name) | src/apps/chats/hooks/useAiChat.ts |
| Needs… | Execution |
|---|---|
| Redis, secrets, server-only fetch, SSRF-safe fetch | Server (execute) |
| Zustand store mutation, IndexedDB/VFS, media playback, app windows, DOM | Client (handler) |
Some tools run both ways (e.g. stickiesControl, calendarControl, contactsControl): client in web chat, server in the Telegram profile. In that case provide both a handler and an executor.
api/chat/tools/schemas.ts)Schemas are Zod. Keep action-style tools as a discriminated/enum action plus optional params, and use .superRefine for cross-field rules so the model gets a clear error before the handler runs.
export const myFeatureControlSchema = z.object({
action: z.enum(["list", "create", "delete"]),
id: z.string().optional(),
content: z.string().optional(),
});Add any shared enums/constants to types.ts and import them here (mirrors CALENDAR_ACTIONS, TV_ACTIONS, etc.).
api/chat/tools/index.ts)TOOL_DESCRIPTIONS (the model relies heavily on this — describe each action, required params, and when NOT to use it).allTools object inside createChatTools.Client-executed (no execute):
myFeatureControl: {
description: TOOL_DESCRIPTIONS.myFeatureControl,
inputSchema: schemas.myFeatureControlSchema,
// No execute — handled client-side (requires Zustand store access)
},Server-executed:
myFeatureControl: {
description: TOOL_DESCRIPTIONS.myFeatureControl,
inputSchema: schemas.myFeatureControlSchema,
execute: async (input: MyFeatureControlInput) => executeMyFeatureControl(input, context),
},If the tool should be available to the Telegram/memory profiles, also add it to the relevant branch in createChatTools (the telegram profile object or MEMORY_TOOL_NAMES). Tools default to the "all" profile.
src/shared/tools/serverExecuted.ts)If (and only if) the tool is server-executed, add it to TOOL_EXECUTION_METADATA with execution: "server". The client uses SERVER_EXECUTED_TOOL_NAME_SET to skip client dispatch for these (it returns early without running a handler).
export const TOOL_EXECUTION_METADATA = [
// ...
{ name: "myFeatureControl", execution: "server" },
] as const;Client-executed tools do NOT go here.
Create src/apps/chats/tools/myFeatureHandler.ts. The handler reads/writes Zustand stores and reports a result through context.addToolOutput.
import type { ToolContext } from "./types";
import { useMyFeatureStore } from "@/stores/useMyFeatureStore";
import { useAppStore } from "@/stores/useAppStore";
import i18n from "@/lib/i18n";
export interface MyFeatureControlInput {
action: "list" | "create" | "delete";
id?: string;
content?: string;
}
export const handleMyFeatureControl = (
input: MyFeatureControlInput,
toolCallId: string,
context: ToolContext
): void => {
const store = useMyFeatureStore.getState();
try {
switch (input.action) {
case "list": {
context.addToolOutput({
tool: "myFeatureControl",
toolCallId,
output: JSON.stringify(store.items, null, 2),
});
break;
}
// create / delete ...
default:
context.addToolOutput({
tool: "myFeatureControl",
toolCallId,
state: "output-error",
errorText: i18n.t("apps.chats.toolCalls.unknownError"),
});
}
} catch (error) {
context.addToolOutput({
tool: "myFeatureControl",
toolCallId,
state: "output-error",
errorText: error instanceof Error ? error.message : "error",
});
}
};Handler conventions (match existing handlers like stickiesHandler.ts):
addToolOutput per call — a success output string or an { state: "output-error", errorText }.i18n.t(...) (apps.chats.toolCalls.*).context.launchApp("myfeature") / guard with useAppStore.getState().getInstancesByAppId).createShortIdMap / resolveId from ./helpers to keep token usage low.ToolContext provides { launchApp, addToolOutput, detectUserOS }.
src/apps/chats/tools/index.ts, export the handler and its input type.src/apps/chats/tools/dispatchToolCall.ts (shared by the Chats app and the desktop assistant), add a case to the switch (toolCall.toolName):case "myFeatureControl": {
handleMyFeatureControl(
toolCall.input as MyFeatureControlInput,
toolCall.toolCallId,
toolContext
);
result = ""; // handler already called addToolOutput
break;
}Dispatch is an explicit
switch— there is no handler registry. Add thecase, otherwise the tool falls through to thedefaultbranch and reports "Unhandled tool". Setresult = ""when the handler emits its own output (return a non-empty string only for trivial tools that don't calladdToolOutput). VFS tools (list/open/read/write/edit) live invfsHandlers.tsand receive aVfsToolContextwithsaveFile+recordOpenedInstance.
Add executeMyFeatureControl(input, context) to executors.ts (or app-state-executors.ts for app-state tools), export it from api/chat/tools/index.ts, and reference it in the tool's execute. The executor receives the server context (MemoryToolContext: logging, env, redis/auth helpers) and must return a JSON-serializable result.
For tools that return images to the model (like infiniteMacControl's readScreen), add a toModelOutput that converts the result into multimodal content.
tests/unit/<domain>/test-<feature>-schema.test.ts that safeParses valid and invalid inputs (see tests/unit/media/test-media-control-unified.test.ts). Unit suites are auto-discovered. See the write-tests skill.test:ai) where applicable.- [ ] Schema in api/chat/tools/schemas.ts (+ shared enums in types.ts)
- [ ] Description in TOOL_DESCRIPTIONS + entry in createChatTools (right profile)
- [ ] If server-executed: add to TOOL_EXECUTION_METADATA (serverExecuted.ts) + write executor
- [ ] If client-executed: handler in src/apps/chats/tools/ + export + switch case in useAiChat.ts
- [ ] Localize tool-call strings (apps.chats.toolCalls.*)
- [ ] Schema unit test in tests/ (registered in test:unit)© ryokun6, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/add-ai-chat-tool of ryokun6/ryos.
Open the folder on GitHubat commit d989f4d
Add AI Chat Tool 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add AI Chat Tool this skillryokun6/ryos | 1.3k | — | ~2.2k | Automated safety check: Pass | AGPL-3.0 | |
| AI SDK Developmenttrypostit/trypost | 691 | 1 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Spring AI Integrationrrezartprebreza/spring-boot-skills | 301 | — | ~2.5k | Automated safety check: Pass | MIT | |
| LLM Generation Workflowslobehub/lobehub | 83k | — | ~1.1k | Automated safety check: Pass | Custom licence | |
| Langchain Middlewarelangchain-ai/langchain-skills | 1.3k | — | ~2.7k | Automated safety check: Pass | MIT | |
| LLM Structured Outputsickn33/agentic-awesome-skills | 47k | 2 repos | ~3.9k | Automated safety check: Pass | MIT |
trypostit/trypost
TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.
rrezartprebreza/spring-boot-skills
A skill your agent uses when integrating LLMs, chat clients, embeddings, RAG pipelines, or AI agents into Spring Boot.
lobehub/lobehub
Implements business-facing LLM calls as explicit, traceable workflows, keeping prompt versions, model policy, structured output and tracing scenarios in separate places.
langchain-ai/langchain-skills
INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output.
sickn33/agentic-awesome-skills
Get reliable JSON, enums, and typed objects from LLMs using responseformat, tooluse, and schema-constrained decoding across OpenAI, Anthropic, and Google APIs.
microsoft/ai-agents-for-beginners
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models.
ryokun6/ryos
Create new applications for ryOS following established patterns and conventions.
ryokun6/ryos
Create or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync…
ryokun6/ryos
Cut and publish ryOS Electron desktop releases on GitHub. An agent skill from ryokun6/ryos.
ryokun6/ryos
Localize ryOS apps and components by extracting hardcoded strings, replacing with translation keys, and syncing across languages.
ryokun6/ryos
React performance optimization guidelines from Vercel Engineering (vercel-labs/agent-skills).
ryokun6/ryos
Design and style ryOS UI using the current OS theme token system, Tailwind variants, shared primitives, Aqua Glass, dark mode, and accent conventions.
Works with
Categories
Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS. Add AI Chat Tool is an agent skill from ryokun6/ryos. Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.
Add AI Chat Tool fits situations like: giving the AI a new capability; adding a tool to the chat agent; editing chat/tool schemas.
Run `npx skills add ryokun6/ryos --skill add-ai-chat-tool -a claude-code`. Or copy the skill folder (.cursor/skills/add-ai-chat-tool in ryokun6/ryos) into .claude/skills/add-ai-chat-tool in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ryokun6/ryos --skill add-ai-chat-tool -a codex`. Or copy the skill folder (.cursor/skills/add-ai-chat-tool in ryokun6/ryos) into .agents/skills/add-ai-chat-tool in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ryokun6/ryos --skill add-ai-chat-tool -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-ai-chat-tool, .gemini/skills/add-ai-chat-tool, .github/skills/add-ai-chat-tool and .opencode/skills/add-ai-chat-tool in your project.
SKILL.md names no scripts, command-line tools or credentials: Add AI Chat Tool is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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. Review the folder before installing.
Add AI Chat Tool is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add AI Chat Tool: AI SDK Development (trypostit/trypost, 691 stars), Spring AI Integration (rrezartprebreza/spring-boot-skills, 301 stars), LLM Generation Workflows (lobehub/lobehub, 83k stars) and Langchain Middleware (langchain-ai/langchain-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ryokun6 (a GitHub user) maintains it in ryokun6/ryos, which has 1,263 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 9, 2026.
Source: ryokun6/ryos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.