four-layer-initlisted
Install: claude install-skill vatevstoil/claude-self-learning-os
# Four-Layer Memory — Project Bootstrap
> **Reference architecture:** `{{RESEARCH_PATH}}\Claude Code Resurch\wiki\concepts\Graphify-vs-GitNexus.md`
> **Session protocol:** `~/.claude/references/session-start.md`
>
> **Goal:** Apply the 4-layer memory stack to ANY project so every session starts with ~5k tokens instead of 400k+.
## When to Invoke
Trigger on phrases like:
- "Setup 4-layer for StroyOffice"
- "Onboard <project> to memory architecture"
- "Init GitNexus + Pinecone for <project>"
- "Apply the memory ecosystem"
## Prerequisites Check (run BEFORE onboarding)
```bash
# 1. GitNexus installed globally?
gitnexus --version # should return 1.6.1+
# 2. Pinecone credentials in ~/.claude/.env?
test -f ~/.claude/.env && grep -q PINECONE_API_KEY ~/.claude/.env && echo OK || echo MISSING
# 3. Pinecone wrapper script present?
test -f ~/.claude/scripts/pinecone.py && echo OK || echo MISSING
```
If any MISSING → see "Initial global setup" at the bottom.
## The 7-Step Project Onboarding
### Step 1 — Project path + name (ask user)
```
Project path: {{CODE_PATH}}\<ProjectName>
Wiki path: {{WIKI_PATH}}\<ProjectName>\wiki
Pinecone ns: <ProjectName> (case-exact, matches folder name)
```
### Step 2 — GitNexus analyze + verify
```bash
cd "{{CODE_PATH}}\<ProjectName>"
gitnexus analyze # ~1-2 min depending on size
gitnexus status # must show ✅ up-to-date
gitnexus list # verify project appears in global registry
```
Expected output: N nodes + M