End-of-session learning classification. Reviews accumulated learnings and classifies each as GREEN (generic, goes to global wiki), YELLOW (project-specific, goes to project wiki), or RED (sensitive, discarded). Triggered at session end via Stop hook. Use when: (1) session ending, (2) manual review of learnings. Triggers: /exit-review, 'review learnings', 'classify learnings'.
Classify accumulated learnings before session ends.
| Color | Meaning | Destination | Example |
|---|---|---|---|
| GREEN | Generic (useful for any project) | $VAULT_DIR/global/wiki/{category}/ | "Use zod for runtime validation" |
| YELLOW | Project-specific | $VAULT_DIR/projects/{project}/wiki/ | "Hook sanitize-secrets.js uses 28 patterns" |
| RED | Contains secrets or sensitive info | DISCARDED (never saved) | "API key is sk-..." |
$VAULT_DIR/global/wiki/{category}/
c. If YELLOW: write to
d. If RED: discard with warning$VAULT_DIR/projects/{project}/wiki/---