agentleFS
Wsh7AshWsh7Ash/skillmcp/skills/credential-isolation/SKILL.md

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

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
  1. Distinctive:

    Keep it separate from any human operator credential

    line 22
  2. Distinctive:

    Verify a call outside the granted scope fails

    line 24
  3. Distinctive:

    no scope grants broader access than the tool needs

    line 32

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. List what the server must do upstream and the scopes that allows
  2. Provision a credential limited to exactly those scopes
  3. Keep it separate from any human operator credential
  4. Store it only in the launching environment
  5. Verify a call outside the granted scope fails
  6. 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 scope

2. Negative proof

write attempt returns 403 from upstream

3. Documented

requires: read access to the packs API only

Pitfalls

  • 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.