Nacl sa roles

From ITSalt/NaCl · View interactive version

Nacl sa roles is an AI agent skill from the GitHub repository ITSalt/NaCl. Define NaCl system roles and permissions in the SA graph: import BA roles, create or modify roles, CRUD permissions, data scope, and UC actors. Use when defining roles, permissions, access matrix, BA role mapping, or says `/nacl-sa-roles`.

How to use this skill

Skill file

NaCl SA Roles For Codex

Build and maintain system roles and permissions in the graph while preserving

BA-to-SA role traceability. User-facing SA artifact text is Russian by default

unless the user explicitly requests another supported language.

Read ../nacl-core/SKILL.md, ../references/migration-rules.md, and

../references/verification-vocabulary.md before using this workflow.

Workflow

Modes:

N:M MAPPED_TO edges.

Steps:

  1. Pre-check: load DomainEntity, existing SystemRole, BA role mappings, and

unmapped BA roles. Stop if domain entities are missing.

  1. Identify roles: propose role names, descriptions, responsibilities, type, and

BA mappings. Stop for confirmation before writing SystemRole nodes or

MAPPED_TO edges.

  1. CRUD permissions: propose role-by-entity permissions using BA interactions

when available. Stop for confirmation before writing HAS_PERMISSION edges.

  1. Data scope: define all, own, department, or assigned scope and human

rules for restricted permissions. Stop before updates.

  1. Workflow permissions: infer or propose UseCase to SystemRole ACTOR

edges and status-transition authorization notes. Stop before writes.

  1. Verify: read back role mappings, permissions, restricted scopes, and actor

coverage. Report with the closed verification vocabulary.

Keep roles distinct by module or access level. Prefer a small role set; if the

proposal grows beyond seven roles, ask whether decomposition or role grouping

should be revisited.

Graph Contract

Use BusinessRole -[:MAPPED_TO]-> SystemRole for BA-to-SA role traceability,

SystemRole -[:HAS_PERMISSION {crud}]-> DomainEntity for CRUD access, and

UseCase -[:ACTOR]-> SystemRole for UC actors. Do not collapse

BusinessRole and SystemRole; they are separate layers.

Permission CRUD strings must be explicit and limited to actual access such as

C, R, U, D, or combinations. Do not create HAS_PERMISSION edges for

no-access matrix cells. Restricted permissions must preserve data-scope notes

as properties or requirements only when the schema and user confirmation allow.

Before writes, show role ids, BA mappings, permission matrix, data-scope rules,

actor edges, and any infrastructure-only roles with system_only rationale.

After confirmed writes, read back mapped roles, permissions, actor coverage, and

unmapped BA roles before reporting success.

Capabilities

May Do

existing permissions.

confirmation.

Must Not Do

Conditional Tools And Actions

graph schema support is unavailable.

Blocked Or Unverified Reporting

data for import, or confirmation is missing.

coverage cannot fully be read back.

Source Comparison

Preserved Methodology

Removed Claude Mechanics

Codex Replacement Behavior

coverage.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.