Apply when granting tools, credentials, or environment to any role or child process. The toolset is the guarantee: enforce a constraint by withholding the capability, not by asking for restraint.
Scanned 9/2/2026
Install to Claude Code
npx -y skills add bostonaholic/team --skill principle-least-privilege --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Principle Least Privilege?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/bostonaholic-principle-least-privilege)More formats (shields.io, HTML) on the badges page.
---
name: principle-least-privilege
description: "Apply when granting tools, credentials, or environment to any role or child process. The toolset is the guarantee: enforce a constraint by withholding the capability, not by asking for restraint."
user-invocable: false
---
# Least Privilege
Enforce a constraint by withholding the capability, not by asking for
restraint. On a dispatch path the guarantee is the target's toolset, not
the prose telling it to behave: a prompt does not rewrite an agent body,
and an instruction never widens or narrows what a role can actually
touch.
**Why:** Prose gets forgotten; a missing Write tool does not. A
constraint that is a property of the harness holds even when
the model does not cooperate — and a role that cannot do the forbidden
thing needs no rule against it.
**Pattern:**
- Reviewers hold no Write/Edit and run in plan mode. A reviewer that can
fix what it found can approve its own fix.
- A child process receives an environment allowlist and its own
credential block — never another vendor's, never the parent's full
environment.
- Prefer the narrowest dispatch target that can run the errand. Where a
governing rule demands a structural guarantee — a read-only lens — a
target holding a command sink is refused whenever a narrower target
can carry the errand, whatever else the wider one can do. When the
narrowest available target still carries more than the errand needs,
the errand rides on an explicitly scoped prompt, and the report says
the guarantee is prompt-level, not structural.
- Match the assurance claim to the mechanism: when work falls back to a
full-tool context, say the guarantee no longer applies rather than
keeping the claim while losing the mechanism.
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!