Apps can define AI capabilities that live inside the workspace — reusable skill instructions and agents with custom system prompts.Documentation Index
Fetch the complete documentation index at: https://docs.get-clara.tech/llms.txt
Use this file to discover all available pages before exploring further.
defineSkill
定义 AI 智能体技能
defineSkill
定义 AI 智能体技能
技能定义了可复用的指令和能力,AI 智能体可在你的工作区中使用。 使用 关键点:
defineSkill() 定义带内置校验的技能:src/skills/example-skill.ts
name是该技能的唯一标识字符串(推荐使用 kebab-case)。label是在 UI 中显示的人类可读名称。content包含技能指令——这是 AI 智能体使用的文本。icon(可选)设置在 UI 中显示的图标。description(可选)提供有关技能用途的更多上下文。
defineAgent
Define AI agents with custom prompts
defineAgent
Define AI agents with custom prompts
Agents are AI assistants that live inside your workspace. Use 关键点:
defineAgent() to create agents with a custom system prompt:src/agents/example-agent.ts
nameis the unique identifier string for the agent (kebab-case recommended).labelis the display name shown in the UI.promptis the system prompt that defines the agent’s behavior.description(optional) provides context about what the agent does.icon(可选)设置在 UI 中显示的图标。modelId(optional) overrides the default AI model used by the agent.