use-shared-credential

use-shared-credential is a skill for Claude Code, Codex from yc-software/qm. It costs 87 tokens per session (1,276 once invoked), scanned A, original, MIT.

Instructions for calling an external service through an organization-managed credential broker. The broker adds the shared secret to an approved request without showing the secret to the agent.

In plain words
What is it for?
Use it when an organization provides a shared search key, paid API key, data feed, or Git credential and the service must be contacted through the broker.
Why use it?
Shared API keys and other credentials can be exposed if copied into the agent's environment or conversation. Proxying keeps the secret hidden while allowing approved requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it when an organization provides a shared search key, paid API key, data feed, or Git credential and the service must be contacted through the broker.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yc-software/qm/use-shared-credential
About the project

QM is a shared work environment for coding agents that gives each employee and conversation an isolated workspace while allowing collaboration in Slack and on the web. Startups use it to run agents for individuals, teams, and company operations, with selectable harnesses and models. The catalogue entries extend QM with skills, instructions, and settings.

yc-software/qm · 16,126 stars · on GitHub · labs.ycombinator.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yc-software/qm --skill use-shared-credential
Clone the repo
git clone --depth 1 https://github.com/yc-software/qm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for use-shared-credential

README.md
[![agentmods](https://agentmods.dev/badge/skills/yc-software/qm/use-shared-credential/github.svg)](https://agentmods.dev/skills/yc-software/qm/use-shared-credential)
Your own site
<a href="https://agentmods.dev/skills/yc-software/qm/use-shared-credential"><img src="https://agentmods.dev/badge/skills/yc-software/qm/use-shared-credential/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for use-shared-credential

Your own site · 80×15
<a href="https://agentmods.dev/skills/yc-software/qm/use-shared-credential"><img src="https://agentmods.dev/badge/skills/yc-software/qm/use-shared-credential.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 19
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Data Exfiltration · line 24
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01276
Opus 5.5 $0.00035 $0.00510
Sonnet 5.5 $0.00017 $0.00255
Haiku 4.5 $0.00009 $0.00128

Measured 1mo ago against content hash 996c64baaf20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

use-shared-credential scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsS -X POST "$AGENT_API_URL/v1/credentials/broker" \
skills-seed/use-shared-credential/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use a shared org credential (by proxy, never the raw secret)

Some credentials aren't yours and aren't on your computer — they're one org credential the admin vends to people, like a shared doc: an org web-search key, a paid-API key, a data-vendor feed. You are NOT given the secret (a shared bearer sitting in your shell could leak). Instead you make the call by proxy: you name the credential + the request, and the core stamps the secret onto the outbound call at the wire and returns the response.

When this applies

The Credentials inventory groups available credentials by owner. Organization rows marked proxy give the host and allowed methods/paths. Select that credential's handle (e.g. gitlab) in execute.credentials for the command making the request, with an explicit sandbox_id. Core supplies AGENT_CREDENTIAL_TOKEN only to that command; its absence before selection does not mean access is missing. Use that token, not AGENT_API_TOKEN, for broker requests.

Only listed credentials are available. A separately authorized personal login or connected app may also be available; use only its advertised capabilities and permissions. Never route around a denial or ask the user to paste a token.

How to call it

curl -fsS -X POST "$AGENT_API_URL/v1/credentials/broker" \
  -H "x-agent-capability: $AGENT_CREDENTIAL_TOKEN" \
  -H "content-type: application/json" \
  -d '{
        "credential": "<slug from your system prompt>",
        "method": "GET",
        "url": "https://<the credential's host>/<allowed path>?<query>",
        "headers": { "accept": "application/json" }
      }'

The reply is an envelope — the upstream status + body, never the secret:

{ "status": 200, "contentType": "application/json", "body": "<the upstream response text>" }

A non-2xx status is the upstream service’s response, not a broker failure. Parse body as the upstream returned it (e.g. JSON). For a write (when the credential allows a non-GET method), put the request payload in the body field of your POST.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 996c64baaf20
  2. 1mo ago Changed c0a4c92ca257
  3. 1mo ago Changed · +4 lines 24ba5e887b26
  4. 2mo ago Changed · +7 lines 7498f32eb34a
  5. 3mo ago First seen · 90 lines · 87 tokens per session scan A 2893e1f3efe8

Subscribe to this mod's changes

use-shared-credential is a skill published in the GitHub repository yc-software/qm (16,126 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 1,276 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

use-shared-credential compared with skills from other repositories

use-shared-credential next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
use-shared-credentialyc-software/qmSkill16ktodayMITA87Claude Code, Codex
node-inspect-debuggeropenclaw/openclawSkill395ktodayMITA28Claude Code, Codex
lobsteropenclaw/openclawSkill395ktodayMITA16Claude Code, Codex
knowledge-captureopenclaw/openclawSkill395ktodayMITA60Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill395ktodayMITA80Claude Code, Codex
knowledge-recallopenclaw/openclawSkill395ktodayMITA40Claude Code, Codex
migrating-openai-agents-sdk-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA87Codex