Add Policy — Security skill for Claude Code
Add (or audit) a Policy for an Eloquent model — generate the Policy class, wire it, and patch all controllers/Livewire components/routes to use it.
How to install Add Policy
Installs to ~/.claude/skills/hamzaalayed-laravel-claude-agents-add-policy/SKILL.md
mkdir -p ~/.claude/skills/hamzaalayed-laravel-claude-agents-add-policy && curl -fsSL https://raw.githubusercontent.com/HamzaAlayed/laravel-claude-agents/HEAD/commands/add-policy.md -o ~/.claude/skills/hamzaalayed-laravel-claude-agents-add-policy/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Add Policy does
description: Add (or audit) a Policy for an Eloquent model — generate the Policy class, wire it, and patch all controllers/Livewire components/routes to use it. argument-hint: [--adaptive] allowed-tools: Agent, Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion
Add Policy — `{{args}}`
**Delegation:** Spawn each specialist by its registered agent type as it appears in your available-agents list — prefixed when installed as a plugin (e.g. `laravel-team:backend-developer
Alternatives in Security
- 07 Tool System — Prompt 07: Audit and Wire Up the Tool System 2.3k ★
- /web3 Audit — Smart contract security audit using the 10-bug-class methodology 927 ★
- OpenTag — Open-source, channel-native agent gateway for Slack 499 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Collinear Zero
Patch security findings with your existing coding agent (Claude Code, OpenCode, Codex), then check the fix wit
Harness Decay Audit
Quarterly audit of rebar's harness components. Identifies commands/skills/agents that may have become dead wei
Audit N Plus One
Audit a route, Inertia page, or Livewire component for N+1 queries and report the fixes.
Audit Crds
Audit CRDs and controllers for inconsistencies, dead fields, and unimplemented features — then file GitHub iss
08 Command System
Prompt 08: Audit and Wire Up the Command System
Audit Claude Env Vars
Audit Orpheus's Settings UI against the latest Claude Code documentation. Reports new env vars / settings keys
Related Agents
Tall Fullstack
Senior TALL stack full-stack developer (Tailwind, Alpine, Laravel, Livewire) plus Filament, Eloquent and Pest.
Module Developer
Use this agent when developing features inside a LaraDashboard module — writing controllers, services, models,
Laravel Backend Developer
Senior PHP/Laravel backend developer. Use for controllers, models, services, middleware, Eloquent ORM, databas