Nacl sa domain

From ITSalt/NaCl · View interactive version

Nacl sa domain is an AI agent skill from the GitHub repository ITSalt/NaCl. Create or update the NaCl system-analysis domain model in the graph: DomainEntity, DomainAttribute, Enumeration, relationships, and BA-to-SA traceability. Use when importing BA entities, creating a domain entity, modifying attributes, building a module domain model, or compatibility with `/nacl-sa-d

How to use this skill

Skill file

NaCl SA Domain For Codex

Manage the SA domain model while preserving BA-to-SA traceability. SA artifacts

remain Russian by default unless the user explicitly requests another supported

output language.

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

../references/verification-vocabulary.md before executing the workflow.

Modes

| Mode | Purpose |

|---|---|

| IMPORT_BA | Import uncovered BA business entities as domain candidates. |

| CREATE | Create one new domain entity interactively. |

| MODIFY | Modify an existing domain entity, attributes, relationships, or enumerations. |

| FULL | Build a complete module domain model. |

Workflow

Step 1: Discover Scope

Resolve mode and target module or entity. Read graph data only when graph tools

are available. If required source data is unavailable, report BLOCKED with the

reason.

Step 2: Propose Domain Mapping

Map BA entities and attributes into SA entities, attributes, enumerations, and

relationships. Use English technical names for domain identifiers where the NaCl

methodology requires them, while keeping user-facing artifact descriptions in

Russian by default.

Step 3: Confirm Mapping

Present proposed entities, attributes, enum values, relationships, module

ownership, and BA traceability. Stop and ask for explicit confirmation before

writing graph data.

Step 4: Persist And Verify

When graph write tooling is available and the user confirms, write

DomainEntity, DomainAttribute, Enumeration, relationship, and traceability

records. Then read back the written records when possible and report status with

the closed vocabulary.

Graph Contract

Use canonical SA labels only: DomainEntity, DomainAttribute, Enumeration,

and EnumValue. Use Module -[:CONTAINS_ENTITY]-> DomainEntity,

DomainEntity -[:HAS_ATTRIBUTE]-> DomainAttribute,

DomainEntity -[:RELATES_TO {rel_type, cardinality}]-> DomainEntity,

DomainEntity -[:HAS_ENUM]-> Enumeration, and

Enumeration -[:HAS_VALUE]-> EnumValue.

BA-to-SA traceability must use BusinessEntity -[:REALIZED_AS]-> DomainEntity

and EntityAttribute -[:TYPED_AS]-> DomainAttribute. A domain entity or

attribute created from BA data must identify its BA source before writes; if BA

data is unavailable for IMPORT_BA or FULL, report BLOCKED.

When a business rule becomes a Requirement, write the class to the canonical

rq_type property (not the legacy req_type) and, if the constrained FormField

or governing Form already exists, anchor the requirement with

Requirement -[:REALIZED_BY {provenance:'authored', anchor_kind}]-> (FormField|Form|ActivityStep|Screen)

(Screen for an interface requirement on a formless screen; validator L3.7). If the UC has not been detailed yet, leave the anchor for

nacl-sa-uc detail to add when it creates the steps and fields. NFRs are exempt.

Before writes, present the module owner, entity ids, attribute ids and data

types, enum ids and values, relationship cardinalities, and traceability edges.

After confirmed writes, read back with sa_domain_model,

sa_module_overview, handoff entity coverage, or equivalent graph reads.

Capabilities

May Do

Must Not Do

Conditional Tools And Actions

Blocked Or Unverified Reporting

is missing.

available.

Source Comparison

Preserved Methodology

Removed Claude Mechanics

Codex Replacement Behavior

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.