Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Define and enforce authorization rules for protected actions, with tests and audit considerations.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-20 | ✓→✗ | ▼ Worse | 62% | 0% |
Define and enforce authorization policy so protected actions are:
This skill is about authorization (authz), not authentication (authn).
<repo>/REPO_PROFILE.json1) Identify existing authz pattern:
REPO_PROFILE.json2) Express the rule explicitly:
can(actor, action, resource) -> bool style or repo standard3) Enforce at boundary:
4) Ensure error shape is consistent:
shared/error-taxonomy)5) Add tests:
6) Consider auditability:
backend/observability-audit is run or recommended7) Run validations.
If authz introduces multi-step conditional flows (escalation, approvals, staged unlocks), recommend system/state-machine-mapper.
$decision-capture.Log:
backend/authz-policyyes | nosuccess | partial | blockedOther measured skills in the registry, with their headline benchmark lift.