← 返回 Skills 市场
cargo-ai

Cargo Workspace Management

作者 Cargo · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
93
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cargo-workspace-management
功能描述
Manage workspace users, API tokens, folders, roles, and submit reports to workspace management using the Cargo CLI. Use when the user wants to invite or mana...
使用说明 (SKILL.md)

Cargo CLI — Workspace

Workspace administration: managing users, API tokens, folders, roles, workspace-level files, and submitting reports to workspace management.

See references/response-shapes.md for full JSON response structures. See references/troubleshooting.md for common errors and how to fix them. See references/examples/users.md for user invite and management examples. See references/examples/tokens.md for API token creation and rotation examples. See references/examples/folders.md for organizing resources into folders. See references/examples/reports.md for examples of submitting workspace management reports. See references/examples/sessions.md for the Claude Code SessionStart + SessionEnd hook recipe.

Prerequisites

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

Admin-only: user, role, and token writes require a token with admin access on the workspace. Folder writes and report create work with non-admin tokens.

Discover resources first

cargo-ai whoami                        # current user and active workspace
cargo-ai workspaceManagement user list           # all workspace members
cargo-ai workspaceManagement role list           # available roles
cargo-ai workspaceManagement token list          # all API tokens
cargo-ai workspaceManagement folder list         # all folders

Quick reference

cargo-ai whoami
cargo-ai workspaceManagement user list
cargo-ai workspaceManagement user create --user-email \x3Cemail> --role-slug \x3Cslug>
cargo-ai workspaceManagement token list
cargo-ai workspaceManagement token create --name \x3Cname>
cargo-ai workspaceManagement token remove \x3Ctoken-uuid>
cargo-ai workspaceManagement folder list
cargo-ai workspaceManagement folder create --name \x3Cname> --emoji-slug \x3Cslug> --kind \x3Ckind>
cargo-ai workspaceManagement report create --title \x3Ctitle> --description \x3Cdescription>
cargo-ai workspaceManagement session upsert --session-id \x3Cid> --title \x3Ctitle> --summary \x3Csummary> [--finished]

Current user and workspace

# Get your current user and workspace context
cargo-ai whoami
# → Returns your user UUID, email, and active workspace UUID

Users

# List all workspace members
cargo-ai workspaceManagement user list

# Invite a new user (requires their email and a role)
cargo-ai workspaceManagement user create \
  --user-email [email protected] \
  --role-slug \x3Crole-slug>

# Update a user's role
cargo-ai workspaceManagement user update --user-uuid \x3Cuuid> --role-slug \x3Cnew-role-slug>

# Remove a user from the workspace
cargo-ai workspaceManagement user remove --user-uuid \x3Cuuid>

Roles

Roles define what users can do in the workspace.

# List available roles
cargo-ai workspaceManagement role list

Always check available roles before inviting users — use the slug from role list when creating or updating users.

API tokens

Each token has a human-readable name and a permissions field. Tokens created via the CLI are issued with permissions: null, which means the token mirrors the permissions of its owning user (the user who ran token create) — so a token's effective access is bounded by what that user can do in the workspace. Fine-grained permission scoping (an explicit allow/deny list) is configured via the API or the Cargo app.

# List all API tokens (includes name and permissions of each token)
cargo-ai workspaceManagement token list

# Create a new token — --name is required
cargo-ai workspaceManagement token create --name "CI/CD pipeline"
# → Returns the token value — store it securely, it won't be shown again

# Remove a token
cargo-ai workspaceManagement token remove \x3Ctoken-uuid>

Naming: Pick a --name that makes the token's purpose obvious in token list later (e.g. "GitHub Actions — production", "Local dev — alice", "Zapier integration"). The name is the only way to tell tokens apart in the listing.

Security: Token values are only shown once at creation. Store them in a secrets manager (e.g. GitHub Secrets, AWS Secrets Manager).

Folders

Folders organize resources (plays, tools, agents) in the Cargo app.

# List all folders
cargo-ai workspaceManagement folder list

# Create a folder (kind: "tool", "play", "agent", or "file")
cargo-ai workspaceManagement folder create --name "Q1 Campaigns" --emoji-slug "rocket" --kind "play"

# Get a folder
cargo-ai workspaceManagement folder get \x3Cfolder-uuid>

# Update a folder
cargo-ai workspaceManagement folder update --uuid \x3Cfolder-uuid> --name "Q1 2025 Campaigns"

# Remove a folder
cargo-ai workspaceManagement folder remove \x3Cfolder-uuid>

Reports

Submit a report to workspace management. Use this whenever the CLI is failing, behaving unexpectedly, lacks a capability you need, or whenever you (user or agent) are struggling to accomplish a task with the CLI. This is the official feedback channel — every report is reviewed by the Cargo team and used to improve the CLI, its skills, and the underlying APIs.

# Submit a report to workspace management
cargo-ai workspaceManagement report create \
  --title "\x3Cshort summary>" \
  --description "\x3Cdetailed description, including the command(s) tried and the error(s) seen>"

When to send a report (non-exhaustive):

  • A command exits non-zero with an errorMessage you cannot resolve from --help or references/troubleshooting.md.
  • The CLI is being misused or the syntax is unclear (e.g. you can't figure out which flag to pass, or the JSON schema for --filter / --nodes / --action is ambiguous).
  • A user or AI agent is repeatedly retrying the same command without progress (≥ 2 failed attempts on the same task).
  • A documented command does not behave as the skill describes, or a response shape differs from what references/response-shapes.md documents.
  • A capability appears to be missing entirely (no command exists for what you need to do).
  • An async operation never reaches a terminal status, or returns inconsistent results across runs.

What to put in the report:

  • --title: one-line summary of the problem (e.g. "batch create fails with 'playNotCompatible' on tool workflow").
  • --description: include the exact command(s) executed (with sensitive values redacted), the JSON errorMessage, what you expected, what you tried, and any relevant UUIDs (run, batch, workflow, model). The more context you provide, the faster it can be triaged.
# Example: report a CLI struggle after multiple failed attempts
cargo-ai workspaceManagement report create \
  --title "segment fetch returns empty results despite matching records in UI" \
  --description "Ran: cargo-ai segmentation segment fetch --model-uuid \x3Cuuid> --filter '{\"conjunction\":\"and\",\"groups\":[...]}'. Got 0 records. The same filter shows 1,200 matches in the app UI. Tried both --filter and --segment-uuid; both return empty. Expected: the same records as the UI."

Do not silently give up on a failing CLI task. Send a report. This closes the feedback loop so the CLI and these skills can be improved.

Sessions

Record a Claude Code session in workspace_management.sessions. One row per (workspaceUuid, sessionId). Used by the cargo router's Claude Code SessionStart + SessionEnd hook recipe — see ../cargo/SKILL.md for when to wire them up.

# Upsert a session. Idempotent on --session-id within the workspace.
cargo-ai workspaceManagement session upsert \
  --session-id \x3Cclaude-session-id> \
  --title "\x3Cshort title>" \
  --summary "\x3Cone-or-two sentence summary>"

# Same call, but also stamp finished_at = now
cargo-ai workspaceManagement session upsert \
  --session-id \x3Cclaude-session-id> \
  --title "\x3Cfinal title>" \
  --summary "\x3Cfinal summary>" \
  --finished
  • --session-id, --title, --summary are required on every call. title and summary are NOT NULL in the schema — pass placeholders on the start call and overwrite on the end call.
  • --finished stamps finished_at = now. Use --finished-at \x3Ciso> for an explicit timestamp instead.
  • Calling upsert twice with the same --session-id updates the same row — title, summary, and finished_at are overwritten.

Returns the upserted session as JSON. See references/examples/sessions.md for the full hook recipe with transcript-driven AI summarization.

Workspace files

Workspace files are CSVs or other data files uploaded for use in batch runs.

# Upload a file
cargo-ai workspaceManagement file upload --file-path \x3Cpath-to-file>
# → Returns s3Filename

# Inspect a file's columns before running a batch
cargo-ai workspaceManagement file list-columns --s3-filename \x3Cs3-filename>
# → Returns column names to use when mapping to workflow inputs

The s3-filename is returned when uploading a file via cargo-ai workspaceManagement file upload. See the cargo-orchestration skill's references/examples/tools.md for the full file upload and batch run workflow.

Help

Every command supports --help:

cargo-ai workspaceManagement user create --help
cargo-ai workspaceManagement token create --help
cargo-ai workspaceManagement folder create --help
安全使用建议
Install only if you trust Cargo and want an agent to manage workspace users, tokens, files, folders, reports, and session records. Before enabling the session hooks, confirm that Claude transcripts may contain secrets, customer data, or proprietary code; avoid automatic transcript summarization unless your organization approves that data flow. Review files before upload, redact reports aggressively, and verify UUIDs before destructive user, token, or folder removal commands.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Most capabilities match workspace administration: users, roles, API tokens, folders, reports, and workspace file uploads. The material mismatch is the recommended automatic Claude Code session tracking workflow, which processes local transcripts and records session metadata/summaries in remote workspace storage.
Instruction Scope
Commands are generally explicit, but the hook recipe is recommended for every session, runs automatically after setup, suppresses errors, and lacks a clear consent/minimization step before transcript-derived summarization. Report guidance also encourages broad submission of commands, errors, and UUIDs with only narrow secret redaction guidance.
Install Mechanism
The artifact is markdown-only and declares installation of the external @cargo-ai/cli@latest Node package with a Cargo login or API token. Static scan and VirusTotal telemetry are clean, but the dependency is unpinned and inherits the trust/risk of the Cargo CLI package.
Credentials
Admin workspace authority, API token management, and file upload are expected for this skill, but local transcript reading and automated remote session logging are more sensitive than basic workspace management and are under-scoped in the user-facing guidance.
Persistence & Privilege
The skill documents persistent mutations including user removal, token creation/removal, folder changes, reports, file uploads, and session upserts. Some are purpose-aligned, but automatic session persistence and destructive examples lack sufficient confirmation, retention, and visibility guidance.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cargo-workspace-management
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cargo-workspace-management 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added reference to a new session management example: `references/examples/sessions.md` - Documented the `session upsert` command for session tracking and reporting - Updated install metadata to use the latest `@cargo-ai/cli` package - Clarified admin-only requirements for certain workspace commands - Linked prerequisites to a shared documentation file for consistency
v1.0.0
Initial release of cargo-workspace-management skill. - Manage workspace users: invite, remove, update roles. - Create, list, and remove API tokens. - Organize resources into folders: create, update, list, remove. - Inspect available roles and permissions. - Submit reports to workspace management for issues or feedback. - Requires @cargo-ai/cli and a Cargo account for authentication.
元数据
Slug cargo-workspace-management
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Cargo Workspace Management 是什么?

Manage workspace users, API tokens, folders, roles, and submit reports to workspace management using the Cargo CLI. Use when the user wants to invite or mana... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Cargo Workspace Management?

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

Cargo Workspace Management 是免费的吗?

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

Cargo Workspace Management 支持哪些平台?

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

谁开发了 Cargo Workspace Management?

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

💬 留言讨论