Owner only. Add, list or revoke a standing approval so a specific gated command stops asking each time (for example a routine push to one branch, or a paid call under a cap).
3 stars
0 votes
0 copies
0 views
Added December 3, 2026
ai-agentsgogit
Security analysis
A100/100
Scanned December 3, 2026
$npx -y skills add mohamedbechirkefi/mandatum --skill grant --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Grant?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mohamedbechirkefi-grant)
---
name: grant
description: Owner only. Add, list or revoke a standing approval so a specific gated command stops asking each time (for example a routine push to one branch, or a paid call under a cap).
disable-model-invocation: true
argument-hint: "add|list|revoke [command to match]"
---
# Standing grants
A grant is the owner saying in advance: this exact action may pass this gate without
being asked again. Only the owner invokes this skill. The assistant never creates,
widens or renews a grant on its own initiative, and a hook asks the owner to confirm any
write to the grants file.
Request: $ARGUMENTS
## What to do
1. If the request does not say which command and which gate, ask for exactly those.
2. Propose the narrowest grant that does the job and say what it would let through:
- `--mode exact` (default): this command and no other. Only spacing is ignored.
- `--mode prefix`: commands that start with this text. Say what else that admits.
- `--mode regex`: a pattern. Show two commands it matches and one it must not.
3. Recommend an expiry (`--expires 2026-12-31`) or a use count (`--uses 5`). A grant
with neither lasts until revoked; say so if the owner chooses that.
4. Show the command, then run it once the owner confirms:
```
mandatum grant add "git push origin main:main" --gate PUBLIC --mode exact \
--expires 2026-12-31 --note "routine pushes of the docs site"
mandatum grant list
mandatum grant revoke "git push origin main:main"
```
`grant list` shows each grant's id. Revoke takes the exact command text, as above,
or the id: `mandatum grant revoke S-001`.
5. Check it does what was meant: `mandatum check git push origin main:main` prints the
decision the hook would take, without running anything.
6. Record the grant as a decision (`mandatum decision "Standing grant: <what>"`) with
the owner's words.
## Limits to state to the owner
- A grant covers a command's text, not its effect. A push grant passes whatever commits
are on the branch at the time.
- Rule violations are never grantable: an unnamed, chained or looped push is refused
even with a grant in place.
- DESTRUCTIVE grants are rarely a good idea. Recommend against a prefix or regex grant
for anything that deletes.