credential-isolation
Skill0 starsChanged 14 days agoMITView on GitHub
Give the server its own credential scope so a compromised tool call cannot reach everything. Use when the server calls an upstream service on behalf of the agent
In this repository49 other files it gives its agents.
- argument-construction-from-artifactsSkill
- audit-log-of-tool-callsSkill
- bounded-output-designSkill
- capability-negotiation-checkSkill
- changelog-and-versioningSkill
- concurrency-and-ordering-checkSkill
- context-window-managementSkill
- data-retention-policySkill
- description-as-contractSkill
- destructive-action-confirmationSkill
- destructive-tool-gatingSkill
- deterministic-command-choicesSkill
- done-when-criteriaSkill
- error-shape-for-agentsSkill
- fixture-driven-transcript-testsSkill
- human-in-the-loop-escalationSkill
- idempotency-annotationSkill
- input-schema-strictnessSkill
- least-privilege-tool-grantsSkill
- lifecycle-test-initialize-then-toolsSkill
- local-vs-remote-boundarySkill
- one-procedure-per-skillSkill
- pagination-and-limit-disciplineSkill
- parallel-tool-call-safetySkill
- protocol-conformance-testSkill
- protocol-version-handshakeSkill
- publishing-a-pack-locallySkill
- rate-limit-respectSkill
- reference-canonicalisationSkill
- replay-transcript-for-regressionSkill
- restart-and-reload-semanticsSkill
- scope-guard-before-executionSkill
- search-then-fetch-patternSkill
- secrets-via-environmentSkill
- server-discovery-and-trustSkill
- signal-and-pitfall-sectionsSkill
- skill-frontmatter-contractSkill
- stdio-client-configSkill
- stdout-purity-checkSkill
- third-party-server-sandboxingSkill
- tool-call-budgetingSkill
- tool-call-error-pathsSkill
- tool-error-without-retry-stormSkill
- tools-list-schema-validationSkill
- tool-surface-minimisationSkill
- tool-verb-namingSkill
- transport-choiceSkill
- verify-tool-output-before-reportingSkill
- when-to-use-and-avoidSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Keep it separate from any human operator credential
- Distinctive: line 24
Verify a call outside the granted scope fails
- Distinctive: line 32
no scope grants broader access than the tool needs
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Credential Isolation
Give the server its own credential scope so a compromised tool call cannot reach everything
Use when: the server calls an upstream service on behalf of the agent
Avoid when: the server needs no credential at all, which is the preferred design
Procedure
- List what the server must do upstream and the scopes that allows
- Provision a credential limited to exactly those scopes
- Keep it separate from any human operator credential
- Store it only in the launching environment
- Verify a call outside the granted scope fails
- Record the scope in the README so it is reviewed with the server
Signals
- the scope list matches the documented purpose
- a call outside the scope is refused by the upstream
- the credential differs from the operator's own
- no scope grants broader access than the tool needs
Patterns
1. Scoped token
read-only packs scope, no write scope2. Negative proof
write attempt returns 403 from upstream3. Documented
requires: read access to the packs API onlyPitfalls
- Reusing a personal admin token because it was already in the environment
- Granting write scope for a tool that only reads
- Sharing one credential across several servers, so revocation breaks all
Done when
- the server's credential scope is minimal and documented
- a call beyond the scope is proven to fail
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

