broker-external-data-access-credentials
Before making any broker requests, check whether you already have access to a Permissions Broker API key in your local secrets (for example, an environment…
от rondoflow★ 37 звёзд на GitHub
Установить broker-external-data-access-credentials в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Permissions Broker
Setup (Do This First)
Before making any broker requests, check whether you already have access to a Permissions Broker API key in your local secrets (for example, an environment variable like PB_API_KEY).
If you do NOT have an API key available:
- Ask the user to create one in Telegram by messaging the bot:
/key <name>
- Tell the user to send the resulting key back to you (the key is shown "sent once").
- Ask whether they want you to store/reuse it across sessions.
- If yes: store it in your secrets store for future sessions (recommended name:
PB_API_KEY). - If no/unclear: treat it as session-only and ask for it again next time.
- If yes: store it in your secrets store for future sessions (recommended name:
- Remember only the storage location (e.g. "Permissions Broker key is stored in
PB_API_KEY"), never the secret value.
Important:
- Never commit the key to the repo.
- Never include the key in code, logs, or error output.
- Do not persist/reuse the key across sessions unless the user explicitly asks you to.
- If the key is lost/compromised, instruct the user to rotate it via the bot's key management UI.
Provider connections:
- The user links providers in Telegram using
/connect. - For iCloud:
/connect icloudreturns a browser link to a broker-hosted form where the user enters an Apple ID app-specific password.
Overview
Use the broker as a user-controlled proxy for external data access and API actions.
The mental model:
- You propose a specific upstream request (URL + method + body)
- The user approves/denies it in Telegram
- You poll for approval
- You execute it exactly once and immediately parse/persist what you need
This skill is intentionally provider-agnostic. Provider support grows over time.
Agent Response Style (Important)
When using this skill, do not lead with inability/disclaimer language like "I can't access your Google Drive" or "I can't do this from here".
Instead:
- Treat the broker as the standard mechanism for access.
- Ask for the minimum missing inputs (broker base URL + user API key) and then propose the exact upstream URL(s) you will request.
- Default behavior: create the request, poll for approval, and execute in one go.
- Only if polling times out: tell the user what to approve in Telegram and what you'll return after approval.
Avoid:
- Long meta explanations about the repo setup.
- Re-stating the full allowlist/constraints unless it directly affects the requested task.
Preferred framing:
- "I can do that via your Permissions Broker. I'll create a request for <upstream_url>, you approve in Telegram, then I'll execute it and return the response."
Polling Behavior (Important)
After creating a proxy request, always attempt to poll/await approval and execute in the same run. Only ask the user to approve in Telegram if polling times out.
Guidelines:
- Default to 30 seconds of polling (or longer if the user explicitly asks you to wait).
- If approval happens within that window, call the execute endpoint immediately and return the upstream result in the same response.
- If approval has not happened within that window:
- Return the
request_id. - Tell the user to approve/deny the request in Telegram.
- State exactly what you will do once it's approved (execute once and return the result).
- Continue polling on the next user message.
- Return the
Core Workflow
- Collect inputs
- User API key (never paste into logs; never store in repo)
- Decide how to access the provider
- If the agent already has explicit, local credentials for the provider and the user explicitly wants you to use them, you may.
- Otherwise (default), use the broker.
- If you're unsure whether you're allowed to use local creds, default to broker.
- Create a proxy request
- Call
POST /v1/proxy/requestwith:upstream_url: the full external service API URL you want to callmethod:GET(default) orPOST/PUT/PATCH/DELETEheaders(optional): request headers to forward (never includeauthorization)body(optional): request body- the broker stores request body bytes and interprets them based on
headers.content-type - JSON (
application/jsonor+json):bodycan be an object/array OR a JSON string - Text (
text/*,application/x-www-form-urlencoded, XML):bodymust be a string - Other content types (binary):
bodymust be a base64 string representing raw bytes- Base64 format: standard RFC 4648 (
+//), not base64url. - Include padding (
=) when in doubt. - Do not include
data:...;base64,prefixes.
- Base64 format: standard RFC 4648 (
- the broker stores request body bytes and interprets them based on
- optional
consent_hint: requester note shown to the user in Telegram. Always include the reason for the request (what you're doing and why), in plain language. - optional
idempotency_key: reuse request id on retries
Notes on forwarded headers:
- The broker injects upstream
Authorizationusing the linked account; any caller-providedauthorizationheader is ignored. - The broker forwards only a small allowlist o
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл broker-external-data-access-credentials?
Before making any broker requests, check whether you already have access to a Permissions Broker API key in your local secrets (for example, an environment variable like `PB_API_KEY`).
Как установить скилл broker-external-data-access-credentials?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл broker-external-data-access-credentials запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…