跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 cargo-content

Cargo Content

管理一个 Cargo 工作空间所持有的知识——上传文件(PDF, CSV, text),重命名和组织它们,并构建本地或连接器支持的从外部源同步的库,因此代理可以取回它们(RAG). 触发 :\ “ 装入此 PDF\ ” ,\ “ 把这些文件作为知识\ ” , “ 建立知识库\ ” , “ 将我们的帮助中心同步到 Cargo\ ” , “ 工作空间里的文件\ ” , “ 将此文件夹\ ” , “ 将我们的定价表\ ” 。 跳过时 : 将文件或库线接入代理 —— 使用货物- ai; 上传驱动批量运行的 CSV —— 即工作空间管理文件上传 .

7591 安装量

官方网址:作者主页

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

管理一个 Cargo 工作空间所持有的知识——上传文件(PDF, CSV, text),重命名和组织它们,并构建本地或连接器支持的从外部源同步的库,因此代理可以取回它们(RAG). 触发 :\ “ 装入此 PDF\ ” ,\ “ 把这些文件作为知识\ ” , “ 建立知识库\ ” , “ 将我们的帮助中心同步到 Cargo\ ” , “ 工作空间里的文件\ ” , “ 将此文件夹\ ” , “ 将我们的定价表\ ” 。 跳过时 : 将文件或库线接入代理 —— 使用货物- ai; 上传驱动批量运行的 CSV —— 即工作空间管理文件上传 .

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Cargo CLI — Content、Bootstrap、Discover resources first、Files、List all files、Get a single file。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/examples/files.md、references/response-shapes.md、references/troubleshooting.md、references/prerequisites.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Manage the knowledge a Cargo workspace holds — upload files (PDF, CSV, text), rename and organize them, and build native or connector-backed libraries that sync from an external source, so agents can retrieve them (RAG). Triggers: \"upload this PDF\", \"add these docs as knowledge\", \"build a knowledge base\", \"sync our help center into Cargo\", \"what files are in the workspace\", \"index this folder\", \"attach our pricing sheet\". Skip when: wiring the file or library into an agent — use cargo-ai; uploading a CSV that drives a batch run — that is a workspace-management file upload.

Cargo CLI — ContentBootstrapDiscover resources firstFilesList all filesGet a single fileUpload a file (optionally straight into a folder)Update a file's name or folderRemove a fileLibrariesList libraries (filter by kind or connector)Get a single library

兼容:Requires @cargo-ai/cli (npm). Sign in or create an account with `cargo-ai login --email` (emailed code, no browser), `--oauth`, or an API token

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
cargo-content
description
Manage the knowledge a Cargo workspace holds — upload files (PDF, CSV, text), rename and organize them, and build native or connector-backed libraries that sync from an external source, so agents can retrieve them (RAG). Triggers: \"upload this PDF\", \"add these docs as knowledge\", \"build a knowledge base\", \"sync our help center into Cargo\", \"what files are in the workspace\", \"index this folder\", \"attach our pricing sheet\". Skip when: wiring the file or library into an agent — use cargo-ai; uploading a CSV that drives a batch run — that is a workspace-management file upload.
compatibility
Requires @cargo-ai/cli (npm). Sign in or create an account with `cargo-ai login --email` (emailed code, no browser), `--oauth`, or an API token
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 4
  • references/examples/files.md
  • references/response-shapes.md
  • references/troubleshooting.md
  • references/prerequisites.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「cargo-content」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-5c957616353c67a0-Cargo-Content.html
请存为 .cursor/skills/cargo-content/SKILL.md 或 .claude/skills/cargo-content/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/getcargohq/cargo-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/getcargohq/cargo-skills' --list

npx skills add 'https://github.com/getcargohq/cargo-skills' --skill 'cargo-content'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: cargo-content description: "Manage the knowledge a Cargo workspace holds — upload files (PDF, CSV, text), rename and organize them, and build native or connector-backed libraries that sync from an external source, so agents can retrieve them (RAG). Triggers: \"upload this PDF\", \"add these docs as knowledge\", \"build a knowledge base\", \"sync our help center into Cargo\", \"what files are in the workspace\", \"index this folder\", \"attach our pricing sheet\". Skip when: wiring the file or library into an agent — use cargo-ai; uploading a CSV that drives a batch run — that is a workspace-management file upload." version: "1.0.1" compatibility: Requires @cargo-ai/cli (npm). Sign in or create an account with `cargo-ai login --email` (emailed code, no browser), `--oauth`, or an API token homepage: https://github.com/getcargohq/cargo-skills metadata: author: getcargo openclaw: requires: bins: - cargo-ai install: - kind: node package: "@cargo-ai/cli@latest" bins: - cargo-ai homepage: https://github.com/getcargohq/cargo-skills --- # Cargo CLI — Content Workspace **knowledge** management: upload and organize **files** (PDFs, CSVs, text) and group or sync them into **libraries**. These are the binary/grouped knowledge resources that ground agent responses (retrieval-augmented generation, RAG). > **New top-level domain (CLI ≥ 1.0.19).** Files and libraries moved out of the `ai` domain into the `content` domain — `cargo-ai content file …` and `cargo-ai content library …`. The old `cargo-ai ai file …` commands no longer exist; an `unknown command` error means you're on the old path. > For **attaching** a file or library to an agent (via the release `resources` array), use [`cargo-ai`](../cargo-ai/SKILL.md). > For **folders** that organize files, use [`cargo-workspace-management`](../cargo-workspace-management/SKILL.md) (`cargo-ai workspaceManagement folder …`). > For batch-run **input** files (CSVs uploaded to drive a batch), that's a different surface — `cargo-ai workspaceManagement file upload` — documented in [`cargo-workspace-management`](../cargo-workspace-management/SKILL.md). > See `references/examples/files.md` for end-to-end file, library, and attach-to-agent examples. > See `references/response-shapes.md` for full JSON response structures. > See `references/troubleshooting.md` for common errors and how to fix them. ## Bootstrap Already signed in (`cargo-ai whoami` returns a workspace)? Skip to the next section. ```bash npm install -g @cargo-ai/cli # no global install? prefix every command with `npx @cargo-ai/cli` cargo-ai login --email [email protected] # emailed code, no browser; creates the account on first use # alternatives: --oauth (browser) · --token (CI) cargo-ai whoami # confirm the active workspace before any write ``` Every command prints JSON to stdout; failures exit non-zero with `{"errorMessage": "..."}`. Anything that creates a run or a batch is async — pass `--wait-until-finished` or poll the matching `get`. When the full skill bundle is installed, [`../cargo/references/prerequisites.md`](../cargo/references/prerequisites.md) adds the CLI version pin, token scopes, and the admin-only surface. ## Discover resources first ```bash cargo-ai content file list # all uploaded files (uuid, name, contentType, size) cargo-ai content library list # knowledge libraries (native or connector-backed) ``` ## Files Upload files (PDFs, CSVs, text) so an agent can ground its responses in specific knowledge. The upload response includes the `uuid` you reference when attaching the file to an agent release (see [`cargo-ai`](../cargo-ai/SKILL.md)). ```bash # List all files cargo-ai content file list # Get a single file cargo-ai content file get # Upload a file (optionally straight into a folder) cargo-ai content file upload --file ./knowledge-base.pdf cargo-ai content file upload --file ./knowledge-base.pdf --folder-uuid # Update a file's name or folder cargo-ai content file update --uuid --name "Q1 Research Notes" cargo-ai content file update --uuid --folder-uuid # Remove a file cargo-ai content file remove ``` > **Reading content files from the context sandbox.** Uploaded content files are also available **read-only** under `.files/` in the context runtime sandbox, so a command run there can consume them — e.g. `cargo-ai context runtime execute --command ls --args '["-1",".files"]'`. The directory sits outside the committed context tree (never pushed, not writable); to add or change files use `content file` here. See [`cargo-context`](../cargo-context/SKILL.md). ## Libraries A library groups files into one resource an agent can reference. There are two kinds: - **`native`** — workspace-managed collections of uploaded files. - **`connector`** — synced from an external source (e.g. a help center or knowledge base) through an unstructured-data extractor (`--extractor-slug`). Get the `connectorUuid` from [`cargo-connection`](../cargo-connection/SKILL.md). ```bash # List libraries (filter by kind or connector) cargo-ai content library list cargo-ai content library list --kind native cargo-ai content library list --kind connector --connector-uuid # Get a single library cargo-ai content library get # Create a connector-backed library cargo-ai content library create \ --name "Help Center" \ --connector-uuid \ --extractor-slug \ --folder-uuid \ --config '{}' # Update / remove cargo-ai content library update --uuid --name "Updated Name" cargo-ai content library remove ``` ## Attaching to an agent Files and libraries are knowledge **resources** — they do nothing until attached to an agent via that agent's draft release `resources` array, then deployed. That wiring lives in [`cargo-ai`](../cargo-ai/SKILL.md) (`ai release update-draft --resources …` → `ai release deploy-draft`). See `references/examples/files.md` for the upload → attach → deploy sequence. ## Help Every command supports `--help`: ```bash cargo-ai content file upload --help cargo-ai content library create --help ```

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.