nikolisted
Install: claude install-skill Texarkanine/slobac
# Niko Phase - Initialization & Entry Point
`/niko` is the single entry point for the Niko system. It initializes the memory bank, detects current state, and routes to the appropriate workflow.
## Step 0: Ensure Memory Bank
Before entering the state machine, ensure the memory bank exists.
```
Load: .cursor/rules/shared/niko/core/memory-bank-paths.mdc
Load: .cursor/skills/shared/niko/references/core/memory-bank-init.md
```
If any persistent file (`productContext.md`, `systemPatterns.md`, `techContext.md`) does not exist, initialize immediately per `memory-bank-init.md`.
If the user's only input was to initialize the memory bank, you are done — exit and do nothing else. Otherwise, proceed to the state machine.
## State Machine
```mermaid
flowchart TD
S0(("Step 0:<br>Ensure Memory Bank"))
S1{"Step 1:<br>Detect Active<br>State"}
S4{"Step 4:<br>Check for<br>User Input"}
S0 --> S1
S1 -->|"L4"| S2
S1 -->|"Standalone"| S3
S1 -->|"Fresh"| S4
subgraph L4["L4 Re-entry"]
S2{"Step 2:<br>Assess L4<br>Sub-run"}
S2a["Step 2a:<br>Advance L4<br>Milestone"]
S2 -->|"Complete"| S2a
end
subgraph Standalone["Standalone Re-entry"]
S3{"Step 3:<br>Assess Standalone<br>Task"}
S3a{"Step 3a:<br>Determine<br>Disposition"}
S3b["Step 3b:<br>Clear Stale<br>State"]
S3c{"Step 3c:<br>Check for<br>Conflicting Input"}
S3 -->|"Incomplete"| S3c
S3 -->|"Complete"| S3a
S3a -.->|"Rework"