Nacl sa feature

From ITSalt/NaCl · View interactive version

Nacl sa feature is an AI agent skill from the GitHub repository ITSalt/NaCl. Specify an incremental feature against an existing NaCl SA graph through impact analysis, selective SA updates, validation, and TL handoff. Use when adding or changing functionality, tracing affected modules, or says `/nacl-sa-feature`.

How to use this skill

Skill file

NaCl SA Feature For Codex

Use graph-first impact analysis to update only the affected SA subgraph for a

new or changed feature. SA graph descriptions follow the project language

conventions, usually Russian; TL handoff text remains English.

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

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

Workflow

  1. Understand the request: parse the feature, extract search terms, load current

modules, roles, use cases, domain entities, forms, and requirements from the

graph when available.

  1. Impact analysis: find affected graph nodes by search and traversal, then

classify impact across architecture, domain entities, roles, use cases, UI,

and requirements.

  1. Confirm scope: present affected modules, entities, use cases, forms,

components, proposed SA skills, and planned writes. Stop until the user

confirms or adjusts scope.

  1. Apply updates in dependency order: architecture, domain, roles, use cases,

UI, validation flags. Use existing NaCl skills when available; otherwise

apply the same graph contracts directly. After updates land, record change

provenance: bump spec_version on every new/modified UC, and stamp

review_status='stale' (with stale_origin/stale_since) on the TRUE

downstream — the affected UCs' GENERATES Tasks, the Tasks of UCs that

DEPENDS_ON them, and the affected UCs themselves. Key the stamp off the

affected-UC list, NOT the broad undirected sa_impact_closure (that query is

for exploration/display; an undirected stamp fans out through shared

ACTOR/Requirement and marks half the project stale, blocking releases on false

staleness). Run the stamp as TWO statements (stamp dependent Tasks, then stamp

the changed UCs) — a single statement that stamps tasks then re-matches the UCs

produces a cartesian whose row count misleads. The stale Tasks are the expected

hand-off signal to nacl-tl-plan; do not clear them here.

  1. Incremental validation: run scoped checks for only affected nodes when graph

tooling is available. Fix confirmed critical issues with at most two

iterations unless the user asks to continue.

  1. Traceability: verify module counts, BA-to-SA handoff edges, changed UCs,

changed entities, and changed forms.

  1. Handoff: allocate a collision-free FR-* id across disk and graph, create an

English .tl/feature-requests/FR-*.md file when filesystem permissions allow,

and persist a FeatureRequest node with edges to affected UCs, modules, and

entities when graph writes are confirmed.

Feature request ids must avoid collisions across .tl/feature-requests,

:FeatureRequest nodes, and legacy graph nodes whose id already matches an

FR-* pattern. Reserved tombstone prefixes must not be allocated for new work.

New UC-* ids follow the same discipline: allocate from the target module

(module-local max + 1, empty module starts at uc_range_start), then

collision-check the candidate against every existing UseCase.id; on collision

(projects with global UC numbering) fall back to global max + 1.

Phase Contract Details

Phase 1 must load enough current graph state to classify the request. If graph

search or traversal is unavailable, do not infer impacted scope from memory;

return Status: BLOCKED or a clearly labeled user-confirmation plan.

Phase 2 must use sa_impact_analysis, sa_find_uc_by_keywords,

sa_feature_scope, sa_module_overview, or equivalent graph reads. The impact

matrix must distinguish new modules, modified modules, new entities, modified

entities, new UCs, modified UCs, UI/form changes, role/permission changes, and

requirements.

Phase 3 writes only the confirmed affected scope and preserves dependency order:

architecture before domain, domain before roles and UC detail, UC detail before

UI, and UI before validation. If a specialist SA skill is available, use that

skill's contract and inspect its result before continuing.

Phase 6 persistence must create FeatureRequest with documented properties and

link it with INCLUDES_UC {kind}, AFFECTS_MODULE, AFFECTS_ENTITY, and

optionally RAISES_REQUIREMENT. It must also write one graph-native :Decision

(DEC-NNN, non-empty rationale, created_by:'nacl-sa-feature'), anchored by

(:FeatureRequest)-[:IMPLEMENTS]->(:Decision) and linked to every shaped artifact

via JUSTIFIES {role}; if it reverses a prior decision, add SUPERSEDES and set

the old one's status='superseded'. The Decision is mandatory — nacl-sa-validate

L9 refuses an active FeatureRequest with no linked Decision. After confirmed graph

and file writes, read the FeatureRequest subgraph back before reporting success.

Capabilities

May Do

planning.

Must Not Do

checking only one module.

Conditional Tools And Actions

confirmation.

Blocked Or Unverified Reporting

filesystem permission, or confirmation is missing.

affected coverage is unavailable.

Source Comparison

Preserved Methodology

UI, and validation.

UC-* allocation across all modules.

dependents, and a :Decision node (IMPLEMENTS/JUSTIFIES/SUPERSEDES).

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.