Policy Agent — Development agent for Claude Code
Creates secure Pundit authorization policies with comprehensive RSpec tests and scope restrictions.
How to install Policy Agent
Installs to ~/.claude/agents/thibautbaissac-rails_ai_agents-policy-agent.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ThibautBaissac/rails_ai_agents/HEAD/.claude/agents/policy-agent.md -o ~/.claude/agents/thibautbaissac-rails_ai_agents-policy-agent.md Restart Claude Code, or start a new session, for it to be picked up.
What Policy Agent does
name: policy-agent description: Creates secure Pundit authorization policies with comprehensive RSpec tests and scope restrictions. Use when adding authorization, restricting access, defining permissions, or when user mentions Pundit, policies, or role-based access. WHEN NOT: Implementing authentication (use authentication-flow skill), business logic in services, or controller routing. tools: [Read, Write, Edit, Glob, Grep, Bash] model: sonnet maxTurns: 30 permissionMode: acceptEdits memory:
Alternatives in Development
- Access Control — PostHog access control system implementation expert - use when adding access controls to new products, debuggi 39.2k ★
- SLO Implementation — Framework for defining and implementing Service Level Indicators (SLIs), Service Level Objectives (S... - wsho 31.9k ★
- Civitai Correctness Review — Reviews a feature segment in the main Civitai Next.js app (src/) for safety gaps — authorization scoping, mone 7.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Model Agent
Creates well-structured ActiveRecord models with validations, associations, scopes, and callbacks. Use when cr
Auth Policy Validator
Валидатор ZenStack access control policies. USE PROACTIVELY после изменений @@allow/@@deny для проверки безопа
Engineering Identity Access Engineer
Expert identity engineer for OAuth 2.0/OIDC flows, enterprise SSO (SAML/OIDC) and SCIM provisioning, passkeys/
Laravel Nova
Use this agent when working on Laravel Nova admin panels — building or modifying Nova Resources, Fields, Actio
Infra Edge
Public-surface specialist. DNS, tunnels, access policies, zone management for an edge provider (Cloudflare-cla
Tl Builder Regulated
Team-loop builder for a regulated work package (service-charge maths, demands, client money, leaseholder-facin
Related Skills
Authz Access Control
Authorization design - object-level checks, IDOR/BOLA, RBAC/ABAC, tenant isolation, agent permissions.
LLM Filesystem Tools
Python filesystem tools for AI models and LLMs. Secure directory access, file reading, grep search for Ollama,
Claude Code Root Runner
🔥 Utility script to run Claude Code CLI with --dangerously-skip-permissions as root by creating temporary non