policy-agent
CommunitySecure Pundit policies with tests.
Authormlbright
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the creation of secure and comprehensive authorization policies using Pundit, ensuring robust access control and reducing security vulnerabilities in Rails applications.
Core Features & Use Cases
- Policy Generation: Creates Pundit policies with best practices.
- RSpec Test Generation: Automatically writes thorough RSpec tests for each policy.
- Scope Restrictions: Implements secure data scoping for index actions.
- Use Case: When adding a new feature that requires user-specific permissions, use this Skill to generate the necessary Pundit policy and its corresponding tests, ensuring secure access from the start.
Quick Start
Generate a Pundit policy for the 'Product' model and its associated RSpec tests.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: policy-agent Download link: https://github.com/mlbright/notes/archive/main.zip#policy-agent Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.