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:
140
plugins/learn/rules/memory-format.md
Normal file
140
plugins/learn/rules/memory-format.md
Normal file
@@ -0,0 +1,140 @@
|
||||
---
|
||||
paths: ".claude/rules/claude-learn-*.md"
|
||||
---
|
||||
|
||||
# Claude Learn Memory Format
|
||||
|
||||
Acest fișier definește formatul pentru fișierele de memorie per domeniu.
|
||||
|
||||
## Arhitectura Fișierelor
|
||||
|
||||
```
|
||||
.claude/rules/
|
||||
├── claude-learn-domains.md # Configurația domeniilor
|
||||
├── claude-learn-backend.md # Memorie backend (paths: src/api/**)
|
||||
├── claude-learn-frontend.md # Memorie frontend (paths: src/components/**)
|
||||
├── claude-learn-database.md # Memorie database (paths: src/db/**)
|
||||
├── claude-learn-testing.md # Memorie testing (paths: **/*.test.ts)
|
||||
├── claude-learn-deployment.md # Memorie deployment (paths: Dockerfile, *.yml)
|
||||
└── claude-learn-global.md # Memorie globală (fără paths - mereu încărcat)
|
||||
```
|
||||
|
||||
## Template Fișier Domeniu
|
||||
|
||||
```markdown
|
||||
---
|
||||
paths: src/api/**/*.ts, src/server/**/*.ts
|
||||
---
|
||||
|
||||
# Claude Learn Memory: backend
|
||||
|
||||
Patterns și Gotchas pentru domeniul **backend**.
|
||||
|
||||
---
|
||||
|
||||
## Patterns
|
||||
|
||||
### {Titlu Descriptiv}
|
||||
**Discovered**: {YYYY-MM-DD} (feature: {context-scurt})
|
||||
**Description**: {Descriere clară a pattern-ului și când să-l folosești}
|
||||
|
||||
**Example** (`{file}:{lines}`):
|
||||
\```{language}
|
||||
{cod exemplu}
|
||||
\```
|
||||
|
||||
**Tags**: {tag1}, {tag2}, {tag3}
|
||||
|
||||
---
|
||||
|
||||
## Gotchas
|
||||
|
||||
### {Titlu Descriptiv}
|
||||
**Discovered**: {YYYY-MM-DD} (feature: {context-scurt})
|
||||
**Problem**: {Ce problemă a apărut}
|
||||
**Solution**: {Cum s-a rezolvat}
|
||||
|
||||
**Tags**: {tag1}, {tag2}, {tag3}
|
||||
|
||||
---
|
||||
|
||||
## Domain Statistics
|
||||
|
||||
- **Total Patterns**: 0
|
||||
- **Total Gotchas**: 0
|
||||
- **Last Session**: -
|
||||
- **Sessions Recorded**: 0
|
||||
```
|
||||
|
||||
## Template Fișier Global
|
||||
|
||||
Fișierul `claude-learn-global.md` NU are frontmatter `paths:` și se încarcă întotdeauna:
|
||||
|
||||
```markdown
|
||||
# Claude Learn Memory: global
|
||||
|
||||
Patterns și Gotchas universale, aplicabile tuturor domeniilor.
|
||||
|
||||
---
|
||||
|
||||
## Patterns
|
||||
|
||||
...
|
||||
|
||||
## Gotchas
|
||||
|
||||
...
|
||||
|
||||
## Domain Statistics
|
||||
|
||||
...
|
||||
```
|
||||
|
||||
## Format Pattern
|
||||
|
||||
```markdown
|
||||
### {Titlu Descriptiv}
|
||||
**Discovered**: {YYYY-MM-DD} (feature: {context-scurt})
|
||||
**Description**: {Descriere clară a pattern-ului și când să-l folosești}
|
||||
|
||||
**Example** (`{file}:{lines}`):
|
||||
\```{language}
|
||||
{cod exemplu}
|
||||
\```
|
||||
|
||||
**Tags**: {tag1}, {tag2}, {tag3}
|
||||
|
||||
---
|
||||
```
|
||||
|
||||
## Format Gotcha
|
||||
|
||||
```markdown
|
||||
### {Titlu Descriptiv}
|
||||
**Discovered**: {YYYY-MM-DD} (feature: {context-scurt})
|
||||
**Problem**: {Ce problemă a apărut}
|
||||
**Solution**: {Cum s-a rezolvat}
|
||||
|
||||
**Tags**: {tag1}, {tag2}, {tag3}
|
||||
|
||||
---
|
||||
```
|
||||
|
||||
## Convenții
|
||||
|
||||
1. **Titluri**: Folosește titluri descriptive, nu generice
|
||||
- ✅ "Vue Watch Needs Immediate Flag for Initial Load"
|
||||
- ❌ "Vue Problem"
|
||||
|
||||
2. **Tags**: Folosește kebab-case, maxim 5 tags per entry
|
||||
- ✅ `vue`, `reactivity`, `watch`, `initialization`
|
||||
- ❌ `Vue.js`, `REACTIVITY`, `this is a tag`
|
||||
|
||||
3. **Exemple**: Include întotdeauna cod exemplu când e posibil
|
||||
|
||||
4. **Context**: Folosește feature name scurt pentru context
|
||||
- ✅ `(feature: user-dashboard)`
|
||||
- ❌ `(feature: implementing the new user dashboard with stats and charts)`
|
||||
|
||||
5. **Frontmatter**: Fiecare fișier de domeniu (exceptând global) TREBUIE să aibă frontmatter cu `paths:`
|
||||
- Paths-urile trebuie să corespundă cu cele din `claude-learn-domains.md`
|
||||
Reference in New Issue
Block a user