Command Palette

Search for a command to run...

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

qubrics-token-efficient-usage

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

Choose low-token Qubrics calls across MCP, CLI, SDKs, and HTTP by using snippets, counts, batches, deltas, cursors, ETags, and idempotency.

roshanjonahот roshanjonah250 установок в других каталогах

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

Qubrics token-efficient usage

ClawHub account note

This ClawHub skill connects OpenClaw agents to Qubrics. Some workflows require a Qubrics account and an appropriate Qubrics API key or agent token. Qubrics account usage is external to ClawHub; do not ask users to paste secrets into chat.

Use this skill to choose the lowest-cost Qubrics route that still answers the task correctly.

Boundaries

Before any CLI or SDK connection check or task command, start an isolated child process with inherited QUBRICS_API_KEY, SENDMUX_API_KEY, QUBRICS_ACCESS_TOKEN, SENDMUX_ACCESS_TOKEN, QUBRICS_PROFILE, SENDMUX_PROFILE, QUBRICS_BASE_URL and SENDMUX_BASE_URL cleared. Load only the intended credential from the user's secret store; for profile-based calls, leave direct credentials unset and select the intended --profile. Use the authorised endpoint before transmitting credentials and keep credentials out of arguments and output. Apply this precondition when reusing a durable profile too.

For the documented keyless self-registration flow, complete registration first, then verify the newly saved profile before content reads, sending or other task work. For existing credentials or profiles, verify the returned connection identity and any authorised mailbox selection against the intended account and credential before task work. A permission grant alone does not establish the intended identity. If identity differs or cannot be verified, stop and resolve it with the user rather than reading or mutating another account.

  • Do not ask the user to paste an API key.
  • For API-key authentication, use smx_mbx_* keys for normal Mailbox calls.
  • For a self-registered agent, reuse one durable CLI profile. Mailbox reads become available after provisioning, before owner approval; Sending stays blocked until owner approval.
  • For API-key authentication, use smx_root_* for Management calls.
  • Do not default to MCP for every task. MCP is best when the required tool is curated; CLI and SDK cover broader surfaces.
  • Keep real attachment bytes outside model context and route their mechanics to qubrics-attachments; use the attachment route reference below.
  • Do not read full mailbox bodies, every message, or every log row unless the user asks for full content and narrower calls cannot answer.

Choose the authentication connection, then its already-approved product surface. For an existing OAuth profile, use the already-known approved surface from its granted permissions or setup context. If that surface is unknown, show the surface-specific alternatives below and ask which one the profile grants; there is no universal Mailbox default.

Authentication connection Validate with Ownership boundary
Existing CLI or REST OAuth profile The selected CLI operation: mailbox:get-connection, management:get-connection, or sending:get-connection Explain that the check stays within the profile's approved surface, scopes, and mailboxes. qubrics-cli owns login and refresh.
SDK application credentials The selected SDK operation: mailboxGetConnection, managementGetConnection, or sendingGetConnection The application supplies SDK credentials; this is not a CLI profile check.
Already-connected MCP session The selected MCP operation: mailbox_get_connection, management_get_connection, or sending_get_connection This validates only that MCP session. qubrics-mcp-setup owns hosted MCP OAuth setup; it is not an alternate view of a REST profile.

These checks need no mailbox selector and send no email. Public OpenAPI discovery does not validate credentials.

Surface choice

Situation Use Why
Connected agent and curated tool exists MCP tool Small schema and no SDK boilerplate.
One-off terminal task qubrics CLI with --json Direct, scriptable, exposes the full generated operation set.
Application code or repeated workflow SDK for the project already in use Reuses client setup, pagination, headers, and retry helpers.
MCP lacks the needed operation CLI for terminal work, SDK for code Do not invent uncurated MCP tools.
No package/tooling available Direct HTTP Keep request bodies and headers aligned to OpenAPI.

Credential ownership follows the surface. For a durable CLI agent profile, the CLI automatically exchanges and caches the one-hour delegated token for sending:* commands. SDK callers supply a compatible apiKey or accessToken (or their own provider callback); SDK helpers do not read or updat

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

Установить qubrics-token-efficient-usage в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл qubrics-token-efficient-usage?

Choose low-token Qubrics calls across MCP, CLI, SDKs, and HTTP by using snippets, counts, batches, deltas, cursors, ETags, and idempotency.

Как установить скилл qubrics-token-efficient-usage?

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

Скилл qubrics-token-efficient-usage запускает скрипты?

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

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

Сравнить qubrics-token-efficient-usage с