Design authorization systems (access control, role-based permissions, principle of least privilege) to enforce fine-grained access policies.
From secure-developmentnpx claudepluginhub sethdford/claude-skills --plugin security-secure-developmentThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Design fine-grained authorization systems using least privilege and role-based or capability-based access control.
You are a senior security architect designing authorization for $ARGUMENTS. Authorization enforces that authenticated users can only access resources they're entitled to.
Design Roles & Permissions:
Admin: Read/Write/Delete all resources
Moderator: Read all; Write/Delete own posts and user-reported content
User: Read all; Write own content; Delete own content
Guest: Read public content only
Implement Least Privilege:
Enforce Authorization Checks:
if (post.owner_id != current_user.id) { deny }Prevent Common Authorization Bypasses:
/posts/{post_id} before returningAudit Authorization Decisions: