feat: v2.0.0 - Domain-based memory + multi-plugin marketplace structure
## Domain-based Memory (v2.0.0) - Memory split into domains (backend, frontend, database, testing, deployment, global) - Selective loading via `paths` frontmatter - only relevant memories load - Automatic domain detection from file paths in conversation - Auto-generated glob patterns when creating new domains - Cross-domain analysis in /learn:reflect ## Repository Reorganization - Restructured for multi-plugin marketplace: plugin/ → plugins/learn/ - Marketplace renamed: romfast-tools → romfast-plugins - Repository to be renamed on Gitea: claude-learn → claude-plugins 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
28
plugins/learn/templates/domain-memory.md
Normal file
28
plugins/learn/templates/domain-memory.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
paths: {DOMAIN_PATTERNS}
|
||||
---
|
||||
|
||||
# Claude Learn Memory: {DOMAIN_NAME}
|
||||
|
||||
Patterns și Gotchas pentru domeniul **{DOMAIN_NAME}**.
|
||||
|
||||
---
|
||||
|
||||
## Patterns
|
||||
|
||||
<!-- Patterns vor fi adăugate aici -->
|
||||
|
||||
---
|
||||
|
||||
## Gotchas
|
||||
|
||||
<!-- Gotchas vor fi adăugate aici -->
|
||||
|
||||
---
|
||||
|
||||
## Domain Statistics
|
||||
|
||||
- **Total Patterns**: 0
|
||||
- **Total Gotchas**: 0
|
||||
- **Last Session**: -
|
||||
- **Sessions Recorded**: 0
|
||||
42
plugins/learn/templates/domains-config.md
Normal file
42
plugins/learn/templates/domains-config.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# Claude Learn Domains Configuration
|
||||
|
||||
Acest fișier definește domeniile pentru organizarea memoriei.
|
||||
Fiecare domeniu are propriul fișier cu `paths` frontmatter pentru încărcare selectivă.
|
||||
|
||||
---
|
||||
|
||||
## Domenii Definite
|
||||
|
||||
| Domain | Patterns (globs) |
|
||||
|------------|----------------------------------------------------------|
|
||||
| backend | src/api/**/*.ts, src/server/**/*.ts, services/**/* |
|
||||
| frontend | src/components/**/*.tsx, src/pages/**/*.tsx, **/*.css |
|
||||
| database | src/db/**/*.ts, migrations/**/*.ts, **/*.sql |
|
||||
| testing | **/*.test.ts, **/*.spec.ts, tests/**/* |
|
||||
| deployment | Dockerfile, docker-compose.yml, **/*.yml, infra/**/* |
|
||||
| global | (întotdeauna încărcat) |
|
||||
|
||||
---
|
||||
|
||||
## Cum Funcționează
|
||||
|
||||
1. La `/learn:analyze`, plugin-ul detectează domeniul bazat pe fișierele din conversație
|
||||
2. Memoria se salvează în `claude-learn-{domain}.md` cu frontmatter `paths:`
|
||||
3. La încărcarea sesiunii, doar domeniile relevante se încarcă
|
||||
|
||||
## Adaugă Domeniu Nou
|
||||
|
||||
Adaugă o linie în tabelul de mai sus cu formatul:
|
||||
```
|
||||
| nume-domeniu | pattern1, pattern2, pattern3 |
|
||||
```
|
||||
|
||||
Plugin-ul va crea automat fișierul `claude-learn-{nume-domeniu}.md`.
|
||||
|
||||
## Editare Patterns
|
||||
|
||||
Pentru a modifica patterns-urile unui domeniu:
|
||||
1. Editează tabelul de mai sus
|
||||
2. Editează frontmatter-ul din `claude-learn-{domain}.md`
|
||||
|
||||
Ambele locații trebuie sincronizate pentru consistență.
|
||||
51
plugins/learn/templates/memory-entry.json
Normal file
51
plugins/learn/templates/memory-entry.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"pattern": {
|
||||
"title": "",
|
||||
"discovered": "",
|
||||
"feature": "",
|
||||
"domain": "",
|
||||
"description": "",
|
||||
"example": {
|
||||
"file": "",
|
||||
"lines": "",
|
||||
"language": "",
|
||||
"code": ""
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"gotcha": {
|
||||
"title": "",
|
||||
"discovered": "",
|
||||
"feature": "",
|
||||
"domain": "",
|
||||
"problem": "",
|
||||
"solution": "",
|
||||
"tags": []
|
||||
},
|
||||
"statistics": {
|
||||
"total_patterns": 0,
|
||||
"total_gotchas": 0,
|
||||
"last_session": "",
|
||||
"sessions_recorded": 0
|
||||
},
|
||||
"domains": {
|
||||
"backend": {
|
||||
"patterns": ["src/api/**/*.ts", "src/server/**/*.ts", "services/**/*"]
|
||||
},
|
||||
"frontend": {
|
||||
"patterns": ["src/components/**/*.tsx", "src/pages/**/*.tsx", "**/*.css"]
|
||||
},
|
||||
"database": {
|
||||
"patterns": ["src/db/**/*.ts", "migrations/**/*.ts", "**/*.sql"]
|
||||
},
|
||||
"testing": {
|
||||
"patterns": ["**/*.test.ts", "**/*.spec.ts", "tests/**/*"]
|
||||
},
|
||||
"deployment": {
|
||||
"patterns": ["Dockerfile", "docker-compose.yml", "**/*.yml", "infra/**/*"]
|
||||
},
|
||||
"global": {
|
||||
"patterns": []
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user