Reason about an authorisation model
Work through who can do what before encoding it in code.
What this prompt helps you do
An authorisation model with roles, resources, actions, inheritance, and the edge cases each rule creates.
When to use it
Permissions are being added case by case and the overall model has never been stated.
What to prepare
The goal, relevant source material, constraints, examples, and the decision or action this should support.
How to get a strong result
Work out the cases where rules interact; authorisation bugs live in the interaction, not the individual rule.
How to use this prompt
Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.