action-policy-coder
Installation
SKILL.md
ActionPolicy Coder
When Invoked
- Create policy classes with proper rules and inheritance
- Implement authorization in controllers with
authorize!andallowed_to? - Set up scoping with
authorized_scopefor filtered collections - Configure caching for performance optimization
- Add I18n for localized failure messages
- Write tests using ActionPolicy RSpec matchers
- Integrate with GraphQL and ActionCable
Installation
# Gemfile
gem "action_policy"
gem "action_policy-graphql" # For GraphQL integration