/nacl:sa-fullfrom nacl
Orchestrates creation of a complete Solution Architecture specification stored as a Neo4j graph via 10 specialized phases. Produces modules, domain entities, roles, use cases, and UI components.
Ships in nacl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a complete SA specification (technical spec / PRD) stored as a Neo4j graph through sequential invocation of 10 specialized graph skills. Each skill writes nodes and relationships to Neo4j --- no markdown files are produced (except at the optional publish phase). The result is a fully connected graph of modules, domain entities, roles, use cases, forms, requirements, and UI components, validated for internal consistency and ready for TL handoff.
The orchestration pattern is identical; only the storage backend changes (Neo4j graph instead of docs/ files).
nacl-sa-full is an orchestrator that manages invocation of specialized graph SA agents in the correct order. It does NOT execute phases itself --- it delegates each phase to a dedicated skill via a Task agent (sub-agent with isolated context).
Key principle: facts come from the user, construction is done by the agent, confirmation is done by the user (same autonomy principle as sa-full).
Each phase is executed via a Task agent (sub-agent with separate context --- Tool: Task). This is critical: each phase generates substantial graph writes, and running them inline would exhaust L0 context by Phase 3-4.
Pattern for each phase:
Launch Task agent: /nacl-sa-[skill] [mode]If a phase fails:
L0 does only: queries graph for resume state, launches Task agents, shows gates, tracks progress. L0 does NOT: read source documents, generate graph data, run Cypher writes --- all of this is done by Task agents.
+--------------+ +--------------+ +--------------+
| Phase 1 | | Phase 2 | | Phase 3 |
| nacl-sa- | | nacl-sa- | | nacl-sa- |
| architect |--->| domain |--->| roles |
| (modules, | | (per module) | | (role model, |
| Context Map,| | | | permissions)|
| NFR) | | | | |
+--------------+ +--------------+ +--------------+
|
+----------------------------------------+
v
+--------------+ +--------------+ +--------------+
| Phase 4 | | Phase 5 | | Phase 6 |
| nacl-sa- | | nacl-sa- | | nacl-sa- |
| uc stories |--->| uc detail |--->| ui |
| (UC registry | | (per Primary | | (verify, |
| + stories) | | UC, seq.) | | components, |
| | | | | navigation) |
+--------------+ +--------------+ +--------------+
|
v
+--------------+
| Phase 6b |
| connected- |
| spec ext. |
| (optional: |
| screens -> |
| slices -> |
| errors -> |
| resilience) |
+--------------+
|
+----------------------------------------+
v
+--------------+ +--------------+ +--------------+
| Phase 7 | | Phase 8 | | Phase 9 |
| nacl-sa- | | nacl-sa- | | nacl-publish|
| validate |--->| finalize |--->| docmost |
| (L1-L13 + | | (statistics, | | (optional) |
| XL6-XL9) | | ADR, | | |
| | | readiness) | | |
+--------------+ +--------------+ +--------------+
|
+----------------------------------------+
v
+--------------+
| Phase 10 |
| nacl-tl-plan|
| (optional) |
+--------------+
Each phase ends with user confirmation before proceeding to the next.
| Tool | Purpose |
|---|---|
mcp__neo4j__read-cypher | Read-only queries (resume detection, progress checks) |
mcp__neo4j__write-cypher | Not used by L0 directly --- all writes delegated to Task agents |
mcp__neo4j__get-schema | Schema introspection if needed |
Connection details are in ${CLAUDE_PLUGIN_ROOT}/nacl-core/SKILL.md.
When starting, query the graph to detect which phases have already been completed. This allows resuming an interrupted orchestration without re-running completed phases.
// Phase 1: Module exists?
OPTIONAL MATCH (m:Module)
WITH count(m) > 0 AS phase1
// Phase 2: DomainEntity exists?
OPTIONAL MATCH (de:DomainEntity)
WITH phase1,
count(de) > 0 AS phase2
// Phase 3: SystemRole exists?
OPTIONAL MATCH (sr:SystemRole)
WITH phase1, phase2,
count(sr) > 0 AS phase3
// Phase 4: UseCase with user_story exists?
OPTIONAL MATCH (uc:UseCase)
WHERE uc.user_story IS NOT NULL
WITH phase1, phase2, phase3,
count(uc) > 0 AS phase4
// Phase 5: UseCase with detail_status='complete' exists?
OPTIONAL MATCH (uc2:UseCase {detail_status: 'complete'})
WITH phase1, phase2, phase3, phase4,
count(uc2) > 0 AS phase5
// Phase 6: Component exists?
OPTIONAL MATCH (c:Component)
WITH phase1, phase2, phase3, phase4, phase5,
count(c) > 0 AS phase6
// Phase 6b: connected-spec extensions adopted? (optional phase, 2.15+)
OPTIONAL MATCH (ext)
WHERE ext:Screen OR ext:Slice OR ext:DomainError OR ext:CachePolicy OR ext:DegradationRule
WITH phase1, phase2, phase3, phase4, phase5, phase6,
count(ext) > 0 AS phase6b
// Phase 7: SA ValidationReport exists?
OPTIONAL MATCH (vr:ValidationReport {layer: 'SA'})
WITH phase1, phase2, phase3, phase4, phase5, phase6, phase6b,
count(vr) > 0 AS phase7
// Phase 8: SA FinalizationReport exists?
OPTIONAL MATCH (fr:FinalizationReport {layer: 'SA'})
WITH phase1, phase2, phase3, phase4, phase5, phase6, phase6b, phase7,
count(fr) > 0 AS phase8
RETURN phase1, phase2, phase3, phase4, phase5, phase6, phase6b, phase7, phase8
Phase 6b is optional: phase6b = false with later phases true means the
project declined the extension layers — do not treat it as "interrupted here".
Only offer Phase 6b on resume when it is false AND Phase 7 has not run yet
(or the user explicitly asks to adopt the layers).
Resume logic:
falseGraph resume detection:
- Phase 1 (architect): DONE
- Phase 2 (domain): DONE
- Phase 3 (roles): DONE
- Phase 4 (uc stories): NOT STARTED <-- resuming here
- Phase 5-10: NOT STARTED
Continue from Phase 4?
Phase 2 special case: If Phase 2 is partially complete (some modules have domain entities, others do not), detect which modules still need domain modeling:
MATCH (m:Module)
WHERE NOT EXISTS { MATCH (m)-[:CONTAINS_ENTITY]->(:DomainEntity) }
RETURN m.id, m.name
ORDER BY m.id
Resume Phase 2 from the first module without domain entities.
Phase 5 special case: If Phase 5 is partially complete (some Primary UCs are detailed, others are not), detect which UCs still need detailing:
MATCH (uc:UseCase {priority: 'MVP'})
WHERE uc.detail_status IS NULL OR uc.detail_status <> 'complete'
RETURN uc.id, uc.name
ORDER BY uc.id
Resume Phase 5 from the first Primary UC without detail_status='complete'.
/nacl:sa-architect fullLaunch: Launch Task agent: /nacl:sa-architect full
What it does:
Graph nodes created:
Module (mod-NNN)Requirement (NFR-NNN) with type='NFR'DEPENDS_ON (Module->Module), HAS_REQUIREMENT (Module->Requirement)Transition: After user confirms module tree and Context Map -> Phase 2
/nacl:sa-domain (per module)Launch: For each module --- a separate Task agent (sequentially):
Launch Task agent: /nacl:sa-domain {module_id}
Wait for completion and user confirmation -> next module.
Discovery query:
MATCH (m:Module)
RETURN m.id, m.name
ORDER BY m.id
What it does (per module):
Graph nodes created (per module):
DomainEntity (ent-NNN)DomainAttribute (attr-NNN)Enumeration (enum-NNN)EnumValue (ev-NNN)CONTAINS_ENTITY, HAS_ATTRIBUTE, RELATES_TO, HAS_ENUM, HAS_VALUEUser prompt (after each module):
Domain model for {module_id} ({name}) created:
- {N} entities, {M} attributes
- {K} enumerations
- {J} inter-entity relationships
Confirm? (yes / adjust / skip)
Transition: After all modules complete -> Phase 3
/nacl:sa-roles fullLaunch: Launch Task agent: /nacl:sa-roles full
What it does:
Graph nodes created:
SystemRole (role-NNN)HAS_PERMISSION (SystemRole->DomainEntity with crud property), MAPPED_TO (BusinessRole->SystemRole, if BA exists)Transition: After user confirms role model and permissions -> Phase 4
/nacl:sa-uc storiesLaunch: Launch Task agent: /nacl:sa-uc stories
What it does:
Graph nodes created:
UseCase (UC-NNN) with user_story, acceptance_criteria, priority propertiesCONTAINS_UC (Module->UseCase), ACTOR (UseCase->SystemRole)Transition: After user confirms UC registry -> Phase 5
/nacl:sa-uc detail UC-NNN (per Primary UC, sequential)Launch: For each Primary UC (priority='MVP') --- a separate Task agent (sequentially, not in parallel --- each UC may modify the domain):
Launch Task agent: /nacl:sa-uc detail UC-{NNN}
Wait for completion and user confirmation -> next UC.
Discovery query:
MATCH (uc:UseCase {priority: 'MVP'})
WHERE uc.detail_status IS NULL OR uc.detail_status <> 'complete'
RETURN uc.id, uc.name
ORDER BY uc.id
What it does (per UC):
Graph nodes created (per UC):
ActivityStep (step-NNN)Form (form-NNN)FormField (field-NNN)Requirement (REQ-NNN) with type='functional'HAS_STEP, USES_FORM, HAS_FIELD, MAPS_TO, HAS_REQUIREMENT, DEPENDS_ONUser prompt (after all Primary UCs):
UC detailing completed for Primary UCs:
- UC-{NNN}: {Name} (complete)
- UC-{NNN}: {Name} (complete)
Secondary UCs (not detailed):
- UC-{NNN}: {Name}
- UC-{NNN}: {Name}
Options:
1. Continue detailing Secondary UCs
2. Proceed to UI design (Phase 6)
Transition: After detailing at minimum all Primary UCs -> Phase 6
/nacl:sa-ui fullLaunch: Launch Task agent: /nacl:sa-ui full
What it does:
Graph nodes created:
Component (comp-NNN)USED_IN (Component->Form)Transition: After user confirms UI architecture -> Phase 6b
/nacl:sa-ui state-machine + /nacl:sa-uc slices|errors|resilienceGoal: Adopt the 2.15+ extension layers — screen state machines (L10), behavior slices (L11), domain error taxonomy (L12), cache & degradation policies (L13) — while the SA context from Phases 5-6 is still fresh.
Gate (one for the whole phase): Offer adoption with a single confirmation.
Default is adopt; opting out skips straight to Phase 7 and records
extensions: skipped in progress — the L10-L13 vacuous pass in Phase 7 must
be a documented choice, not an accident.
Launch order is hard (dependencies per docs/runbooks/upgrade-graph-extensions.md):
Screen machines — for every UC with coalesce(uc.has_ui, true) = true:
Launch Task agent: /nacl:sa-ui state-machine UC-{NNN}
Slices of UI UCs anchor via COVERS into ScreenState/Transition — machines
must exist before slices.
Behavior slices — per UC (UI UCs after their machine; backend-only UCs
anchor via CALLS):
Launch Task agent: /nacl:sa-uc slices UC-{NNN}
Domain errors — per UC (module error catalogs are created here):
Launch Task agent: /nacl:sa-uc errors UC-{NNN}
Error-triggered degradation rules anchor via ON_ERROR into DomainError —
errors must exist before resilience.
Resilience — per UC:
Launch Task agent: /nacl:sa-uc resilience UC-{NNN}
Each launch is a separate Task agent (same context-budget rule as the other phases). Steps run strictly in the order above; within a step, UCs run sequentially.
Verify-before-bulk: after the first UC of each step, run a scoped
/nacl:sa-validate of the touched level (L10 after the first machine, L11
after the first slices run, L12 after errors, L13 after resilience) and show
the user the result; 0 CRITICAL before queueing the remaining UCs.
Graph nodes created:
Screen, ScreenState, ScreenEvent, Transition, ScreenEffect, AnalyticsEvent (SCR-, SCRST-, SCREV-, SCRTR-, SCREF-, ANEV-)Slice (SLC-NNN-*)DomainError, ErrorPresentation (ERR-, ERRP-)CachePolicy, DegradationRule (CACHE-, DEG-NNN-)Transition: After all four steps (or an explicit skip) -> Phase 7
/nacl:sa-validate fullLaunch: Launch Task agent: /nacl:sa-validate full
What it does:
Graph nodes created:
ValidationReport (with layer='SA')On errors:
Transition: After validation passes (0 critical errors) -> Phase 8
/nacl:sa-finalize fullLaunch: Launch Task agent: /nacl:sa-finalize full
What it does:
Graph nodes created:
FinalizationReport (with layer='SA')ADR nodes (if any decisions were made)Transition: -> Phase 9 (user gate)
/nacl:publish docmostLaunch: Launch Task agent: /nacl:publish docmost
Condition: User confirms they want to publish.
User prompt:
SA specification is complete in Neo4j graph.
Publish to Docmost?
1. Yes, publish to Docmost (/nacl:publish docmost)
2. No, finish without publishing
What it does:
/nacl:tl-planCondition: User wants to proceed to development.
Actions:
Check specification readiness:
ValidationReport (layer='SA') exists and has no critical errorsShow summary to user:
SA specification ready for TL handoff.
Artifacts: {N} modules, {M} UCs ({K} detailed), {L} entities
Validation: {status}
Options:
1. /nacl:tl-plan --- create development plan (tasks, waves, api-contracts)
2. Stop --- specification complete, development later
On option 1: Launch Task agent: /nacl:tl-plan
After each phase, show progress to the user:
=== nacl-sa-full Progress ===
[########------------] 40%
- [x] Phase 1: Architect (nacl-sa-architect) --- {N} modules, Context Map
- [x] Phase 2: Domain (nacl-sa-domain) --- {N} entities, {M} attributes
- [x] Phase 3: Roles (nacl-sa-roles) --- {P} roles, permissions matrix
- [x] Phase 4: UC Stories (nacl-sa-uc stories) --- {Q} UCs registered
- [ ] Phase 5: UC Detail (nacl-sa-uc detail) <- next
- [ ] Phase 6: UI (nacl-sa-ui)
- [ ] Phase 6b: Extensions (sa-ui state-machine, sa-uc slices/errors/resilience) (optional)
- [ ] Phase 7: Validate (nacl-sa-validate)
- [ ] Phase 8: Finalize (nacl-sa-finalize)
- [ ] Phase 9: Publish (nacl-publish) (optional)
- [ ] Phase 10: TL Handoff (nacl-tl-plan) (optional)
Progress bar: [###---] where # = completed phases, - = remaining. Width = 20 chars. Percentage = completed / 10 * 100.
After each phase, present a gate to the user:
Phase {N} complete: {phase_name}
Summary:
- {key metric 1}
- {key metric 2}
Proceed to Phase {N+1}: {next_phase_name}? (yes / redo / stop)
If the user cannot answer all questions within a phase:
status: "assumption" where data was inferredUse this query to build the progress summary and final report:
OPTIONAL MATCH (m:Module) WITH count(m) AS modules
OPTIONAL MATCH (uc:UseCase) WITH modules, count(uc) AS ucs
OPTIONAL MATCH (uc2:UseCase {detail_status: 'complete'}) WITH modules, ucs, count(uc2) AS detailed_ucs
OPTIONAL MATCH (de:DomainEntity) WITH modules, ucs, detailed_ucs, count(de) AS entities
OPTIONAL MATCH (da:DomainAttribute) WITH modules, ucs, detailed_ucs, entities, count(da) AS attributes
OPTIONAL MATCH (f:Form) WITH modules, ucs, detailed_ucs, entities, attributes, count(f) AS forms
OPTIONAL MATCH (ff:FormField) WITH modules, ucs, detailed_ucs, entities, attributes, forms, count(ff) AS fields
OPTIONAL MATCH (sr:SystemRole) WITH modules, ucs, detailed_ucs, entities, attributes, forms, fields, count(sr) AS roles
OPTIONAL MATCH (rq:Requirement) WITH modules, ucs, detailed_ucs, entities, attributes, forms, fields, roles, count(rq) AS requirements
OPTIONAL MATCH (c:Component) WITH modules, ucs, detailed_ucs, entities, attributes, forms, fields, roles, requirements, count(c) AS components
RETURN modules, ucs, detailed_ucs, entities, attributes, forms, fields, roles, requirements, components
After all phases (or when user stops):
=== nacl-sa-full Complete ===
[####################] 100%
SA specification in Neo4j graph:
- {N} modules
- {M} use cases ({K} detailed, {J} with stories only)
- {L} domain entities, {P} attributes
- {Q} forms, {R} form fields
- {S} system roles
- {T} requirements (functional + NFR)
- {U} UI components
- Validation: PASSED (0 critical errors)
Next steps:
1. /nacl:publish docmost --- publish graph to Docmost
2. /nacl:tl-plan --- create development plan from graph
3. Query the graph directly --- use mcp__neo4j__read-cypher
agent: nacl-sa-full
trigger: /nacl:sa-full
mode: orchestrator (delegates all work to Task agents)
reads:
- Neo4j: Module, DomainEntity, SystemRole, UseCase, Component, ValidationReport, FinalizationReport (for resume detection only)
writes:
- Neo4j: none directly (all writes delegated to sub-agents)
creates_directories: [] # No file output --- graph only
calls:
- Phase 1: nacl-sa-architect (Task agent)
- Phase 2: nacl-sa-domain (Task agent, per module)
- Phase 3: nacl-sa-roles (Task agent)
- Phase 4: nacl-sa-uc stories (Task agent)
- Phase 5: nacl-sa-uc detail (Task agent, per Primary UC)
- Phase 6: nacl-sa-ui (Task agent)
- Phase 6b: nacl-sa-ui state-machine + nacl-sa-uc slices/errors/resilience (Task agents, optional)
- Phase 7: nacl-sa-validate (Task agent)
- Phase 8: nacl-sa-finalize (Task agent)
- Phase 9: nacl-publish (Task agent, optional)
- Phase 10: nacl-tl-plan (Task agent, optional)
What SKILL.md sets; muted values are Claude Code's defaults
opushighnpx claudepluginhub itsalt/nacl --plugin nacl53 skills in this plugin
/ba-analyzeАнализ Excalidraw-доски бизнес-процесса: полнота, diff со snapshot, сравнение с Neo4j-графом.
Используй когда пользователь просит: проанализировать доску, проверить доску,
найти проблемы на доске, board analysis, nacl-ba-analyze.
/ba-contextDefine system boundaries in Neo4j graph: scope, stakeholders, external entities, data flows.— all data stored as graph nodes and edges.
Use when: define system scope with graph, system context diagram, or the user says "/nacl:ba-context".
/ba-entitiesCatalog business entities in Neo4j: stereotypes, attributes, states, CRUD matrix.Use when: model entities with graph, create entity catalog, or the user says "/nacl:ba-entities".
Other plugins' skills for the same job