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 (
cargo-gtm
) 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/recipes/*.md
    ) and provider playbooks (
    ../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
    cargo-gtm
    , or directly when you need a specific CLI domain.
cargo-gtm
delegates to capability skills; capability skills never reference
cargo-gtm
(one-way dependency).
Glossary: See
references/glossary.md
for term-by-term definitions (UUIDs, slugs,
conjonction
, run/batch/play/tool, signal/persona/ICP, etc.).
本仓库根目录下包含11项技能:1项成果技能
cargo-gtm
)和10项能力技能
  • cargo-gtm
    — 应用库。所有GTM任务的入口(如“构建TAM列表”“寻找5位金融科技CTO”“监控职位变动”)。通过内部方案(
    ../cargo-gtm/recipes/*.md
    )和供应商手册(
    ../cargo-gtm/provider-playbooks/*.md
    )进行路由。
  • 能力技能 — 标准库。每个CLI领域对应一项技能(编排、存储、连接、AI、内容、上下文、分析、计费、托管、工作空间管理)。由
    cargo-gtm
    加载,或在需要特定CLI领域时直接加载。
cargo-gtm
会委托能力技能执行任务;能力技能绝不会引用
cargo-gtm
(单向依赖)。
术语表: 详见
references/glossary.md
获取术语定义(UUID、slug、
conjonction
、run/batch/play/tool、signal/persona/ICP等)。

Installation

安装

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
SessionStart
/
SessionEnd
hooks scaffolded by
curl -fsSL https://api.getcargo.io/install.sh | sh
are present. Do them by hand only when those hooks aren't installed. Job 2 (reporting) is always your responsibility — it can't be automated.
由Cargo安装程序自动执行。
curl -fsSL https://api.getcargo.io/install.sh | sh
生成的
SessionStart
/
SessionEnd
钩子存在时,任务1和任务3(刷新 + 会话注册/完成)会自动运行。仅当这些钩子未安装时,才需要手动执行。任务2(上报)始终由你负责——无法自动执行。

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
undefined

Refresh — 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."

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`可用时,才可跳过`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
--help
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:
bash
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
../cargo-workspace-management/SKILL.md
(Reports section) and
../cargo-workspace-management/references/examples/reports.md
for templates.
在以下场景下,重新刷新CLI和技能:
  • 文档中记录的CLI标志或响应格式与你实际观察到的不符(会话开始后可能已发布修复)。
  • 用户明确要求(如“升级cargo”“确保我使用的是最新版本”)。
当CLI出现技能文档和
--help
无法解决的故障、用户或Agent重复执行同一命令却无进展、标志/JSON负载的语法不明确,或所需功能似乎缺失时,发送工作空间管理报告
bash
cargo-ai workspaceManagement report create \
  --title "<问题的一行摘要>" \
  --description "<尝试的具体命令、errorMessage、预期与实际结果、涉及的UUID>"
触发条件(满足任意一项即可):
  • 同一任务的命令连续失败≥2次,且原因不明确。
  • CLI被误用,且正确用法无法从技能文档、示例或
    --help
    中找到。
  • 文档记录的行为与实际观察到的不符。
  • 某项功能似乎完全缺失。
这是官方反馈渠道——每一份报告都会由Cargo团队审核,并用于改进CLI和这些技能。不要默默放弃——提交报告。 模板详见
../cargo-workspace-management/SKILL.md
(Reports章节)和
../cargo-workspace-management/references/examples/reports.md

3. 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_at
:
bash
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
and
--summary
are required (NOT NULL).
--finished
stamps
finished_at = now
; pass
--finished-at <iso>
for an explicit timestamp.

生成一个简短标题(5-8个单词)和1-2句话的会话内容摘要,然后覆盖占位符记录并标记
finished_at
bash
cargo-ai workspaceManagement session upsert \
  --session-id <claude-session-id> \
  --title "<5-8词标题>" \
  --summary "<1-2句话总结已完成或尝试完成的内容>" \
  --finished
--title
--summary
为必填项(不可为NULL)。
--finished
会将
finished_at
标记为当前时间;若需指定时间戳,可传递
--finished-at <iso>

Skills at a glance

技能一览

Outcome skill

成果技能

Load when the user states a real-world goal.
SkillLoad when you need to…
cargo-gtm
(recap)
Any GTM task — sourcing, enrichment, verification, scoring, sequencing, CRM sync, signal monitoring (job changes, funding, tech-stack/hiring intent). Routes via recipes (
recipes/
), guides (
guides/
), and provider playbooks (
provider-playbooks/
).
当用户提出实际业务目标时加载。
技能加载场景
cargo-gtm
(回顾)
任何GTM任务——寻源、enrichment、验证、评分、排序、CRM同步、信号监控(职位变动、融资、技术栈/招聘意向)。通过方案(
recipes/
)、指南(
guides/
)和供应商手册(
provider-playbooks/
)进行路由。

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.
SkillLoad when you need to…
cargo-orchestration
(recap)
Execute actions, run workflows, trigger batches, chat with agents, query orchestration with SQL (ClickHouse)
cargo-analytics
(recap)
Download run results, export segment data, monitor error rates and metrics
cargo-billing
(recap)
Check credit usage, view subscription details, track costs per workflow or connector
cargo-storage
(recap)
Inspect or modify data models, columns, datasets, and relationships; query workspace storage with SQL
cargo-connection
(recap)
Manage connector authentication, discover available integrations and their actions
cargo-ai
(recap)
Create and configure agents, configure releases, attach knowledge for RAG, manage MCP servers and memories
cargo-content
(recap)
Upload and organize knowledge files, build native/connector-backed knowledge libraries for RAG (the
content
domain)
cargo-context
(recap)
Browse/read/write/edit the workspace's git-backed GTM context repo, run commands in its runtime sandbox, inspect the knowledge graph
cargo-hosting
(recap)
Scaffold, deploy, and promote hosted apps (Vite SPAs on
*.cargo.app
) and edge workers (serverless HTTP handlers), and manage their deployments
cargo-workspace-management
(recap)
Invite users, create API tokens, organize folders, manage roles, report CLI issues to management
Agent knowledge for RAG: files + libraries live in the
content
domain →
cargo-content
; how they attach to an agent →
cargo-ai
. (Files/libraries moved out of the old
ai file …
path in CLI ≥ 1.0.19.)
针对特定CLI领域加载。每行的第一个链接指向实际的SKILL.md;括号内的链接指向本页面的回顾部分。
技能加载场景
cargo-orchestration
(回顾)
执行操作、运行工作流、触发批量任务、与Agent对话、使用SQL(ClickHouse)查询编排数据
cargo-analytics
(回顾)
下载运行结果、导出细分数据、监控错误率和指标
cargo-billing
(回顾)
查看信用额度使用情况、订阅详情、按工作流或连接器跟踪成本
cargo-storage
(回顾)
检查或修改数据模型、列、数据集及关系;使用SQL查询工作空间存储
cargo-connection
(回顾)
管理连接器认证、发现可用集成及其操作
cargo-ai
(回顾)
创建和配置Agent、配置发布版本、为RAG附加知识库、管理MCP服务器和记忆
cargo-content
(回顾)
上传和组织知识库文件、为RAG构建原生/连接器支持的知识库(
content
领域)
cargo-context
(回顾)
浏览/读取/写入/编辑工作空间基于Git的GTM上下文仓库、在其运行沙箱中执行命令、检查知识图谱
cargo-hosting
(回顾)
搭建、部署和托管应用(
*.cargo.app
上的Vite单页应用)及边缘工作者(无服务器HTTP处理器),并管理其部署
cargo-workspace-management
(回顾)
邀请用户、创建API令牌、组织文件夹、管理角色、向管理团队上报CLI问题
Agent的RAG知识库: 文件 + 存储在
content
领域 →
cargo-content
;如何将其附加到Agent →
cargo-ai
。(在CLI ≥ 1.0.19版本中,文件/库已从旧的
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 (
cargo-ai <domain> --help
) when a task needs them, and file a
workspaceManagement report
if the surface is unclear:
CLI domainCovers
segmentation
Segments and changes (
segment list/get/create/fetch/download
,
change
). Some of this is already used from
cargo-orchestration
/
cargo-analytics
.
expression
Recipes and expression evaluation (
eval
,
recipe
) — generate/evaluate the template expressions used in node graphs.
system-of-record
System-of-record, client, and log operations.
revenue-organization
Allocations, capacities, members, territories (revenue/territory planning).
user-management
Current-user operations with no workspace context.

CLI包含多个尚未被能力技能封装的领域。当任务需要这些领域时,可直接使用(
cargo-ai <domain> --help
);若操作界面不清晰,可提交
workspaceManagement report
CLI领域涵盖内容
segmentation
细分数据及变更(
segment list/get/create/fetch/download
,
change
)。部分功能已在
cargo-orchestration
/
cargo-analytics
中使用。
expression
方案和表达式求值(
eval
,
recipe
)——生成/评估节点图中使用的模板表达式。
system-of-record
系统记录、客户端和日志操作。
revenue-organization
分配、容量、成员、区域(营收/区域规划)。
user-management
无工作空间上下文的当前用户操作。

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:
  • cargo-gtm
    delegates to capability skills via relative paths (
    ../cargo-orchestration/...
    ). Capability skills never reference
    cargo-gtm
    .
  • cargo-workspace-management
    provides auth context for every skill — set it up first.
  • cargo-storage
    ,
    cargo-connection
    , and
    cargo-ai
    are peer skills that supply UUIDs to
    cargo-orchestration
    . They don't depend on each other.
  • cargo-content
    owns workspace files and libraries (the
    content
    domain). It produces file/library UUIDs that
    cargo-ai
    consumes as agent release
    resources
    (RAG). Uploaded content files also surface read-only under
    .files/
    in the
    cargo-context
    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.
  • For SQL queries against storage, use
    cargo-ai storage query execute "<sql>"
    (tables as
    <datasetSlug>.<modelSlug>
    ). Load
    cargo-storage
    to discover dataset and model slugs, and to fetch the DDL when you need column types or the SQL dialect.
  • For SQL queries against orchestration runtime tables (
    runs
    ,
    batches
    ,
    spans
    ,
    records
    ) — error rates, per-node failures, time-series — use
    cargo-ai orchestration query execute "<sql>"
    . Workspace scoping is automatic; tables are referenced without a schema prefix.
  • Before building a workflow node graph, load
    cargo-connection
    to get
    connectorUuid
    and
    actionSlug
    .
  • Before executing a workflow that uses an agent node, load
    cargo-ai
    to get
    agentUuid
    .
  • After runs complete, load
    cargo-analytics
    to download results or measure performance. For action output retrieval, prefer
    cargo-ai orchestration run download-outputs
    over
    run download
    — the former returns a signed-URL CSV/JSON of just the output node's data.
  • Load
    cargo-billing
    to understand credit consumption for any of the above.

            ┌─────────────────────────────────────┐
            │              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
    为同级技能,向
    cargo-orchestration
    提供UUID。它们之间互不依赖。
  • cargo-content
    负责工作空间的文件
    content
    领域)。它生成文件/库UUID,供
    cargo-ai
    作为Agent发布版本的
    resources
    (RAG)使用。上传的内容文件也会以只读形式显示在
    cargo-context
    运行沙箱的
    .files/
    目录下。
  • cargo-context
    与工作流执行流程正交。它处理基于Git的GTM知识库(markdown/MDX),而非存储或工作流运行。用于捕获/编辑工作空间的文本上下文——personas、plays、proof、objections、signals——以及检查类型化知识图谱。
  • 若要对存储执行SQL查询,使用
    cargo-ai storage query execute "<sql>"
    (表名为
    <datasetSlug>.<modelSlug>
    )。加载
    cargo-storage
    以发现数据集和模型slug,并在需要列类型或SQL方言时获取DDL。
  • 若要对编排运行时表(
    runs
    batches
    spans
    records
    )执行SQL查询——错误率、节点级失败、时间序列——使用
    cargo-ai orchestration query execute "<sql>"
    。工作空间范围会自动应用;表引用无需添加架构前缀。
  • 在构建工作流节点图前,加载
    cargo-connection
    以获取
    connectorUuid
    actionSlug
  • 在执行包含Agent节点的工作流前,加载
    cargo-ai
    以获取
    agentUuid
  • 运行完成后,加载
    cargo-analytics
    以下载结果或衡量性能。获取操作输出时,优先使用
    cargo-ai orchestration run download-outputs
    而非
    run download
    ——前者仅返回输出节点数据的带签名URL的CSV/JSON文件。
  • 加载
    cargo-billing
    以了解上述操作的信用消耗情况。

Skill details

技能详情

cargo-gtm

cargo-gtm

The outcome skill — front door for any GTM task. Bundles routing (
SKILL.md
), phase guides (
guides/
), scenario recipes (
recipes/
), per-provider playbooks (
provider-playbooks/
), references (
references/
), and a sub-agent (
agents/
).
Recipes shipped:
RecipeUse when…
recipes/prospecting.md
End-to-end find → enrich → verify → sync (P1/P2/P3 variants).
recipes/build-tam.md
Build a Total Addressable Market list at scale (100–10,000 companies).
recipes/linkedin-url-lookup.md
Resolve LinkedIn URL from name + company with strict validation.
recipes/portfolio-prospecting.md
Investor / accelerator → portfolio companies → contacts.
recipes/job-change-monitoring.md
waterfall.detectJobChange
(cargo-unique) on a contact segment.
recipes/funding-watch.md
Track companies that recently raised funding.
recipes/tech-intent.md
Find companies by tech-stack or hiring-intent signals.
recipes/icp-discovery.md
Diff Closed-Won vs Closed-Lost segments, surface ICP signals.
recipes/outreach-activation.md
Turn a signal segment into send-ready outreach (enrich → verify → personalize → sequencer handoff).
recipes/re-engagement.md
Wake up stale contacts only when a fresh signal fires (job change, funding, tech intent).
recipes/lost-deal-revival.md
Revive Closed-Lost CRM deals by branching on
lost_reason
(champion left, budget, timing).
recipes/account-expansion.md
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 (
    cargo-ai connection integration list
    → 141 credits-based actions across 120 integrations).
  • Action shape:
    {"kind":"connector","integrationSlug":"<slug>","actionSlug":"<slug>","config":{}}
    no
    connectorUuid
    in
    config
    .
  • Output retrieval:
    cargo-ai orchestration run download-outputs --output-node-slug <slug>
    (NOT
    run download
    ).
  • peopleDataLabs filter shape:
    searchX
    uses cargo's
    {conjonction, groups, conditions}
    shape;
    queryX
    takes a PDL SQL string — never Elasticsearch.
References:
../cargo-gtm/SKILL.md

成果技能——所有GTM任务的入口。 包含路由(
SKILL.md
)、阶段指南(
guides/
)、场景方案(
recipes/
)、供应商手册(
provider-playbooks/
)、参考文档(
references/
)和子Agent(
agents/
)。
已发布的方案:
方案适用场景
recipes/prospecting.md
端到端的寻找→enrichment→验证→同步流程(P1/P2/P3变体)。
recipes/build-tam.md
大规模构建总可寻址市场(TAM)列表(100–10,000家公司)。
recipes/linkedin-url-lookup.md
通过姓名+公司解析LinkedIn URL,并进行严格验证。
recipes/portfolio-prospecting.md
投资者/加速器→投资组合公司→联系人。
recipes/job-change-monitoring.md
对联系人细分数据执行
waterfall.detectJobChange
(Cargo独有功能)。
recipes/funding-watch.md
跟踪近期完成融资的公司。
recipes/tech-intent.md
根据技术栈或招聘意向信号寻找公司。
recipes/icp-discovery.md
对比已赢单与已丢单细分数据,挖掘ICP信号。
recipes/outreach-activation.md
将信号细分数据转换为可发送的触达内容(enrichment→验证→个性化→交付给序列器)。
recipes/re-engagement.md
仅当出现新信号(职位变动、融资、技术意向)时,激活沉睡联系人。
recipes/lost-deal-revival.md
根据
lost_reason
(关键联系人离职、预算、时机)分支处理,挽回已丢单的CRM交易。
recipes/account-expansion.md
多线程拓展客户账户——新增买家,与联系人模型去重。
优先供应商栈(方案首选):salesNavigator(寻源)、Cargo原生(企业画像+信号)、waterfall(多源enrichment+邮箱验证+职位变动)、FullEnrich(高级联系人查询)、theirStack(技术栈+招聘意向)、peopleDataLabs(重量级回填)。
关键规则:
  • 所有方案均使用基于信用的操作(
    cargo-ai connection integration list
    → 120个集成中有141项基于信用的操作)。
  • 操作格式:
    {"kind":"connector","integrationSlug":"<slug>","actionSlug":"<slug>","config":{}}
    config
    中不得包含
    connectorUuid
  • 输出获取:
    cargo-ai orchestration run download-outputs --output-node-slug <slug>
    (禁止使用
    run download
    )。
  • peopleDataLabs过滤格式:
    searchX
    使用Cargo的
    {conjonction, groups, conditions}
    格式;
    queryX
    接受PDL SQL字符串——绝不能使用Elasticsearch格式。
参考文档:
../cargo-gtm/SKILL.md

cargo-orchestration

cargo-orchestration

The execution hub. Execute actions, run workflows, chat with AI agents, query orchestration runtime tables (
runs
/
batches
/
spans
/
records
) with SQL, and fetch segment records.
Critical rules:
  • See the decision flowchart at the top of
    ../cargo-orchestration/SKILL.md
    for when to use
    action execute
    vs
    run create
    vs
    batch create
    .
  • Prefer built-in actions + expressions when building a node graph. Avoid
    python
    ,
    script
    (JS), and raw HTTP nodes unless necessary: use
    variables
    for transforms, the native
    agent
    node for LLM calls, the integration's dedicated connector action for APIs, and
    branch
    /
    filter
    /
    switch
    for routing. See
    ../cargo-orchestration/references/node-selection.md
    .
  • Filter JSON uses
    conjonction
    (not
    conjunction
    ) — breaks silently if misspelled.
  • Query orchestration runtime tables (ClickHouse) with
    cargo-ai orchestration query execute "<sql>"
    against
    runs
    ,
    batches
    ,
    spans
    ,
    records
    (no schema prefix; workspace scoping is automatic).
  • For SQL against workspace storage (Companies, Contacts, …), use
    cargo-ai storage query execute "<sql>"
    — documented in
    cargo-storage
    .
  • All operations are async — poll or pass
    --wait-until-finished
    . See Async polling.
References:
../cargo-orchestration/SKILL.md

执行枢纽。 执行操作、运行工作流、与AI Agent对话、使用SQL查询编排运行时表(
runs
/
batches
/
spans
/
records
),以及获取细分数据记录。
关键规则:
  • 何时使用
    action execute
    run create
    batch create
    ,详见
    ../cargo-orchestration/SKILL.md
    顶部的决策流程图。
  • 构建节点图时,优先使用内置操作+表达式。 除非必要,否则避免使用
    python
    script
    (JS)和原始HTTP节点:使用
    variables
    进行转换,使用原生
    agent
    节点进行LLM调用,使用集成的专用连接器操作调用API,使用
    branch
    /
    filter
    /
    switch
    进行路由。详见
    ../cargo-orchestration/references/node-selection.md
  • 过滤JSON使用
    conjonction
    (而非
    conjunction
    )——拼写错误会导致静默失败。
  • 使用
    cargo-ai orchestration query execute "<sql>"
    对编排运行时表(ClickHouse)执行查询,表名为
    runs
    batches
    spans
    records
    (无需架构前缀;工作空间范围自动应用)。
  • 若要对工作空间存储(Companies、Contacts等)执行SQL查询,使用
    cargo-ai storage query execute "<sql>"
    ——详见
    cargo-storage
    文档。
  • 所有操作均为异步——可轮询或传递
    --wait-until-finished
    参数。详见异步轮询
参考文档:
../cargo-orchestration/SKILL.md

cargo-analytics

cargo-analytics

Measurement and export. Download run results, export segment data, and monitor error rates and success metrics.
Critical rules:
  • segment download
    requires
    --model-uuid
    , not
    --segment-uuid
    .
  • For batch result download, get the
    output-node-slug
    from
    release get <release-uuid>
    nodes[].slug
    .
  • For billing and credit usage, use
    cargo-billing
    instead.
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.md

cargo-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.
  • subscriptionAvailableCreditsCount - subscriptionCreditsUsedCount
    from
    subscription get
    = remaining credits.
References:
../cargo-billing/SKILL.md

成本与信用管理。 按工作流、连接器或Agent跟踪信用消耗;检查订阅状态;查看发票。
关键规则:
  • 需要具有管理员权限的令牌。
  • 发票金额单位为分——除以100可转换为美元。
  • subscription get
    返回的
    subscriptionAvailableCreditsCount - subscriptionCreditsUsedCount
    = 剩余信用额度。
参考文档:
../cargo-billing/SKILL.md

cargo-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
    cargo-ai storage query execute "<sql>"
    (or
    storage query download --query "<sql>"
    for full exports) using
    <datasetSlug>.<modelSlug>
    table names (e.g.
    default.companies
    ).
    model get-ddl
    is optional — useful for column types and SQL dialect.
  • For SQL against orchestration runtime tables (
    runs
    /
    batches
    /
    spans
    /
    records
    ), use
    cargo-ai orchestration query execute "<sql>"
    — documented in
    cargo-orchestration
    .
  • For advanced record queries (filtering, sorting, pagination), use
    segmentation segment fetch
    from
    cargo-orchestration
    .
References:
../cargo-storage/SKILL.md

数据架构管理与SQL查询。 检查模型、创建或更新列、浏览数据集、了解工作空间数据结构,以及对工作空间存储执行SQL查询。
关键规则:
  • 使用
    cargo-ai storage query execute "<sql>"
    (或
    storage query download --query "<sql>"
    进行完整导出)执行查询,表名为
    <datasetSlug>.<modelSlug>
    (例如
    default.companies
    )。
    model get-ddl
    为可选操作——有助于获取列类型和SQL方言。
  • 若要对编排运行时表(
    runs
    /
    batches
    /
    spans
    /
    records
    )执行SQL查询,使用
    cargo-ai orchestration query execute "<sql>"
    ——详见
    cargo-orchestration
    文档。
  • 若要进行高级记录查询(过滤、排序、分页),使用
    cargo-orchestration
    中的
    segmentation segment fetch
参考文档:
../cargo-storage/SKILL.md

cargo-connection

cargo-connection

Connector and integration management. Authenticate external services, discover supported actions, get the
connectorUuid
and
actionSlug
values needed for workflow node graphs.
Key concepts:
  • Integration = external service type (HubSpot, Clearbit, Salesforce, …)
  • Connector = authenticated instance of an integration (referenced by
    connectorUuid
    in nodes)
References:
../cargo-connection/SKILL.md

连接器与集成管理。 认证外部服务、发现支持的操作、获取工作流节点图所需的
connectorUuid
actionSlug
值。
核心概念:
  • 集成 = 外部服务类型(HubSpot、Clearbit、Salesforce等)
  • 连接器 = 集成的已认证实例(在节点中通过
    connectorUuid
    引用)
参考文档:
../cargo-connection/SKILL.md

cargo-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
    resources
    : files + libraries come from
    cargo-content
    . Wire them in with
    release update-draft --resources …
    then
    release deploy-draft
    .
  • CLI ≥ 1.0.19: files and libraries moved out of the
    ai
    domain into the top-level
    content
    domain (now the
    cargo-content
    skill). The old
    cargo-ai ai file …
    commands no longer exist.
For using agents (sending messages, multi-turn chat, polling), use
cargo-orchestration
.
See
../cargo-ai/SKILL.md
for model and temperature guidance by use case.
References:
../cargo-ai/SKILL.md

Agent资源管理。 创建和配置Agent、配置发布版本、为检索增强生成(RAG)附加知识库、连接MCP服务器、管理记忆。
关键规则:
  • RAG知识库通过发布版本的
    resources
    附加到Agent:文件 + 来自
    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.md

cargo-content

cargo-content

Workspace knowledge files & libraries. Upload, list, rename, move, and remove files (PDFs, CSVs, text); create and sync libraries
native
(workspace-managed) or
connector
-backed (synced from an external source via an unstructured-data extractor). These are the RAG knowledge resources agents reference.
Critical rules:
  • New top-level
    content
    domain in CLI ≥ 1.0.19 —
    cargo-ai content file …
    /
    cargo-ai content library …
    . The old
    cargo-ai ai file …
    path is gone (
    unknown command
    → you're on the old path; bump the CLI).
  • A file or library is inert until attached to an agent's deployed release
    resources
    — that wiring lives in
    cargo-ai
    .
  • Uploaded content files are also readable (read-only) under
    .files/
    in the
    cargo-context
    runtime sandbox.
  • For batch-run input files (CSVs that drive a batch), use
    cargo-ai workspaceManagement file upload
    (a different surface) — see
    cargo-workspace-management
    .
References:
../cargo-content/SKILL.md

工作空间知识库文件与库。 上传、列出、重命名、移动和删除文件(PDF、CSV、文本);创建和同步——
native
(工作空间管理)或
connector
支持(通过非结构化数据提取器从外部源同步)。这些是Agent引用的RAG知识库资源。
关键规则:
  • CLI ≥ 1.0.19版本新增顶级**
    content
    **领域——
    cargo-ai content file …
    /
    cargo-ai content library …
    。旧的
    cargo-ai ai file …
    路径已移除(若提示
    unknown command
    ,说明你使用的是旧路径;请升级CLI)。
  • 文件或库在附加到Agent已部署版本的
    resources
    前处于惰性状态——关联操作在
    cargo-ai
    中完成。
  • 上传的内容文件也可在
    cargo-context
    运行沙箱的
    .files/
    目录下读取(只读)。
  • 批量运行的输入文件(驱动批量任务的CSV),请使用
    cargo-ai workspaceManagement file upload
    (不同操作界面)——详见
    cargo-workspace-management
参考文档:
../cargo-content/SKILL.md

cargo-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:
    getcargohq/cargo-workspaces
    . Files use
    kebab-case.md
    names, YAML frontmatter with required
    title
    +
    description
    , and
    domain/slug
    cross-refs (no
    .md
    ).
  • Runtime sandbox = a checked-out, executable copy of the context repo.
    runtime write
    and
    runtime edit
    push to the default branch;
    runtime execute
    does not push.
  • 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 write
    /
    runtime edit
    commit and push.
    runtime execute
    is ephemeral — use it for
    grep
    /
    ls
    /inspection, never for persistent changes.
  • runtime edit --old-string
    must match the file content exactly once. Read first, copy whitespace verbatim.
  • Set
    title
    +
    description
    frontmatter on every
    .md
    /
    .mdx
    file — a strong convention, not enforced: missing/malformed frontmatter is still committed, it just indexes poorly (graph falls back to filename + first paragraph, and reads
    summary
    , not
    description
    ).
  • Graph edges form only from frontmatter
    references:
    , markdown links, or wikilinks — a bare path in prose creates no edge. Cite source files in
    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.md

GTM上下文仓库。 通过运行沙箱浏览、读取、写入和编辑工作空间基于Git的类型化markdown/MDX文件知识库——personas、plays、proof、objections、signals、ICP等。通过知识图谱检查交叉引用。
核心概念:
  • 上下文仓库 = 支持工作空间上下文的GitHub仓库。典型示例:
    getcargohq/cargo-workspaces
    。文件使用
    kebab-case.md
    命名,包含必填
    title
    +
    description
    的YAML前置元数据,以及
    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
    )。
  • 图谱仅由前置元数据
    references:
    、markdown链接或维基链接形成—— prose中的裸路径不会形成边。请在
    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.md

cargo-hosting

cargo-hosting

Cargo Hosting. Scaffold, deploy, and manage hosted apps (Vite SPAs on
https://<slug>.cargo.app
, built on
@cargo-ai/app-sdk
) and workers (serverless edge
fetch(request, env)
handlers on
@cargo-ai/worker-sdk
), plus the deployments that ship and promote them.
Lifecycle:
init
(local scaffold) →
create
(slot + globally-unique slug) →
deployment create
(build+upload) →
deployment promote
(go live).
Critical rules:
  • --slug
    is the live subdomain — globally unique within the hosting domain.
  • Deploying ≠ going live.
    deployment create
    builds; the URL only moves on
    deployment promote
    .
    deployment get-promoted
    shows what's live.
  • --source
    is the package root, not
    dist/
    — the build (
    npm ci && vite build
    for apps, bundling for workers) runs server-side.
  • Builds are async — poll
    deployment get
    until terminal before promoting.
  • --app-uuid
    /
    --worker-uuid
    are mutually exclusive on deployment commands;
    remove
    cascades to deployments.
  • Folders come from
    cargo-workspace-management
    ;
    --folder-uuid null
    moves to root.
References:
../cargo-hosting/SKILL.md

Cargo托管。 搭建、部署和管理托管应用
https://<slug>.cargo.app
上的Vite单页应用,基于
@cargo-ai/app-sdk
构建)和工作者(基于
@cargo-ai/worker-sdk
的无服务器边缘
fetch(request, env)
处理器),以及用于发布和升级的部署
生命周期:
init
(本地搭建)→
create
(插槽+全局唯一slug)→
deployment create
(构建+上传)→
deployment promote
(上线)。
关键规则:
  • --slug
    是在线子域名——在托管域内全局唯一
  • 部署≠上线
    deployment create
    仅执行构建;仅当执行
    deployment promote
    时,URL才会切换到新版本。
    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.md

cargo-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.
  • workspaceManagement token create
    requires
    --name
    (the legacy
    --from-user
    flag was removed). Pick a name that makes the token's purpose obvious in
    token list
    later.
  • Token values are only shown once at creation — store immediately in a secrets manager (GitHub Secrets, AWS Secrets Manager, etc.).
  • Always send a
    workspaceManagement report create
    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
    ../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.md

Async polling

异步轮询

All operations are asynchronous. Pass
--wait-until-finished
to block, or poll:
Result typePoll commandIntervalTerminal when
Run
cargo-ai orchestration run get <uuid>
2s
status
is
success
,
error
, or
cancelled
Batch
cargo-ai orchestration batch get <uuid>
5s
status
is
success
,
error
, or
cancelled
Agent message
cargo-ai ai message get <uuid>
2s
status
is
success
or
error
action execute
returns a run;
action execute-batch
returns a batch — same polling applies.
See
../cargo-orchestration/references/polling.md
for retry strategies, error handling, and large-batch guidance.

所有操作均为异步。可传递
--wait-until-finished
参数阻塞等待,或进行轮询:
结果类型轮询命令间隔终端状态
Run
cargo-ai orchestration run get <uuid>
2s
status
success
error
cancelled
Batch
cargo-ai orchestration batch get <uuid>
5s
status
success
error
cancelled
Agent message
cargo-ai ai message get <uuid>
2s
status
success
error
action execute
返回Run;
action execute-batch
返回Batch——轮询方式相同。
重试策略、错误处理和大批量任务指南详见
../cargo-orchestration/references/polling.md

UUID flow between skills

技能间的UUID流转

See
references/uuid-flow.md
— producer/consumer table for every UUID and slug that crosses skill boundaries (
workflowUuid
,
modelUuid
,
connectorUuid
,
actionSlug
, …), the standard discovery sequence to run before any workflow, and the
app.getcargo.io
URL patterns for resolving UUIDs in the UI.

详见
references/uuid-flow.md
——跨技能边界的所有UUID和slug的生产者/消费者表(
workflowUuid
modelUuid
connectorUuid
actionSlug
等)、任何工作流运行前的标准发现序列,以及在UI中解析UUID的
app.getcargo.io
URL模式。

End-to-end use cases

端到端用例

See
references/use-cases.md
— 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上下文审计),展示了每个用例应加载的技能和命令序列。

Common gotchas

常见陷阱

See
references/gotchas.md
— silent-failure footguns and frequently confused command pairs (
conjonction
spelling,
run create
vs
batch create
,
--model-uuid
vs
--segment-uuid
, storage query table naming, token-shown-once, invoice cents, third-party connector rate limits,
context runtime execute
vs
write
/
edit
, …).
详见
references/gotchas.md
——静默失败的陷阱和易混淆的命令对(
conjonction
拼写错误、
run create
vs
batch create
--model-uuid
vs
--segment-uuid
、存储查询表命名、令牌仅显示一次、发票单位为分、第三方连接器速率限制、
context runtime execute
vs
write
/
edit
等)。