cargo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese██████ ████ █████ ██████ ██████
██ ░ ██ ██░ ██ ██ ██ ░ ██ ██░
██ ██████░ █████ ░ ██ ███ ██ ██░
██ ██ ██░ ██ ██ ██ ██░ ██ ██░
██████ ██ ██░ ██ ██ ██████░ ██████░
░░░░░░ ░░ ░░ ░░ ░░ ░░░░░░ ░░░░░░██████ ████ █████ ██████ ██████
██ ░ ██ ██░ ██ ██ ██ ░ ██ ██░
██ ██████░ █████ ░ ██ ███ ██ ██░
██ ██ ██░ ██ ██ ██ ██░ ██ ██░
██████ ██ ██░ ██ ██ ██████░ ██████░
░░░░░░ ░░ ░░ ░░ ░░ ░░░░░░ ░░░░░░Cargo CLI — Skills Overview
Cargo CLI — 技能概览
This repository contains 11 skills at the repo root: one outcome skill () and ten capability skills.
cargo-gtm- — application library. The front door for any GTM task ("build a TAM list", "find 5 fintech CTOs", "monitor job changes"). Routes via internal recipes (
cargo-gtm) and provider playbooks (../cargo-gtm/recipes/*.md).../cargo-gtm/provider-playbooks/*.md - Capability skills — standard library. One per CLI domain (orchestration, storage, connection, AI, content, context, analytics, billing, hosting, workspace management). Loaded by , or directly when you need a specific CLI domain.
cargo-gtm
cargo-gtmcargo-gtmGlossary: See for term-by-term definitions (UUIDs, slugs, , run/batch/play/tool, signal/persona/ICP, etc.).
references/glossary.mdconjonction本仓库根目录下包含11项技能:1项成果技能()和10项能力技能。
cargo-gtm- — 应用库。所有GTM任务的入口(如“构建TAM列表”“寻找5位金融科技CTO”“监控职位变动”)。通过内部方案(
cargo-gtm)和供应商手册(../cargo-gtm/recipes/*.md)进行路由。../cargo-gtm/provider-playbooks/*.md - 能力技能 — 标准库。每个CLI领域对应一项技能(编排、存储、连接、AI、内容、上下文、分析、计费、托管、工作空间管理)。由加载,或在需要特定CLI领域时直接加载。
cargo-gtm
cargo-gtmcargo-gtm术语表: 详见获取术语定义(UUID、slug、、run/batch/play/tool、signal/persona/ICP等)。
references/glossary.mdconjonctionInstallation
安装
bash
npm install -g @cargo-ai/cli
cargo-ai login --oauth # browser sign-in (recommended)bash
npm install -g @cargo-ai/cli
cargo-ai login --oauth # 浏览器登录(推荐)or: cargo-ai login --token <your-api-token> # use an existing workspace-scoped API token
或:cargo-ai login --token <your-api-token> # 使用现有工作空间范围的API令牌
Optional: pin a default workspace at login
可选:登录时固定默认工作空间
cargo-ai login --oauth --workspace-uuid <uuid>
cargo-ai login --oauth --workspace-uuid <uuid>
Verify
验证
cargo-ai whoami
Without a global install, prefix every command with `npx @cargo-ai/cli` instead of `cargo-ai`.
All commands output JSON to stdout. Failed commands exit non-zero and return `{"errorMessage": "..."}`. For the full setup conventions that every capability skill links to (token scopes, async polling, admin-only commands), see [`references/prerequisites.md`](references/prerequisites.md).cargo-ai whoami
若不进行全局安装,需在所有命令前添加前缀`npx @cargo-ai/cli`,而非`cargo-ai`。
所有命令会向标准输出(stdout)输出JSON。执行失败的命令会返回非零退出码,并返回`{"errorMessage": "..."}`。有关所有能力技能都会链接的完整设置约定(令牌范围、异步轮询、仅管理员可用命令),详见[`references/prerequisites.md`](references/prerequisites.md)。Every Cargo session has three jobs
每个Cargo会话包含三项任务
Automated by the Cargo installer. Jobs 1 and 3 (refresh + session register/finalize) run on their own when the/SessionStarthooks scaffolded bySessionEndare present. Do them by hand only when those hooks aren't installed. Job 2 (reporting) is always your responsibility — it can't be automated.curl -fsSL https://api.getcargo.io/install.sh | sh
由Cargo安装程序自动执行。 当生成的curl -fsSL https://api.getcargo.io/install.sh | sh/SessionStart钩子存在时,任务1和任务3(刷新 + 会话注册/完成)会自动运行。仅当这些钩子未安装时,才需要手动执行。任务2(上报)始终由你负责——无法自动执行。SessionEnd
1. At session start — refresh and register
1. 会话开始时 — 刷新并注册
Before any other Cargo command, refresh the CLI and skills, then register the session in workspace management:
bash
undefined在执行任何其他Cargo命令前,先刷新CLI和技能,然后在工作空间管理中注册会话:
bash
undefinedRefresh — idempotent, ~10s
刷新 — 幂等操作,约10秒
npm install -g @cargo-ai/cli@latest
npx -y skills add getcargohq/cargo-skills
npm install -g @cargo-ai/cli@latest
npx -y skills add getcargohq/cargo-skills
Register the session (placeholders OK — overwritten at session end)
注册会话(占位符即可 — 会话结束时会覆盖)
cargo-ai workspaceManagement session upsert
--session-id <claude-session-id>
--title "Claude Code session <claude-session-id>"
--summary "Session in progress."
--session-id <claude-session-id>
--title "Claude Code session <claude-session-id>"
--summary "Session in progress."
Skip the refresh only if the user explicitly pinned a version. Skip the `session upsert` only if the user opted out or no `session_id` is available.cargo-ai workspaceManagement session upsert
--session-id <claude-session-id>
--title "Claude Code session <claude-session-id>"
--summary "会话进行中。"
--session-id <claude-session-id>
--title "Claude Code session <claude-session-id>"
--summary "会话进行中。"
仅当用户明确固定版本时,才可跳过刷新步骤。仅当用户选择退出或无`session_id`可用时,才可跳过`session upsert`。2. Mid-session — re-refresh, or escalate when stuck
2. 会话进行中 — 重新刷新,或遇到问题时上报
Re-refresh the CLI and skills mid-session when:
- A documented CLI flag or response shape doesn't match what you observe (a fix may have shipped since session start).
- The user explicitly asks ("bump cargo", "make sure I'm on latest").
Send a workspace management report when the CLI is failing in a way the skill references and cannot resolve, the user or agent is repeatedly retrying the same command without progress, the syntax for a flag / JSON payload is unclear, or a needed capability seems missing:
--helpbash
cargo-ai workspaceManagement report create \
--title "<one-line summary of the problem>" \
--description "<exact command(s) tried, errorMessage, expected vs actual, UUIDs involved>"Trigger conditions (any one is enough):
- A command failed ≥ 2 times in a row on the same task and the cause is not obvious.
- The CLI is being misused and the correct usage is not discoverable from the skills, examples, or .
--help - A documented behavior contradicts what you observe.
- A feature appears to be missing entirely.
This is the official feedback channel — every report is reviewed by the Cargo team and used to improve the CLI and these skills. Do not give up silently — file a report. See (Reports section) and for templates.
../cargo-workspace-management/SKILL.md../cargo-workspace-management/references/examples/reports.md在以下场景下,重新刷新CLI和技能:
- 文档中记录的CLI标志或响应格式与你实际观察到的不符(会话开始后可能已发布修复)。
- 用户明确要求(如“升级cargo”“确保我使用的是最新版本”)。
当CLI出现技能文档和无法解决的故障、用户或Agent重复执行同一命令却无进展、标志/JSON负载的语法不明确,或所需功能似乎缺失时,发送工作空间管理报告:
--helpbash
cargo-ai workspaceManagement report create \
--title "<问题的一行摘要>" \
--description "<尝试的具体命令、errorMessage、预期与实际结果、涉及的UUID>"触发条件(满足任意一项即可):
- 同一任务的命令连续失败≥2次,且原因不明确。
- CLI被误用,且正确用法无法从技能文档、示例或中找到。
--help - 文档记录的行为与实际观察到的不符。
- 某项功能似乎完全缺失。
这是官方反馈渠道——每一份报告都会由Cargo团队审核,并用于改进CLI和这些技能。不要默默放弃——提交报告。 模板详见(Reports章节)和。
../cargo-workspace-management/SKILL.md../cargo-workspace-management/references/examples/reports.md3. At session end — finalize the session row
3. 会话结束时 — 完成会话记录
Produce a short title (5–8 words) and a 1–2 sentence summary of what the session actually worked on, then overwrite the placeholder row and stamp :
finished_atbash
cargo-ai workspaceManagement session upsert \
--session-id <claude-session-id> \
--title "<5-8 word title>" \
--summary "<1-2 sentence summary of what was accomplished or attempted>" \
--finished--title--summary--finishedfinished_at = now--finished-at <iso>生成一个简短标题(5-8个单词)和1-2句话的会话内容摘要,然后覆盖占位符记录并标记:
finished_atbash
cargo-ai workspaceManagement session upsert \
--session-id <claude-session-id> \
--title "<5-8词标题>" \
--summary "<1-2句话总结已完成或尝试完成的内容>" \
--finished--title--summary--finishedfinished_at--finished-at <iso>Skills at a glance
技能一览
Outcome skill
成果技能
Load when the user states a real-world goal.
| Skill | Load when you need to… |
|---|---|
| Any GTM task — sourcing, enrichment, verification, scoring, sequencing, CRM sync, signal monitoring (job changes, funding, tech-stack/hiring intent). Routes via recipes ( |
当用户提出实际业务目标时加载。
| 技能 | 加载场景 |
|---|---|
| 任何GTM任务——寻源、enrichment、验证、评分、排序、CRM同步、信号监控(职位变动、融资、技术栈/招聘意向)。通过方案( |
Capability skills
能力技能
Load for a specific CLI domain. The first link in each row jumps to the actual SKILL.md; the parenthetical jumps to the recap on this page.
| Skill | Load when you need to… |
|---|---|
| Execute actions, run workflows, trigger batches, chat with agents, query orchestration with SQL (ClickHouse) |
| Download run results, export segment data, monitor error rates and metrics |
| Check credit usage, view subscription details, track costs per workflow or connector |
| Inspect or modify data models, columns, datasets, and relationships; query workspace storage with SQL |
| Manage connector authentication, discover available integrations and their actions |
| Create and configure agents, configure releases, attach knowledge for RAG, manage MCP servers and memories |
| Upload and organize knowledge files, build native/connector-backed knowledge libraries for RAG (the |
| Browse/read/write/edit the workspace's git-backed GTM context repo, run commands in its runtime sandbox, inspect the knowledge graph |
| Scaffold, deploy, and promote hosted apps (Vite SPAs on |
| Invite users, create API tokens, organize folders, manage roles, report CLI issues to management |
Agent knowledge for RAG: files + libraries live in thedomain →content; how they attach to an agent →cargo-content. (Files/libraries moved out of the oldcargo-aipath in CLI ≥ 1.0.19.)ai file …
针对特定CLI领域加载。每行的第一个链接指向实际的SKILL.md;括号内的链接指向本页面的回顾部分。
| 技能 | 加载场景 |
|---|---|
| 执行操作、运行工作流、触发批量任务、与Agent对话、使用SQL(ClickHouse)查询编排数据 |
| 下载运行结果、导出细分数据、监控错误率和指标 |
| 查看信用额度使用情况、订阅详情、按工作流或连接器跟踪成本 |
| 检查或修改数据模型、列、数据集及关系;使用SQL查询工作空间存储 |
| 管理连接器认证、发现可用集成及其操作 |
| 创建和配置Agent、配置发布版本、为RAG附加知识库、管理MCP服务器和记忆 |
| 上传和组织知识库文件、为RAG构建原生/连接器支持的知识库( |
| 浏览/读取/写入/编辑工作空间基于Git的GTM上下文仓库、在其运行沙箱中执行命令、检查知识图谱 |
| 搭建、部署和托管应用( |
| 邀请用户、创建API令牌、组织文件夹、管理角色、向管理团队上报CLI问题 |
Agent的RAG知识库: 文件 + 库存储在领域 →content;如何将其附加到Agent →cargo-content。(在CLI ≥ 1.0.19版本中,文件/库已从旧的cargo-ai路径移出。)ai file …
CLI domains without a dedicated skill yet
尚无专用技能的CLI领域
The CLI exposes several domains that no capability skill wraps yet. Reach for them directly () when a task needs them, and file a if the surface is unclear:
cargo-ai <domain> --helpworkspaceManagement report| CLI domain | Covers |
|---|---|
| Segments and changes ( |
| Recipes and expression evaluation ( |
| System-of-record, client, and log operations. |
| Allocations, capacities, members, territories (revenue/territory planning). |
| Current-user operations with no workspace context. |
CLI包含多个尚未被能力技能封装的领域。当任务需要这些领域时,可直接使用();若操作界面不清晰,可提交:
cargo-ai <domain> --helpworkspaceManagement report| CLI领域 | 涵盖内容 |
|---|---|
| 细分数据及变更( |
| 方案和表达式求值( |
| 系统记录、客户端和日志操作。 |
| 分配、容量、成员、区域(营收/区域规划)。 |
| 无工作空间上下文的当前用户操作。 |
How the skills relate
技能间的关联
┌─────────────────────────────────────┐
│ cargo-gtm │
│ Outcome / front door for GTM │
│ Recipes, guides, provider-playbks │
└─────────────────┬───────────────────┘
│ delegates to ↓ (one-way)
┌──────────────────────┴──────────────────────┐
│ │
┌──────────────────────────────────────────────────────────────┐
│ cargo-workspace-management │
│ Authentication, users, tokens, folders │
└──────────────────────────────────────────────────────────────┘
┌─────────────────┐ ┌────────────────────┐ ┌─────────────────┐
│ cargo-storage │ │ cargo-connection │ │ cargo-ai │
│ Models, columns,│ │ Connectors, │ │ Agents, docs, │
│ datasets │ │ integration actions│ │ MCP, memory │
└────────┬────────┘ └─────────┬──────────┘ └────────┬────────┘
(cargo-content feeds
files/libraries to agents)
│ │ (UUIDs flow down) │
└──────────────────────┼───────────────────────┘
▼
┌───────────────────────────────────────┐
│ cargo-orchestration │
│ Runs, batches, plays, tools, SoR │
└───────────────┬───────────────────────┘
│
┌──────────────┴──────────────┐
▼ ▼
┌────────────────────────┐ ┌───────────────────────────┐
│ cargo-analytics │ │ cargo-billing │
│ Results, metrics, │ │ Credit usage, costs │
│ exports │ │ │
└────────────────────────┘ └───────────────────────────┘
┌───────────────────────────────────────┐
│ cargo-context │
│ Git-backed GTM markdown knowledge: │
│ personas, plays, proof, signals… │
└───────────────────────────────────────┘
(orthogonal: not part of the workflow flow)Dependency rules in practice:
- delegates to capability skills via relative paths (
cargo-gtm). Capability skills never reference../cargo-orchestration/....cargo-gtm - provides auth context for every skill — set it up first.
cargo-workspace-management - ,
cargo-storage, andcargo-connectionare peer skills that supply UUIDs tocargo-ai. They don't depend on each other.cargo-orchestration - owns workspace files and libraries (the
cargo-contentdomain). It produces file/library UUIDs thatcontentconsumes as agent releasecargo-ai(RAG). Uploaded content files also surface read-only underresourcesin the.files/runtime sandbox.cargo-context - is orthogonal to the workflow-execution flow. It touches the git-backed GTM knowledge base (markdown/MDX), not storage or workflow runs. Use it for capturing/editing the workspace's prose context — personas, plays, proof, objections, signals — and for inspecting the typed knowledge graph.
cargo-context - For SQL queries against storage, use (tables as
cargo-ai storage query execute "<sql>"). Load<datasetSlug>.<modelSlug>to discover dataset and model slugs, and to fetch the DDL when you need column types or the SQL dialect.cargo-storage - For SQL queries against orchestration runtime tables (,
runs,batches,spans) — error rates, per-node failures, time-series — userecords. Workspace scoping is automatic; tables are referenced without a schema prefix.cargo-ai orchestration query execute "<sql>" - Before building a workflow node graph, load to get
cargo-connectionandconnectorUuid.actionSlug - Before executing a workflow that uses an agent node, load to get
cargo-ai.agentUuid - After runs complete, load to download results or measure performance. For action output retrieval, prefer
cargo-analyticsovercargo-ai orchestration run download-outputs— the former returns a signed-URL CSV/JSON of just the output node's data.run download - Load to understand credit consumption for any of the above.
cargo-billing
┌─────────────────────────────────────┐
│ cargo-gtm │
│ Outcome / front door for GTM │
│ Recipes, guides, provider-playbks │
└─────────────────┬───────────────────┘
│ delegates to ↓ (one-way)
┌──────────────────────┴──────────────────────┐
│ │
┌──────────────────────────────────────────────────────────────┐
│ cargo-workspace-management │
│ Authentication, users, tokens, folders │
└──────────────────────────────────────────────────────────────┘
┌─────────────────┐ ┌────────────────────┐ ┌─────────────────┐
│ cargo-storage │ │ cargo-connection │ │ cargo-ai │
│ Models, columns,│ │ Connectors, │ │ Agents, docs, │
│ datasets │ │ integration actions│ │ MCP, memory │
└────────┬────────┘ └─────────┬──────────┘ └────────┬────────┘
(cargo-content feeds
files/libraries to agents)
│ │ (UUIDs flow down) │
└──────────────────────┼───────────────────────┘
▼
┌───────────────────────────────────────┐
│ cargo-orchestration │
│ Runs, batches, plays, tools, SoR │
└───────────────┬───────────────────────┘
│
┌──────────────┴──────────────┐
▼ ▼
┌────────────────────────┐ ┌───────────────────────────┐
│ cargo-analytics │ │ cargo-billing │
│ Results, metrics, │ │ Credit usage, costs │
│ exports │ │ │
└────────────────────────┘ └───────────────────────────┘
┌───────────────────────────────────────┐
│ cargo-context │
│ Git-backed GTM markdown knowledge: │
│ personas, plays, proof, signals… │
└───────────────────────────────────────┘
(orthogonal: not part of the workflow flow)实际依赖规则:
- 通过相对路径(
cargo-gtm)委托能力技能执行任务。能力技能绝不会引用../cargo-orchestration/...。cargo-gtm - 为所有技能提供认证上下文——需先完成其设置。
cargo-workspace-management - 、
cargo-storage和cargo-connection为同级技能,向cargo-ai提供UUID。它们之间互不依赖。cargo-orchestration - 负责工作空间的文件和库(
cargo-content领域)。它生成文件/库UUID,供content作为Agent发布版本的cargo-ai(RAG)使用。上传的内容文件也会以只读形式显示在resources运行沙箱的cargo-context目录下。.files/ - 与工作流执行流程正交。它处理基于Git的GTM知识库(markdown/MDX),而非存储或工作流运行。用于捕获/编辑工作空间的文本上下文——personas、plays、proof、objections、signals——以及检查类型化知识图谱。
cargo-context - 若要对存储执行SQL查询,使用(表名为
cargo-ai storage query execute "<sql>")。加载<datasetSlug>.<modelSlug>以发现数据集和模型slug,并在需要列类型或SQL方言时获取DDL。cargo-storage - 若要对编排运行时表(、
runs、batches、spans)执行SQL查询——错误率、节点级失败、时间序列——使用records。工作空间范围会自动应用;表引用无需添加架构前缀。cargo-ai orchestration query execute "<sql>" - 在构建工作流节点图前,加载以获取
cargo-connection和connectorUuid。actionSlug - 在执行包含Agent节点的工作流前,加载以获取
cargo-ai。agentUuid - 运行完成后,加载以下载结果或衡量性能。获取操作输出时,优先使用
cargo-analytics而非cargo-ai orchestration run download-outputs——前者仅返回输出节点数据的带签名URL的CSV/JSON文件。run download - 加载以了解上述操作的信用消耗情况。
cargo-billing
Skill details
技能详情
cargo-gtm
cargo-gtm
The outcome skill — front door for any GTM task. Bundles routing (), phase guides (), scenario recipes (), per-provider playbooks (), references (), and a sub-agent ().
SKILL.mdguides/recipes/provider-playbooks/references/agents/Recipes shipped:
| Recipe | Use when… |
|---|---|
| End-to-end find → enrich → verify → sync (P1/P2/P3 variants). |
| Build a Total Addressable Market list at scale (100–10,000 companies). |
| Resolve LinkedIn URL from name + company with strict validation. |
| Investor / accelerator → portfolio companies → contacts. |
| |
| Track companies that recently raised funding. |
| Find companies by tech-stack or hiring-intent signals. |
| Diff Closed-Won vs Closed-Lost segments, surface ICP signals. |
| Turn a signal segment into send-ready outreach (enrich → verify → personalize → sequencer handoff). |
| Wake up stale contacts only when a fresh signal fires (job change, funding, tech intent). |
| Revive Closed-Lost CRM deals by branching on |
| Multi-thread customer accounts — net-new buyers, deduped against the Contacts model. |
Priority provider stack (recipes lead with these): salesNavigator (sourcing), cargo native (firmographics + signals), waterfall (multi-source enrichment + email verify + job-change), FullEnrich (premium contact lookup), theirStack (tech-stack + hiring intent), peopleDataLabs (heavyweight backfill).
Critical rules:
- All recipes use credits-based actions (→ 141 credits-based actions across 120 integrations).
cargo-ai connection integration list - Action shape: — no
{"kind":"connector","integrationSlug":"<slug>","actionSlug":"<slug>","config":{}}inconnectorUuid.config - Output retrieval: (NOT
cargo-ai orchestration run download-outputs --output-node-slug <slug>).run download - peopleDataLabs filter shape: uses cargo's
searchXshape;{conjonction, groups, conditions}takes a PDL SQL string — never Elasticsearch.queryX
References:
../cargo-gtm/SKILL.md成果技能——所有GTM任务的入口。 包含路由()、阶段指南()、场景方案()、供应商手册()、参考文档()和子Agent()。
SKILL.mdguides/recipes/provider-playbooks/references/agents/已发布的方案:
| 方案 | 适用场景 |
|---|---|
| 端到端的寻找→enrichment→验证→同步流程(P1/P2/P3变体)。 |
| 大规模构建总可寻址市场(TAM)列表(100–10,000家公司)。 |
| 通过姓名+公司解析LinkedIn URL,并进行严格验证。 |
| 投资者/加速器→投资组合公司→联系人。 |
| 对联系人细分数据执行 |
| 跟踪近期完成融资的公司。 |
| 根据技术栈或招聘意向信号寻找公司。 |
| 对比已赢单与已丢单细分数据,挖掘ICP信号。 |
| 将信号细分数据转换为可发送的触达内容(enrichment→验证→个性化→交付给序列器)。 |
| 仅当出现新信号(职位变动、融资、技术意向)时,激活沉睡联系人。 |
| 根据 |
| 多线程拓展客户账户——新增买家,与联系人模型去重。 |
优先供应商栈(方案首选):salesNavigator(寻源)、Cargo原生(企业画像+信号)、waterfall(多源enrichment+邮箱验证+职位变动)、FullEnrich(高级联系人查询)、theirStack(技术栈+招聘意向)、peopleDataLabs(重量级回填)。
关键规则:
- 所有方案均使用基于信用的操作(→ 120个集成中有141项基于信用的操作)。
cargo-ai connection integration list - 操作格式:—
{"kind":"connector","integrationSlug":"<slug>","actionSlug":"<slug>","config":{}}中不得包含config。connectorUuid - 输出获取:(禁止使用
cargo-ai orchestration run download-outputs --output-node-slug <slug>)。run download - peopleDataLabs过滤格式:使用Cargo的
searchX格式;{conjonction, groups, conditions}接受PDL SQL字符串——绝不能使用Elasticsearch格式。queryX
参考文档:
../cargo-gtm/SKILL.mdcargo-orchestration
cargo-orchestration
The execution hub. Execute actions, run workflows, chat with AI agents, query orchestration runtime tables (///) with SQL, and fetch segment records.
runsbatchesspansrecordsCritical rules:
- See the decision flowchart at the top of for when to use
../cargo-orchestration/SKILL.mdvsaction executevsrun create.batch create - Prefer built-in actions + expressions when building a node graph. Avoid ,
python(JS), and raw HTTP nodes unless necessary: usescriptfor transforms, the nativevariablesnode for LLM calls, the integration's dedicated connector action for APIs, andagent/branch/filterfor routing. Seeswitch.../cargo-orchestration/references/node-selection.md - Filter JSON uses (not
conjonction) — breaks silently if misspelled.conjunction - Query orchestration runtime tables (ClickHouse) with against
cargo-ai orchestration query execute "<sql>",runs,batches,spans(no schema prefix; workspace scoping is automatic).records - For SQL against workspace storage (Companies, Contacts, …), use — documented in
cargo-ai storage query execute "<sql>".cargo-storage - All operations are async — poll or pass . See Async polling.
--wait-until-finished
References:
../cargo-orchestration/SKILL.md执行枢纽。 执行操作、运行工作流、与AI Agent对话、使用SQL查询编排运行时表(///),以及获取细分数据记录。
runsbatchesspansrecords关键规则:
- 何时使用、
action execute或run create,详见batch create顶部的决策流程图。../cargo-orchestration/SKILL.md - 构建节点图时,优先使用内置操作+表达式。 除非必要,否则避免使用、
python(JS)和原始HTTP节点:使用script进行转换,使用原生variables节点进行LLM调用,使用集成的专用连接器操作调用API,使用agent/branch/filter进行路由。详见switch。../cargo-orchestration/references/node-selection.md - 过滤JSON使用(而非
conjonction)——拼写错误会导致静默失败。conjunction - 使用对编排运行时表(ClickHouse)执行查询,表名为
cargo-ai orchestration query execute "<sql>"、runs、batches、spans(无需架构前缀;工作空间范围自动应用)。records - 若要对工作空间存储(Companies、Contacts等)执行SQL查询,使用——详见
cargo-ai storage query execute "<sql>"文档。cargo-storage - 所有操作均为异步——可轮询或传递参数。详见异步轮询。
--wait-until-finished
参考文档:
../cargo-orchestration/SKILL.mdcargo-analytics
cargo-analytics
Measurement and export. Download run results, export segment data, and monitor error rates and success metrics.
Critical rules:
- requires
segment download, not--model-uuid.--segment-uuid - For batch result download, get the from
output-node-slug→release get <release-uuid>.nodes[].slug - For billing and credit usage, use instead.
cargo-billing
References:
../cargo-analytics/SKILL.md度量与导出。 下载运行结果、导出细分数据,以及监控错误率和成功指标。
关键规则:
- 需要
segment download,而非--model-uuid。--segment-uuid - 批量结果下载时,需从→
release get <release-uuid>中获取nodes[].slug。output-node-slug - 若要查看计费和信用使用情况,请使用。
cargo-billing
参考文档:
../cargo-analytics/SKILL.mdcargo-billing
cargo-billing
Cost and credit management. Track credit consumption per workflow, connector, or agent; check subscription status; view invoices.
Critical rules:
- Requires a token with admin access.
- Invoice amounts are in cents — divide by 100 for dollars.
- from
subscriptionAvailableCreditsCount - subscriptionCreditsUsedCount= remaining credits.subscription get
References:
../cargo-billing/SKILL.md成本与信用管理。 按工作流、连接器或Agent跟踪信用消耗;检查订阅状态;查看发票。
关键规则:
- 需要具有管理员权限的令牌。
- 发票金额单位为分——除以100可转换为美元。
- 返回的
subscription get= 剩余信用额度。subscriptionAvailableCreditsCount - subscriptionCreditsUsedCount
参考文档:
../cargo-billing/SKILL.mdcargo-storage
cargo-storage
Data schema management and SQL queries. Inspect models, create or update columns, navigate datasets, understand workspace data structure, and run SQL against workspace storage.
Critical rules:
- Query via (or
cargo-ai storage query execute "<sql>"for full exports) usingstorage query download --query "<sql>"table names (e.g.<datasetSlug>.<modelSlug>).default.companiesis optional — useful for column types and SQL dialect.model get-ddl - For SQL against orchestration runtime tables (/
runs/batches/spans), userecords— documented incargo-ai orchestration query execute "<sql>".cargo-orchestration - For advanced record queries (filtering, sorting, pagination), use from
segmentation segment fetch.cargo-orchestration
References:
../cargo-storage/SKILL.md数据架构管理与SQL查询。 检查模型、创建或更新列、浏览数据集、了解工作空间数据结构,以及对工作空间存储执行SQL查询。
关键规则:
- 使用(或
cargo-ai storage query execute "<sql>"进行完整导出)执行查询,表名为storage query download --query "<sql>"(例如<datasetSlug>.<modelSlug>)。default.companies为可选操作——有助于获取列类型和SQL方言。model get-ddl - 若要对编排运行时表(/
runs/batches/spans)执行SQL查询,使用records——详见cargo-ai orchestration query execute "<sql>"文档。cargo-orchestration - 若要进行高级记录查询(过滤、排序、分页),使用中的
cargo-orchestration。segmentation segment fetch
参考文档:
../cargo-storage/SKILL.mdcargo-connection
cargo-connection
Connector and integration management. Authenticate external services, discover supported actions, get the and values needed for workflow node graphs.
connectorUuidactionSlugKey concepts:
- Integration = external service type (HubSpot, Clearbit, Salesforce, …)
- Connector = authenticated instance of an integration (referenced by in nodes)
connectorUuid
References:
../cargo-connection/SKILL.md连接器与集成管理。 认证外部服务、发现支持的操作、获取工作流节点图所需的和值。
connectorUuidactionSlug核心概念:
- 集成 = 外部服务类型(HubSpot、Clearbit、Salesforce等)
- 连接器 = 集成的已认证实例(在节点中通过引用)
connectorUuid
参考文档:
../cargo-connection/SKILL.mdcargo-ai
cargo-ai
Agent resource management. Create and configure agents, configure releases, attach knowledge for retrieval-augmented generation (RAG), connect MCP servers, manage memories.
Critical rules:
- Knowledge for RAG attaches to an agent via the release's : files + libraries come from
resources. Wire them in withcargo-contentthenrelease update-draft --resources ….release deploy-draft - CLI ≥ 1.0.19: files and libraries moved out of the domain into the top-level
aidomain (now thecontentskill). The oldcargo-contentcommands no longer exist.cargo-ai ai file …
For using agents (sending messages, multi-turn chat, polling), use.cargo-orchestration
See for model and temperature guidance by use case.
../cargo-ai/SKILL.mdReferences:
../cargo-ai/SKILL.mdAgent资源管理。 创建和配置Agent、配置发布版本、为检索增强生成(RAG)附加知识库、连接MCP服务器、管理记忆。
关键规则:
- RAG知识库通过发布版本的附加到Agent:文件 + 库来自
resources。使用cargo-content进行关联,然后执行release update-draft --resources …。release deploy-draft - CLI ≥ 1.0.19: 文件和库已从领域移至顶级**
ai**领域(现为content技能)。旧的cargo-content命令已不再存在。cargo-ai ai file …
若要使用Agent(发送消息、多轮对话、轮询),请使用。cargo-orchestration
不同场景下的模型和温度设置指南详见。
../cargo-ai/SKILL.md参考文档:
../cargo-ai/SKILL.mdcargo-content
cargo-content
Workspace knowledge files & libraries. Upload, list, rename, move, and remove files (PDFs, CSVs, text); create and sync libraries — (workspace-managed) or -backed (synced from an external source via an unstructured-data extractor). These are the RAG knowledge resources agents reference.
nativeconnectorCritical rules:
- New top-level domain in CLI ≥ 1.0.19 —
content/cargo-ai content file …. The oldcargo-ai content library …path is gone (cargo-ai ai file …→ you're on the old path; bump the CLI).unknown command - A file or library is inert until attached to an agent's deployed release — that wiring lives in
resources.cargo-ai - Uploaded content files are also readable (read-only) under in the
.files/runtime sandbox.cargo-context - For batch-run input files (CSVs that drive a batch), use (a different surface) — see
cargo-ai workspaceManagement file upload.cargo-workspace-management
References:
../cargo-content/SKILL.md工作空间知识库文件与库。 上传、列出、重命名、移动和删除文件(PDF、CSV、文本);创建和同步库——(工作空间管理)或支持(通过非结构化数据提取器从外部源同步)。这些是Agent引用的RAG知识库资源。
nativeconnector关键规则:
- CLI ≥ 1.0.19版本新增顶级****领域——
content/cargo-ai content file …。旧的cargo-ai content library …路径已移除(若提示cargo-ai ai file …,说明你使用的是旧路径;请升级CLI)。unknown command - 文件或库在附加到Agent已部署版本的前处于惰性状态——关联操作在
resources中完成。cargo-ai - 上传的内容文件也可在运行沙箱的
cargo-context目录下读取(只读)。.files/ - 批量运行的输入文件(驱动批量任务的CSV),请使用(不同操作界面)——详见
cargo-ai workspaceManagement file upload。cargo-workspace-management
参考文档:
../cargo-content/SKILL.mdcargo-context
cargo-context
GTM context repository. Browse, read, write, and edit the workspace's git-backed knowledge base of typed markdown/MDX files — personas, plays, proof, objections, signals, ICPs, etc. — via the runtime sandbox. Inspect cross-references with the knowledge graph.
Key concepts:
- Context repository = the GitHub repo backing the workspace's context. Canonical example: . Files use
getcargohq/cargo-workspacesnames, YAML frontmatter with requiredkebab-case.md+title, anddescriptioncross-refs (nodomain/slug)..md - Runtime sandbox = a checked-out, executable copy of the context repo. and
runtime writepush to the default branch;runtime editdoes not push.runtime execute - Knowledge graph = the typed graph over every md/mdx file, with frontmatter and outbound cross-refs per node. Built via .
cargo-ai context graph get
Critical rules:
- /
runtime writecommit and push.runtime editis ephemeral — use it forruntime execute/grep/inspection, never for persistent changes.ls - must match the file content exactly once. Read first, copy whitespace verbatim.
runtime edit --old-string - Set +
titlefrontmatter on everydescription/.mdfile — a strong convention, not enforced: missing/malformed frontmatter is still committed, it just indexes poorly (graph falls back to filename + first paragraph, and reads.mdx, notsummary).description - Graph edges form only from frontmatter , markdown links, or wikilinks — a bare path in prose creates no edge. Cite source files in
references:.references: - For domains, conventions, and per-domain templates, see .
../cargo-context/references/conventions.md
Lifecycle:
- For bootstrapping a fresh workspace's context from a domain (ICP, personas, proof, signals — idempotent, skips already-seeded domains), see .
../cargo-context/references/examples/bootstrap-from-domain.md - For the full bootstrap + ongoing call-driven refresh playbook (Phase 1 + Phase 2 + cadence), see .
../cargo-context/references/examples/lifecycle.md
References:
../cargo-context/SKILL.mdGTM上下文仓库。 通过运行沙箱浏览、读取、写入和编辑工作空间基于Git的类型化markdown/MDX文件知识库——personas、plays、proof、objections、signals、ICP等。通过知识图谱检查交叉引用。
核心概念:
- 上下文仓库 = 支持工作空间上下文的GitHub仓库。典型示例:。文件使用
getcargohq/cargo-workspaces命名,包含必填kebab-case.md+title的YAML前置元数据,以及description交叉引用(无需domain/slug后缀)。.md - 运行沙箱 = 上下文仓库的已检出可执行副本。和
runtime write会推送到默认分支;runtime edit不会推送。runtime execute - 知识图谱 = 所有md/mdx文件的类型化图谱,包含每个节点的前置元数据和出站交叉引用。通过构建。
cargo-ai context graph get
关键规则:
- /
runtime write会提交并推送。runtime edit为临时操作——用于runtime execute/grep/检查,绝不能用于持久化更改。ls - 必须精确匹配文件内容一次。请先读取文件,完全复制空白字符。
runtime edit --old-string - 每个/
.md文件必须设置.mdx+title前置元数据——这是强约定,而非强制要求:缺失/格式错误的前置元数据仍可提交,但索引效果不佳(图谱会回退使用文件名+第一段内容,并读取description而非summary)。description - 图谱边仅由前置元数据、markdown链接或维基链接形成—— prose中的裸路径不会形成边。请在
references:中引用源文件。references: - 领域、约定和各领域模板详见。
../cargo-context/references/conventions.md
生命周期:
- 若要从领域(ICP、personas、proof、signals——幂等操作,会跳过已初始化的领域)引导新工作空间的上下文,详见。
../cargo-context/references/examples/bootstrap-from-domain.md - 完整的引导+持续调用驱动的刷新手册(阶段1 + 阶段2 + 节奏)详见。
../cargo-context/references/examples/lifecycle.md
参考文档:
../cargo-context/SKILL.mdcargo-hosting
cargo-hosting
Cargo Hosting. Scaffold, deploy, and manage hosted apps (Vite SPAs on , built on ) and workers (serverless edge handlers on ), plus the deployments that ship and promote them.
https://<slug>.cargo.app@cargo-ai/app-sdkfetch(request, env)@cargo-ai/worker-sdkLifecycle: (local scaffold) → (slot + globally-unique slug) → (build+upload) → (go live).
initcreatedeployment createdeployment promoteCritical rules:
- is the live subdomain — globally unique within the hosting domain.
--slug - Deploying ≠ going live. builds; the URL only moves on
deployment create.deployment promoteshows what's live.deployment get-promoted - is the package root, not
--source— the build (dist/for apps, bundling for workers) runs server-side.npm ci && vite build - Builds are async — poll until terminal before promoting.
deployment get - /
--app-uuidare mutually exclusive on deployment commands;--worker-uuidcascades to deployments.remove - Folders come from ;
cargo-workspace-managementmoves to root.--folder-uuid null
References:
../cargo-hosting/SKILL.mdCargo托管。 搭建、部署和管理托管应用(上的Vite单页应用,基于构建)和工作者(基于的无服务器边缘处理器),以及用于发布和升级的部署。
https://<slug>.cargo.app@cargo-ai/app-sdk@cargo-ai/worker-sdkfetch(request, env)生命周期: (本地搭建)→ (插槽+全局唯一slug)→ (构建+上传)→ (上线)。
initcreatedeployment createdeployment promote关键规则:
- 是在线子域名——在托管域内全局唯一。
--slug - 部署≠上线。仅执行构建;仅当执行
deployment create时,URL才会切换到新版本。deployment promote可查看当前在线版本。deployment get-promoted - 是包根目录,而非
--source——构建(应用为dist/,工作者为打包)在服务器端运行。npm ci && vite build - 构建为异步操作——需轮询直到状态变为终端状态,再执行升级。
deployment get - 部署命令中/
--app-uuid互斥;--worker-uuid操作会级联删除部署。remove - 文件夹来自;
cargo-workspace-management会将资源移至根目录。--folder-uuid null
参考文档:
../cargo-hosting/SKILL.mdcargo-workspace-management
cargo-workspace-management
Workspace administration. Invite users, create and rotate API tokens, organize plays/tools/agents into folders, manage roles, and submit reports to workspace management when the CLI fails or is being misused.
Critical rules:
- Most commands require a token with admin access.
- requires
workspaceManagement token create(the legacy--nameflag was removed). Pick a name that makes the token's purpose obvious in--from-userlater.token list - Token values are only shown once at creation — store immediately in a secrets manager (GitHub Secrets, AWS Secrets Manager, etc.).
- Always send a when the CLI errors, is being used incorrectly, or you (user or agent) are struggling to make progress on a CLI task — see the section at the top of this file and
workspaceManagement report create.../cargo-workspace-management/references/examples/reports.md
References:
../cargo-workspace-management/SKILL.md工作空间管理。 邀请用户、创建和轮换API令牌、将plays/tools/agents组织到文件夹中、管理角色,以及当CLI故障或被误用时向管理团队提交报告。
关键规则:
- 大多数命令需要具有管理员权限的令牌。
- 需要
workspaceManagement token create(旧的--name标志已移除)。请选择一个能明确体现令牌用途的名称,以便后续在--from-user中识别。token list - 令牌值仅在创建时显示一次——请立即存储在密钥管理器中(如GitHub Secrets、AWS Secrets Manager等)。
- 当CLI报错、被误用,或你(用户或Agent)在CLI任务中难以取得进展时,务必发送——详见本文档顶部章节和
workspaceManagement report create。../cargo-workspace-management/references/examples/reports.md
参考文档:
../cargo-workspace-management/SKILL.mdAsync polling
异步轮询
All operations are asynchronous. Pass to block, or poll:
--wait-until-finished| Result type | Poll command | Interval | Terminal when |
|---|---|---|---|
| Run | | 2s | |
| Batch | | 5s | |
| Agent message | | 2s | |
action executeaction execute-batchSee for retry strategies, error handling, and large-batch guidance.
../cargo-orchestration/references/polling.md所有操作均为异步。可传递参数阻塞等待,或进行轮询:
--wait-until-finished| 结果类型 | 轮询命令 | 间隔 | 终端状态 |
|---|---|---|---|
| Run | | 2s | |
| Batch | | 5s | |
| Agent message | | 2s | |
action executeaction execute-batch重试策略、错误处理和大批量任务指南详见。
../cargo-orchestration/references/polling.mdUUID flow between skills
技能间的UUID流转
See — producer/consumer table for every UUID and slug that crosses skill boundaries (, , , , …), the standard discovery sequence to run before any workflow, and the URL patterns for resolving UUIDs in the UI.
references/uuid-flow.mdworkflowUuidmodelUuidconnectorUuidactionSlugapp.getcargo.io详见——跨技能边界的所有UUID和slug的生产者/消费者表(、、、等)、任何工作流运行前的标准发现序列,以及在UI中解析UUID的URL模式。
references/uuid-flow.mdworkflowUuidmodelUuidconnectorUuidactionSlugapp.getcargo.ioEnd-to-end use cases
端到端用例
See — 8 worked recipes (single-record enrich, batch + CRM sync, AI lead scoring, custom workflow from scratch, error monitoring, fresh-workspace bootstrap, segment export with filter+sort, GTM context audit) showing which skills to load and the command sequence for each.
references/use-cases.md详见——8个已完成的方案(单条记录enrichment、批量+CRM同步、AI线索评分、从零开始构建自定义工作流、错误监控、新工作空间引导、带过滤+排序的细分数据导出、GTM上下文审计),展示了每个用例应加载的技能和命令序列。
references/use-cases.mdCommon gotchas
常见陷阱
See — silent-failure footguns and frequently confused command pairs ( spelling, vs , vs , storage query table naming, token-shown-once, invoice cents, third-party connector rate limits, vs /, …).
references/gotchas.mdconjonctionrun createbatch create--model-uuid--segment-uuidcontext runtime executewriteedit详见——静默失败的陷阱和易混淆的命令对(拼写错误、 vs 、 vs 、存储查询表命名、令牌仅显示一次、发票单位为分、第三方连接器速率限制、 vs /等)。
references/gotchas.mdconjonctionrun createbatch create--model-uuid--segment-uuidcontext runtime executewriteedit