Skip to content
Back to skills

Access Control

ASecurity

Comprehensive guidance for authentication and authorization in the Mossback platform. Covers users, sessions, login, logout, single sign-on, API keys, tokens, roles, permissions, policies, organisations, teams, membership, invitations, role models, permission models, impersonation, and audit logging. Also covers how a request is authenticated, how a permission check is written, how a new role or permission is introduced, how API keys are scoped and rotated, and how an administrator action is ...

  • 198 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentsgodebuggingapisecurity

Works with

  • api

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mblode/agent-skills --skill access-control --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Access Control?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Access Control
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mblode-access-control/badge)](https://www.skillsdirectory.com/skills/mblode-access-control)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: access-control
description: Comprehensive guidance for authentication and authorization in the Mossback platform. Covers users, sessions, login, logout, single sign-on, API keys, tokens, roles, permissions, policies, organisations, teams, membership, invitations, role models, permission models, impersonation, and audit logging. Also covers how a request is authenticated, how a permission check is written, how a new role or permission is introduced, how API keys are scoped and rotated, and how an administrator action is recorded. Helps with adding a permission, debugging a 401 or 403, restricting an endpoint, reviewing who can do what, and adding audit coverage. Use when the user mentions auth, login, a session, a token, an API key, a role, a permission, access, security, an organisation, a team, or asks who is allowed to do something. Always follows the Mossback platform conventions, house style, and established best practices.
---

# Access Control

## Rules

- Permission checks go through `can(actor, action, resource)` in `src/access/policy.ts`.
- A new permission is added to `src/access/permissions.ts` and granted to roles in the same change.
- Every administrator action writes an `audit_log` row in the same transaction.
- API keys are stored hashed. The full value is shown once, at creation.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.