Niko
Niko Memory Bank System - Niko Phase - Initialization & Entry PointFrom its SKILL.md
npx -y skills add Texarkanine/slobac --skill nikoAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.8 KB, ~2.1k tokens by cl100k_base, as published. Nobody here has run it
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
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"| S3b
end
S2a -.->|"All done"| Archive
S3a -.->|"Archive"| Archive
S2 -->|"Not started"| Classify
S2a -->|"Milestones remain"| Classify
S3b --> Classify
S4 -->|"Has input"| S5
S5["Step 5:<br>Clarify Intent"] --> Classify
S2 -->|"In-progress"| Resume
S3c -->|"No input"| Resume
S3c -->|"Has input"| Warn
S4 -->|"No input"| Done
subgraph "End States"
Archive[/"π§βπ» /niko-archive"/]
Warn("β οΈ STOP:<br>Work in-progress")
Resume("Step 6:<br>Resume Workflow")
Classify("Step 7:<br>Classify Complexity")
Done("Done")
end
Legend:
- Solid edge = Transition does not require operator input
- Dashed edge = Transition requires operator input
How to Navigate
The flowchart above and the step definitions below form a single contract. The flowchart is the authoritative routing map β it shows every legal path through the state machine. The step definitions explain how to evaluate conditions and execute procedures at each node.
To execute /niko:
- Begin at Step 1, whose definition is below.
- Decision node: the definition describes what to evaluate and what each outcome means. Your evaluation result maps to one of the labeled edges leaving that node. Follow it to the next step.
- Action node: the definition describes a procedure to execute. When complete, follow the outgoing edge to the next step.
- Repeat from (2).
- Terminal nodes (
Done,β οΈ STOP,π§βπ» /niko-archive) mean stop β do not continue.
Lettered sub-steps (2a, 3a, 3b, 3c) belong to their parent step's subgraph. While inside a subgraph, your next step is either another sub-step in the same group or a top-level step β the edges make this explicit.
Step 1: Detect Active State
List the files in memory-bank/active/. Exactly one of three states applies:
milestones.mdexists β L4 β Step 2- All four core ephemeral files exist (
projectbrief.md,activeContext.md,tasks.md,progress.md) but nomilestones.mdβ Standalone β Step 3 - Neither condition is met β Fresh β Step 4
Step 2: Assess L4 Sub-run
Read
memory-bank/active/milestones.mdmemory-bank/active/activeContext.mdmemory-bank/active/progress.md(if present)memory-bank/active/.qa-validation-status(if present)
Determine which state applies:
- Complete:
activeContext.mdshowsREFLECT COMPLETE, or the sub-run's complexity (fromprogress.md) is Level 1 and.qa-validation-statusshowsPASS. β Step 2a - Not started:
progress.mddoes not exist, or the**Complexity:**field inprogress.mdisLevel 4(L4 plan exists but no sub-run has been classified yet). β Step 7 - In-progress: a sub-run is active but not yet complete. β Step 6
Step 2a: Advance L4 Milestone
- Mark the completed sub-run's milestone as
- [x]inmilestones.md. - Delete sub-run ephemeral files from
memory-bank/active/:- Delete all of the following that exist:
tasks.md,activeContext.md,progress.md,creative/,troubleshooting/,.qa-validation-status,.preflight-status - Preserve:
milestones.md,projectbrief.md,reflection/
- Delete all of the following that exist:
- Re-read
milestones.md:- Every milestone is
- [x]β All done. Direct the operator to run/niko-archivefor the capstone archive. STOP and wait. - Unchecked milestones remain β Milestones remain β Step 7
- Every milestone is
Step 3: Assess Standalone Task
Read
memory-bank/active/activeContext.mdmemory-bank/active/progress.md(if present)memory-bank/active/.qa-validation-status(if present)
Determine which state applies:
- Complete:
activeContext.mdshowsREFLECT COMPLETE, or the task's complexity (fromprogress.md) is Level 1 and.qa-validation-statusshowsPASS. β Step 3a - Incomplete: task is in-progress but not yet complete. β Step 3c
Step 3a: Determine Disposition
The previous task is complete but not yet archived. Ask the operator: rework or archive? STOP and wait for their response.
- Archive β direct the operator to run
/niko-archive. - Rework β gather rework context from the operator (PR feedback, reviewer comments, specific issues). β Step 3b
Step 3b: Clear Stale State
- Append rework initiation and the operator's feedback to
progress.md. - Append a Rework section to
projectbrief.md(preserve the original brief above). - Delete from
memory-bank/active/all of the following that exist:tasks.md,activeContext.md,troubleshooting/,.qa-validation-status,.preflight-status. - Commit:
chore: initiating rework on [task-id]
β Step 7
Step 3c: Check for Conflicting Input
A standalone task is incomplete. Evaluate whether the user provided new task input alongside the /niko invocation:
- Has input β β οΈ Warn the operator that work is in-progress. The current task should be archived or explicitly abandoned before starting new work. STOP and wait.
- No input β Step 6
Step 4: Check for User Input
No work is in-flight. Evaluate whether the user provided task input alongside the /niko invocation:
- Has input β Step 5
- No input β Done (nothing to do; exit)
Step 5: Clarify Intent
Load: .cursor/skills/shared/niko/references/core/intent-clarification.md
Follow the instructions to validate the user's intent. Once the user approves the restatement, proceed to Step 7.
Step 6: Resume Workflow
Read progress.md for the **Complexity:** field and activeContext.md for the **Phase:** field. Load the appropriate level-specific workflow and resume execution from the current phase.
- Level 1:
.cursor/skills/shared/niko/references/level1/level1-workflow.md - Level 2:
.cursor/skills/shared/niko/references/level2/level2-workflow.md - Level 3:
.cursor/skills/shared/niko/references/level3/level3-workflow.md - Level 4:
.cursor/skills/shared/niko/references/level4/level4-workflow.md
Step 7: Classify Complexity
Load: .cursor/skills/shared/niko/references/core/complexity-analysis.md
Follow the instructions to determine the complexity level. Complexity analysis will populate the memory bank's ephemeral files and guide you to the next step.
What ships with it: 24 files
104.1 KB alongside SKILL.md
references/
- core/complexity-analysis.md5.1 KB
- core/intent-clarification.md2.1 KB
- core/memory-bank-init.md7.0 KB
- core/reconcile-persistent.md1.8 KB
- level1/level1-build.md860 B
- level1/level1-workflow.md2.7 KB
- level2/level2-archive.md2.2 KB
- level2/level2-build.md3.5 KB
- level2/level2-plan.md7.2 KB
- level2/level2-reflect.md4.7 KB
- level2/level2-workflow.md2.5 KB
- level3/level3-archive.md3.1 KB
- level3/level3-build.md5.1 KB
- level3/level3-plan.md11.7 KB
- level3/level3-reflect.md5.6 KB
- level3/level3-workflow.md2.9 KB
- level4/level4-archive.md3.2 KB
- level4/level4-plan.md4.6 KB
- level4/level4-workflow.md2.6 KB
- phases/creative/creative-phase-algorithm.md3.5 KB
- phases/creative/creative-phase-architecture.md6.1 KB
- phases/creative/creative-phase-generic.md3.9 KB
- phases/creative/creative-phase-template.md6.8 KB
- phases/creative/creative-phase-uiux.md5.3 KB