PluginBench
Skill
Pass
Audit score 90

cargo-content

getcargohq/cargo-skills

Upload, organize, and manage workspace knowledge files (PDFs, CSVs, text) for agent retrieval and RAG.

What is cargo-content?

Cargo Content manages the knowledge resources in a Cargo workspace—upload and organize files, and build native or connector-backed libraries that agents can retrieve from. Use this when you need to add documents, organize them into knowledge bases, or sync external sources like help centers into your workspace.

  • Upload files (PDFs, CSVs, text) and organize them into folders
  • Create native libraries from uploaded files or connector-backed libraries synced from external sources
  • List, rename, update, and remove files and libraries
  • Attach knowledge resources to agent releases for retrieval-augmented generation (RAG)
  • Access uploaded files read-only in the context runtime sandbox at `.files/`
  • Sync external knowledge sources (help centers, knowledge bases) via connectors and extractors

How to install cargo-content

npx skills add https://github.com/getcargohq/cargo-skills --skill cargo-content
Prerequisites
  • @cargo-ai/cli (npm) installed globally or available via npx
  • Signed in with `cargo-ai login --email`, `--oauth`, or `--token`
  • Confirm active workspace with `cargo-ai whoami` before uploads
Claude Code
Cursor
Windsurf
Cline

How to use cargo-content

  1. 1.Run `cargo-ai content file list` to see all uploaded files in your workspace
  2. 2.Upload a file with `cargo-ai content file upload --file ./path/to/file.pdf`
  3. 3.Optionally organize files into folders using `--folder-uuid` during upload or with `cargo-ai content file update`
  4. 4.Create a native library with `cargo-ai content library create --name "Library Name"` or a connector-backed library with `--connector-uuid` and `--extractor-slug`
  5. 5.Attach the file or library UUID to an agent release using `cargo-ai ai release update-draft --resources` (see cargo-ai skill)
  6. 6.Deploy the agent release to make the knowledge available for retrieval

Use cases

Good for
  • Upload a company pricing sheet or product documentation so an agent can answer customer questions accurately
  • Build a knowledge library from multiple PDFs and attach it to a customer-support agent
  • Sync a help center into Cargo so agents always retrieve the latest documentation
  • Organize uploaded files into folders and manage them by name or location
  • Index a folder of text files to create a searchable knowledge base for an agent
Who it's for
  • Agents that need grounded, factual responses from specific documents
  • Teams building customer-support or documentation-retrieval systems
  • Workspace administrators organizing knowledge resources
  • Developers integrating external knowledge sources via connectors

cargo-content FAQ

What file formats are supported?

PDFs, CSVs, and text files are supported for upload and knowledge retrieval.

How do I attach a file or library to an agent?

Use the `cargo-ai` skill: add the file or library UUID to the agent release `resources` array via `ai release update-draft --resources`, then deploy.

What is the difference between native and connector-backed libraries?

Native libraries are workspace-managed collections of uploaded files; connector-backed libraries sync from external sources like help centers via an extractor.

Can I access uploaded files from within a running agent context?

Yes, uploaded files are available read-only under `.files/` in the context runtime sandbox.

What should I use for batch-run input files?

Use `cargo-workspace-management` for CSV files that drive batch runs; `cargo-content` is for knowledge resources agents retrieve from.

Full instructions (SKILL.md)

Source of truth, from getcargohq/cargo-skills.


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. For folders that organize files, use cargo-workspace-management (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.

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.

npm install -g @cargo-ai/cli            # no global install? prefix every command with `npx @cargo-ai/cli`
cargo-ai login --email you@company.com  # emailed code, no browser; creates the account on first use
                                        # alternatives: --oauth (browser) · --token <api-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 adds the CLI version pin, token scopes, and the admin-only surface.

Discover resources first

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).

# List all files
cargo-ai content file list

# Get a single file
cargo-ai content file get <file-uuid>

# 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 <folder-uuid>

# Update a file's name or folder
cargo-ai content file update --uuid <file-uuid> --name "Q1 Research Notes"
cargo-ai content file update --uuid <file-uuid> --folder-uuid <folder-uuid>

# Remove a file
cargo-ai content file remove <file-uuid>

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.

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.
# 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 <connector-uuid>

# Get a single library
cargo-ai content library get <library-uuid>

# Create a connector-backed library
cargo-ai content library create \
  --name "Help Center" \
  --connector-uuid <connector-uuid> \
  --extractor-slug <extractor-slug> \
  --folder-uuid <folder-uuid> \
  --config '{}'

# Update / remove
cargo-ai content library update --uuid <library-uuid> --name "Updated Name"
cargo-ai content library remove <library-uuid>

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 (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:

cargo-ai content file upload --help
cargo-ai content library create --help