← 返回 Skills 市场
cargo-ai

Cargo Ai

作者 Cargo · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ✓ 安全检测通过
90
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cargo-ai
功能描述
Create and configure AI agents, upload files for RAG, manage MCP servers, and handle agent memories using the Cargo CLI. Use when the user wants to create or...
使用说明 (SKILL.md)

Cargo CLI — AI

Agent resource management: creating and configuring agents, uploading files for retrieval-augmented generation (RAG), connecting MCP servers, and managing agent memories.

For using agents (sending messages, multi-turn chat, polling), use cargo-orchestration. For workspace administration — folders (used to organize agents and files), users, API tokens, roles, and submitting reports when the CLI fails — use cargo-workspace-management.

See references/response-shapes.md for full JSON response structures. See references/troubleshooting.md for common errors and how to fix them. See references/examples/agents.md for agent CRUD and configuration examples. See references/examples/files.md for file upload and management examples. See references/examples/mcp-servers.md for MCP server creation and management examples.

Prerequisites

See ../cargo/references/prerequisites.md for install, login (--oauth / --token), JSON output conventions, and error shapes. Verify the session with cargo-ai whoami before running any of the commands below.

Discover resources first

cargo-ai ai agent list                     # all agents (uuid, name, description)
cargo-ai ai template list                  # all AI agent templates (slug, name)
cargo-ai ai file list                      # all uploaded files (uuid, name, contentType)
cargo-ai ai mcp-server list                # all MCP servers (uuid, name)
cargo-ai ai memory list --scope agent --agent-uuid \x3Cuuid>  # agent memories

Retrieve in the UI: agents live at app.getcargo.io/workspaces/\x3CWORKSPACE_UUID>/agents/\x3CAGENT_UUID>. Get \x3CWORKSPACE_UUID> from cargo-ai whoami under workspace.uuid.

Quick reference

cargo-ai ai agent list
cargo-ai ai agent get \x3Cagent-uuid>
cargo-ai ai agent create --name \x3Cname> --icon-color blue --icon-face 🤖
cargo-ai ai agent update --uuid \x3Cagent-uuid> --name \x3Cname>
cargo-ai ai agent remove \x3Cagent-uuid>
cargo-ai ai release list --agent-uuid \x3Cuuid>
cargo-ai ai release get \x3Crelease-uuid>
cargo-ai ai release get-draft --agent-uuid \x3Cuuid>
cargo-ai ai release update-draft --agent-uuid \x3Cuuid> --language-model-slug gpt-4o
cargo-ai ai release deploy-draft --agent-uuid \x3Cuuid>
cargo-ai ai template list
cargo-ai ai template get \x3Cslug>
cargo-ai ai file list
cargo-ai ai file upload --file-path ./knowledge-base.pdf
cargo-ai ai file update --uuid \x3Cfile-uuid> --name "Updated Name"
cargo-ai ai file remove \x3Cfile-uuid>
cargo-ai ai mcp-server list
cargo-ai ai mcp-server create --name "Internal Tools"
cargo-ai ai mcp-server update --uuid \x3Cmcp-server-uuid> --name "Updated Name"
cargo-ai ai mcp-server remove \x3Cmcp-server-uuid>
cargo-ai ai memory list --scope agent --agent-uuid \x3Cuuid>
cargo-ai ai memory update --mem0-id \x3Cid> --scope agent --agent-uuid \x3Cuuid> --content "Updated memory"
cargo-ai ai memory remove --mem0-id \x3Cid> --scope agent --agent-uuid \x3Cuuid>

Agents

Agents are AI resources with configured instructions, a language model, actions, and optional resources.

Before creating an agent from scratch, check existing templates — they capture proven patterns for common use cases (lead research, classification, email drafting) and give you a ready-made system prompt, model, and temperature to start from:

cargo-ai ai template list          # browse available patterns
cargo-ai ai template get \x3Cslug>    # inspect system prompt, model, and actions
# List all agents
cargo-ai ai agent list

# Get a single agent (includes deployed release details)
cargo-ai ai agent get \x3Cagent-uuid>

# Create an agent
cargo-ai ai agent create \
  --name "Lead Researcher" \
  --icon-color blue --icon-face 🤖 \
  --description "Researches leads and enriches data"

# Update an agent
cargo-ai ai agent update --uuid \x3Cagent-uuid> \
  --name "Senior Lead Researcher" \
  --description "Updated description"

# Move to a folder (find folder UUIDs via cargo-workspace-management)
cargo-ai ai agent update --uuid \x3Cagent-uuid> --folder-uuid \x3Cfolder-uuid>

# Remove an agent
cargo-ai ai agent remove \x3Cagent-uuid>

Agent icon: --icon-color must be one of: grey, green, purple, yellow, blue, red. --icon-face is an emoji string.

Folders: Folder creation, listing, and management lives in cargo-workspace-management (cargo-ai workspaceManagement folder list/create/...). Use that skill to discover or create the \x3Cfolder-uuid> you pass to --folder-uuid here.

Releases

Releases are versioned snapshots of an agent's configuration (system prompt, actions, resources, model, temperature). Agents execute against their deployed release.

# List releases for an agent
cargo-ai ai release list --agent-uuid \x3Cuuid>

# Get a specific release
cargo-ai ai release get \x3Crelease-uuid>

# Get the current draft release (editable)
cargo-ai ai release get-draft --agent-uuid \x3Cuuid>

# Update the draft release
cargo-ai ai release update-draft --agent-uuid \x3Cuuid> \
  --system-prompt "You are a lead research assistant..." \
  --language-model-slug gpt-4o \
  --temperature 0.3 \
  --max-steps 10

# Deploy the draft release (makes it live)
cargo-ai ai release deploy-draft --agent-uuid \x3Cuuid> \
  --integration-slug openai \
  --language-model-slug gpt-4o \
  --actions '[]' \
  --mcp-clients '[]' \
  --resources '[]' \
  --capabilities '[]' \
  --suggested-actions '[]' \
  --description "Added research actions"

Agent configuration workflow:

  1. Browse templates for inspiration: cargo-ai ai template list — find a template close to your use case, then cargo-ai ai template get \x3Cslug> to see its system prompt, model, and temperature
  2. Create the agent: cargo-ai ai agent create --name "..." --icon-color blue --icon-face 🤖
  3. Get the draft release: cargo-ai ai release get-draft --agent-uuid \x3Cuuid>
  4. Update the draft with configured actions, resources, prompt, model: cargo-ai ai release update-draft --agent-uuid \x3Cuuid> ...
  5. Deploy: cargo-ai ai release deploy-draft --agent-uuid \x3Cuuid> ...

Templates

Templates are pre-built agent configurations that capture proven patterns for common use cases. Always check templates before designing an agent from scratch — they give you a ready-made system prompt, recommended language model, temperature, and tool configuration that you can adopt as-is or adapt.

# List available agent templates
cargo-ai ai template list

# Get a template by slug — inspect its system prompt, model, and settings
cargo-ai ai template get \x3Cslug>

Templates include a system prompt, actions, resources, and recommended model settings. Use them as a starting point and customize via release update-draft. See references/examples/templates.md for the full guide including an end-to-end example of creating an agent from a template.

Model and temperature guidance

Use case Recommended model Temperature
Classification, extraction, scoring gpt-4o-mini or claude-3-5-haiku 0.00.2
Research, summarization, analysis gpt-4o or claude-3-5-sonnet 0.20.5
Copywriting, personalization gpt-4o or claude-3-5-sonnet 0.50.8
Brainstorming, creative ideation gpt-4o or claude-opus 0.71.0

Low temperature (0.00.2) = deterministic, consistent outputs. High temperature (0.7+) = creative, varied outputs. For production workflows processing thousands of records, prefer low temperature.

Files

Upload files (PDFs, CSVs, text) for retrieval-augmented generation (RAG). Agents reference uploaded files to ground their responses in specific knowledge.

# List all files
cargo-ai ai file list

# Upload a file
cargo-ai ai file upload --file-path ./knowledge-base.pdf

# Update a file's name or folder
cargo-ai ai file update --uuid \x3Cfile-uuid> --name "Q1 Research Notes"
cargo-ai ai file update --uuid \x3Cfile-uuid> --folder-uuid \x3Cfolder-uuid>

# Remove a file
cargo-ai ai file remove \x3Cfile-uuid>

Uploaded files are attached to agents via the release's resources configuration. Use release update-draft to add file resources to an agent.

MCP servers

MCP (Model Context Protocol) servers expose additional actions to agents. Once connected, agents can call MCP actions automatically during conversations or workflow runs.

# List all MCP servers
cargo-ai ai mcp-server list

# Create an MCP server
cargo-ai ai mcp-server create --name "Internal Tools"

# Update an MCP server
cargo-ai ai mcp-server update --uuid \x3Cmcp-server-uuid> --name "Updated Tools"

# Remove an MCP server
cargo-ai ai mcp-server remove \x3Cmcp-server-uuid>

MCP clients (connections to MCP servers) are configured on agent releases. Use release update-draft to attach MCP clients to an agent.

Memories

Memories are pieces of information an agent stores from conversations for future reference. They can be scoped to a workspace, user, or specific agent.

# List agent memories
cargo-ai ai memory list --scope agent --agent-uuid \x3Cuuid>

# List workspace-wide memories
cargo-ai ai memory list --scope workspace

# List user-scoped memories
cargo-ai ai memory list --scope user

# Update a memory
cargo-ai ai memory update \
  --mem0-id \x3Cid> \
  --scope agent --agent-uuid \x3Cuuid> \
  --content "Updated memory content"

# Remove a memory
cargo-ai ai memory remove \
  --mem0-id \x3Cid> \
  --scope agent --agent-uuid \x3Cuuid>

Help

Every command supports --help:

cargo-ai ai agent create --help
cargo-ai ai release update-draft --help
cargo-ai ai file upload --help
cargo-ai ai mcp-server create --help
cargo-ai ai memory list --help
安全使用建议
Install only if you trust Cargo and are comfortable granting the CLI access to your Cargo workspace. Before using it, verify target UUIDs, review drafts before deployment, avoid uploading secrets or regulated data unless authorized, and treat memories as persistent data that may influence future agent behavior.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is agent resource management, and the artifacts consistently cover creating, updating, deploying, and removing agents, uploading RAG files, connecting MCP servers, and managing memories through cargo-ai.
Instruction Scope
The instructions are user-directed CLI examples with placeholders and discovery steps, but some high-impact examples such as deploy-draft and remove commands would benefit from stronger warnings.
Install Mechanism
Installation is disclosed as the npm package @cargo-ai/cli@latest and requires a Cargo account via OAuth or API token; no executable scripts are included in the skill artifact itself.
Credentials
Networked CLI access, uploaded files, MCP connections, and account credentials are proportionate to the skill purpose, but users should minimize sensitive data in files and memories.
Persistence & Privilege
The skill explicitly manages persistent agent releases, uploaded files, MCP server configuration, and memories; these are expected for the purpose but can affect future agent behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cargo-ai
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cargo-ai 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
cargo-ai 1.1.1 - Updated CLI install instructions: install @cargo-ai/cli using the latest version. - Prerequisites section now links to shared documentation for install and login steps. - No breaking changes to commands or options.
v1.1.0
cargo-ai 1.1.0 - Improved documentation for agent, file, MCP server, and memory management using Cargo CLI. - Added clear guidance on prerequisites, agent resource discovery, and command usage. - Clarified distinction between this skill (resource management) and related skills: cargo-orchestration (agent communication) and cargo-workspace-management (workspace/folder admin). - Expanded example commands and quick references for all core actions. - Included step-by-step workflows for agent creation and release management.
元数据
Slug cargo-ai
版本 1.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Cargo Ai 是什么?

Create and configure AI agents, upload files for RAG, manage MCP servers, and handle agent memories using the Cargo CLI. Use when the user wants to create or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。

如何安装 Cargo Ai?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cargo-ai」即可一键安装,无需额外配置。

Cargo Ai 是免费的吗?

是的,Cargo Ai 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cargo Ai 支持哪些平台?

Cargo Ai 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cargo Ai?

由 Cargo(@cargo-ai)开发并维护,当前版本 v1.1.1。

💬 留言讨论