Skip to content
Skills Library
Security · Building & coding

access-control

/access-control

Design RBAC/ABAC models, Principle of Least Privilege, Identity Management. Use when: access control.

Repository
gabbe ↗
Licence
CC-BY-4.0
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

CC-BY-4.0, otwarta.

What it does and when to use it

Design RBAC/ABAC models, Principle of Least Privilege, Identity Management. Use when: access control.

Original author description

Design RBAC/ABAC models, Principle of Least Privilege, Identity Management. Use when: access control.

How it works

  1. Goal
  2. Steps
  3. 1. Models
  4. 2. Best Practices
  5. 3. Infrastructure IAM
  6. 4. Audit
  7. Security & Guardrails
Original SKILL.md headings · 38 lines, 432 words
SKILL.md preview
---
name: access-control
description: "Design RBAC/ABAC models, Principle of Least Privilege, Identity Management. Use when: access control."
license: CC-BY-SA-4.0
metadata:
  source: "agents/skills/security/access-control.skill.md"
  tags: "security"
  core: "false"
  context_cost: "low"
---
# access-control Skill

## Goal
Identity is the new perimeter. Authorization must be strict, consistent, and auditable.

## Steps
## 1. Models
- **RBAC (Role-Based)**: `Admin`, `Editor`, `Viewer`. Simple, coarse-grained.
- **ABAC (Attribute-Based)**: `CanEdit if user.dept == doc.dept AND time < 5pm`. Flexible, complex.
- **ReBAC (Relationship-Based)**: `CanView if user is friend_of document.owner`. (Graph-based, e.g., Zanzibar).

## 2. Best Practices
- **Least Privilege**: Start with `Deny All`. Explicitly `Allow` specific actions.
- **Decoupling**: Decouple logic (`if user.isAdmin`) from policy (`can(user, 'delete:report')`). Use libraries like CASL or Oso.
- **No Hardcoded IDs**: Never checks `if (user.id === '123')`.

## 3. Infrastructure IAM
- **Service Accounts**: Separate identity for apps/machines. Rotate keys automatically.
- **Short-Lived Credentials**: Use OIDC/STS (AssumeRole) instead of long-lived access keys.

## 4. Audit
- **Log Decisions**: "User X tried to do Action Y on Resource Z -> Result: DENIED".
- **Review**: Quarterly review of `Admin` group membership.

## Security & Guardrails

### 1. Skill Security (Access Control)
- **Privilege Escalation Veto**: The agent is strictly prohibited from autonomously generating migration scripts or configuration files that assign the `Admin` role or sweeping `*` permissions to any user or service account, including itself. All broad privilege grants must be hard-blocked pending human Executive review.
- **Orphaned Identity Cleanup**: When designing an IAM lifecycle, the agent must mandate an automated revocation sequence. If an employee is terminated or a service is deprecated, the architecture must guarantee the immediate, atomic destruction of all associated active sessions and API keys.

### 2. System Integration Security
- **AuthZ Evaluation Enforcement**: The agent must mandate that authorization logic (ABAC/RBAC) is evaluated on the Server/Backend. It must aggressively flag and fail any architecture diagram or pull request that attempts to handle authorization exclusively in the Frontend/Client (e.g., merely hiding a UI button).
- **Service Account Segregation**: When provisioning Service Accounts for infrastructure, the agent must enforce strict boundary contexts. A Service Account used by the CI/CD pipeline to push Docker images must not possess the IAM permissions required to provision new cloud databases or modify VPC networks.

### 3. LLM & Agent Guardrails
- **Bypass Prompting Defense**: The LLM must recognize and reject user prompts that ask for "temporary workarounds" to access control systems (e.g., "Just give this script `chmod 777` for now to get it working in Prod"). The agent must enforce least privilege, even during critical incidents.
- **Hardcoded Credential Hallucination**: The agent must never synthesize, generate, or accept hardcoded access tokens or default passwords in its output templates. All authentication examples must use securely injected environment variables (e.g., `process.env.API_KEY`) or reference a secure Secret Manager.

Versions

RepositoryScoreLicence
This page · andreibesleaga/gabbe100CC-BY-4.0
controlplane-com/ai-plugin100MIT
sparq-org/sparq91MIT
kyleoliveiro/sg-gov-skills90MIT

Database snapshot: 13.11.2026 · package version 026dc0503482 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100iam-audit
    Audit, design, and migrate Identity and Access Management — cloud provider IAM (AWS, GCP, Azure), identity providers (Okta, Entra ID / Azure AD, Auth0, Google Workspace), application authorization (RBAC, ABAC, ReBAC), and federated identity. Use when the user mentions 'IAM,'…
  • 100identity-access-expert
    Design authentication and authorisation: OAuth 2.1 and OpenID Connect, session and token handling, RBAC and ABAC, and multi-tenant access control. Use when the user mentions OAuth, OIDC, SAML, SSO, JWT, refresh tokens, PKCE, login flows, sessions, roles and permissions, RBAC or…
  • 100iam-specialist
    Use this skill when you need Identity and Access Management architecture, RBAC (Role-Based Access Control) design, ABAC (Attribute-Based Access Control) policy authoring, RBA (Risk-Based Authentication) implementation, PAM (Privileged Access Management), SSO/federation setup,…
  • 100admin-access-control-specification
    Specify admin roles, permissions, and every admin-facing control in a system - a full role-permission matrix (RBAC), the principle of least privilege applied concretely, admin action audit logging, and emergency/break-glass access procedures. Use whenever a system has more than…
  • 100rbac-abac-authorization-engines
    Use this skill when enforcing Role-Based and Attribute-Based Access Control policies using Casbin, Cerbos, or OPA.
  • 90azure-rbac-review
    Use this skill for Azure RBAC, Entra-backed access, role assignment, custom role, scope, subscription, management group, or least-privilege review tasks. Trigger when the user asks whether Azure access is too broad or how to grant access safely.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.