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:
87
CLAUDE.md
87
CLAUDE.md
@@ -1,44 +1,79 @@
|
||||
# CLAUDE.md
|
||||
|
||||
Development instructions for the claude-learn plugin.
|
||||
Development instructions for the claude-plugins repository.
|
||||
|
||||
## Project Structure
|
||||
## Repository Structure
|
||||
|
||||
```
|
||||
claude-learn/
|
||||
├── .claude-plugin/marketplace.json # Marketplace entry
|
||||
├── plugin/ # Plugin code
|
||||
│ ├── .claude-plugin/plugin.json # Plugin manifest
|
||||
│ ├── commands/ # Slash commands
|
||||
│ ├── hooks/ # Event hooks
|
||||
│ ├── rules/ # Rule files
|
||||
│ └── templates/ # JSON templates
|
||||
├── README.md # User documentation
|
||||
├── CLAUDE.md # This file
|
||||
└── CHANGELOG.md # Version history
|
||||
claude-plugins/
|
||||
├── .claude-plugin/
|
||||
│ └── marketplace.json # Lists all plugins
|
||||
├── plugins/
|
||||
│ └── learn/ # Learn plugin
|
||||
│ ├── .claude-plugin/plugin.json
|
||||
│ ├── commands/ # Slash commands
|
||||
│ ├── hooks/ # Event hooks
|
||||
│ ├── rules/ # Rule files
|
||||
│ └── templates/ # Templates
|
||||
├── README.md # Marketplace README
|
||||
├── CLAUDE.md # This file
|
||||
└── CHANGELOG.md # Version history
|
||||
```
|
||||
|
||||
## Key Decisions
|
||||
## Adding a New Plugin
|
||||
|
||||
1. **Single Memory File**: Plugin uses only `.claude/rules/claude-learn-memory.md`
|
||||
2. **Import for Migration**: Use `/learn:import` to bring in existing memories
|
||||
3. **User Confirmation**: Always list proposals before saving
|
||||
4. **Stop Hook**: Suggests, doesn't auto-run
|
||||
1. Create plugin directory:
|
||||
```bash
|
||||
mkdir -p plugins/new-plugin/.claude-plugin
|
||||
mkdir -p plugins/new-plugin/commands
|
||||
```
|
||||
|
||||
2. Create `plugins/new-plugin/.claude-plugin/plugin.json`:
|
||||
```json
|
||||
{
|
||||
"name": "new-plugin",
|
||||
"description": "What the plugin does",
|
||||
"version": "1.0.0",
|
||||
"author": { "name": "Romfast Team" }
|
||||
}
|
||||
```
|
||||
|
||||
3. Add to `.claude-plugin/marketplace.json`:
|
||||
```json
|
||||
{
|
||||
"name": "new-plugin",
|
||||
"source": "./plugins/new-plugin",
|
||||
"description": "...",
|
||||
"version": "1.0.0",
|
||||
"keywords": [...]
|
||||
}
|
||||
```
|
||||
|
||||
4. Create commands in `plugins/new-plugin/commands/`
|
||||
|
||||
## Testing
|
||||
|
||||
```bash
|
||||
# Test locally
|
||||
claude --plugin-dir ./plugin
|
||||
# Test specific plugin
|
||||
claude --plugin-dir ./plugins/learn
|
||||
|
||||
# Verify commands appear
|
||||
/learn:status
|
||||
```
|
||||
|
||||
## Release Process
|
||||
## Git
|
||||
|
||||
1. Update version in `plugin/.claude-plugin/plugin.json`
|
||||
2. Update version in `.claude-plugin/marketplace.json`
|
||||
3. Update CHANGELOG.md
|
||||
4. Commit and push to main
|
||||
5. Tag release: `git tag v1.0.0 && git push --tags`
|
||||
```bash
|
||||
git remote: git@gitea.romfast.ro:romfast/claude-plugins.git
|
||||
git push origin main
|
||||
```
|
||||
|
||||
## Learn Plugin Details
|
||||
|
||||
See [plugins/learn/README.md](./plugins/learn/README.md) for full documentation.
|
||||
|
||||
Key files:
|
||||
- `plugins/learn/commands/analyze.md` - Main analysis command
|
||||
- `plugins/learn/commands/status.md` - Statistics display
|
||||
- `plugins/learn/commands/import.md` - Import from other formats
|
||||
- `plugins/learn/commands/reflect.md` - Cross-domain consolidation
|
||||
|
||||
Reference in New Issue
Block a user