Nacl ba rules

From ITSalt/NaCl · View interactive version

Nacl ba rules is an AI agent skill from the GitHub repository ITSalt/NaCl. Catalog NaCl business rules in the graph: constraints, calculations, invariants, authorization rules, and traceability. Use when extracting or adding BA rules or for compatibility with `/nacl-ba-rules`.

How to use this skill

Skill file

NaCl BA Rules For Codex

Maintain the BA business-rule catalog in the graph. Rule artifacts remain

Russian by default unless the user explicitly requests another supported output

language.

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

../references/verification-vocabulary.md, and

../references/ba-codex-contract.md before executing the workflow.

Mandatory Graph Execution Contract

This is a graph writer. Apply the BA graph writer contract before rule writes:

resolve configuration, inspect schema/query references, check graph tooling,

load entities, attributes, workflow steps, process links, roles, existing

rules, and traceability targets, then present candidate rules with source

evidence. If graph tools or source nodes are unavailable, report BLOCKED.

Write only confirmed BusinessRule records and binding relationships. Verify

with ba_rules_catalog-equivalent read-back and rule-specific target checks.

Operating Forms

| Form | Purpose |

|---|---|

| full | Scan graph data, classify candidate rules, trace them, and write a catalog. |

| add | Add one confirmed business rule. |

Rule Types

| Type | Meaning |

|---|---|

| constraint | Restriction on data or process behavior. |

| calculation | Formula or computation rule. |

| invariant | Condition that must always hold. |

| authorization | Permission rule for a business action. |

Workflow

  1. Pre-check graph data for entities, attributes, workflow decisions, process

conditions, and existing rules.

  1. For full, extract candidates from graph context and present them for user

confirmation.

  1. Classify each confirmed rule and ask the user to approve classification.
  2. Link rules to constrained entities, attributes, workflow steps, processes, or

roles where graph evidence supports the link.

  1. Generate BRQ-NNN IDs and write confirmed BusinessRule nodes and

traceability relationships when graph write tools are available.

  1. Query the graph to generate the catalog table and coverage notes.

Stop before classification, traceability, and graph writes unless the user has

confirmed the previous output.

The source phase order is mandatory: pre-checks, extraction, classification,

traceability, catalog generation, validation, report.

Rule Constraints

where available.

APPLIES_AT_STEP.

Capabilities

May Do

available.

Must Not Do

Conditional Tools And Actions

Blocked Or Unverified Reporting

confirmation is missing.

writes.

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.