Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cargo-context

БесплатноБез исполняемых скриптовНе проверен

Reads and writes a company's go-to-market knowledge base in Cargo: the git-backed markdown describing ICPs, personas, plays, proof points, objections…

getcargohqот getcargohq★ 27 звёзд на GitHub1 809 установок в других каталогах

Об этом скилле

Cargo CLI — Context

The context is a git-backed repository of typed markdown/MDX files that captures a workspace's GTM knowledge (company narrative, ICPs, personas, plays, proof, objections, etc.) and is read/written by both humans and agents. The cargo-ai context domain has two subdomains you'll use:

  • runtime — browse, read, write, edit, and execute against the workspace's runtime sandbox (a checked-out copy of the context repo). write/edit are pushed to the default branch, and execute auto-commits and pushes any tracked working-tree changes its command leaves behind.
  • graph — build/load the knowledge graph derived from every markdown/MDX file in the context repo.

The canonical example of a context repository is getcargohq/cargo-workspaces. Read its README.md to understand the domain layout and file conventions before writing new entries. For uploading runtime-independent files (CSVs, PDFs) used in batch runs, use cargo-workspace-management (cargo-ai workspaceManagement file upload) instead. For RAG file attachments to agents, use cargo-ai (cargo-ai content file upload).

See references/conventions.md for the full context repo structure and per-domain templates. See references/response-shapes.md for the JSON shapes returned by each cargo-ai context command. See references/troubleshooting.md for common errors and how to fix them. See references/examples/authoring.md for end-to-end add / edit / delete recipes. See references/examples/lifecycle.md for the bootstrap + refresh-from-calls playbook. See references/examples/graph-queries.md for inspecting the knowledge graph.

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 [email protected]  # 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 and print the error to stderr (piped: {"error": "...", "status": <http>, "body": {"reason": "..."}}, where body.reason is the machine-readable cause). Anything that creates a run or a batch is async — pass --wait-until-finished or poll the matching get. runtime write and runtime edit commit and push to the workspace's context repo, so confirming workspace.name first is non-negotiable. When the full skill bundle is installed, ../cargo/references/prerequisites.md adds the CLI version pin, token scopes, and the admin-only surface.

Discover the context first

Before editing anything, see what's in the context repo:

cargo-ai context runtime browse                 # list entries at the runtime sandbox root
cargo-ai context graph get                      # full knowledge graph derived from the repo's md/mdx files

Quick reference

# Runtime sandbox (checked-out copy of the context repo)
cargo-ai context runtime browse [--path <path>]
cargo-ai context runtime read --path <path> [--start-line <n>] [--end-line <n>]
cargo-ai context runtime write --path <path> --content <content> [--commit-message <message>]
cargo-ai context runtime edit --path <path> --old-string <old> --new-string <new> [--replace-all] [--commit-message <message>]
cargo-ai context runtime execute --command <command> [--args <json>] [--commit-message <message>]

# Knowledge graph
cargo-ai context graph get

Runtime sandbox

The runtime sandbox is a checked-out, executable copy of the context repository. It's the surface you use to read and modify context files, and to run commands against them.

Two important behaviors to remember:

  • write and edit push to the default branch of the context repo. They are not local-only.
  • execute pushes too. When the command leaves tracked files added, changed, deleted, or renamed, those changes are auto-committed (subject context(runtime): execute <command>, or --commit-message) and pushed to the default branch. Gitignored paths are skipped. A sed -i or rm run through execute lands in git.

Mirrored content files live read-only under .files/. A content file stored with mirrorToContext: true — the default for content file upload, web-app uploads and defineFile (see cargo-content) — is committed and pushed to the context repo at .files/<folder path>/<name> (commits titled content(mirror): upsert <name>, … move …, … remove …; a file over 10 MB lands as a JSON metadata sidecar instead of its bytes). A command run via execute (or read/`b

Полный SKILL.md на GitHub

Установить cargo-context в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/conventions.mdreferences/examples/authoring.mdreferences/examples/bootstrap-from-domain.mdreferences/examples/graph-queries.mdreferences/examples/lifecycle.mdreferences/response-shapes.mdreferences/troubleshooting.mdskill-metadata.json

FAQ

Что делает скилл cargo-context?

Reads and writes a company's go-to-market knowledge base in Cargo: the git-backed markdown describing ICPs, personas, plays, proof points, objections, competitors and signals, plus its sandbox and knowledge graph. Triggers: "document our ICP", "write up this persona", "what is our positioning", "add a battlecard", "capture this objection", "what do we know about <segment>", "update our context", "what is in the context repo", "who do we sell to". Skip when: discovering who actually buys by analyzing won/lost data, that is cargo-gtm (this skill writes the conclusion down, it does not derive it); storing structured records rather than prose, use cargo-storage; attaching documents to an agent for RAG, use cargo-content.

Как установить скилл cargo-context?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cargo-context запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cargo-context с