# Claude Learn Plugin This is the main plugin directory. For installation and usage instructions, see the [main README](../README.md). ## Plugin Structure ``` plugin/ ├── .claude-plugin/ │ └── plugin.json # Plugin manifest ├── commands/ │ ├── analyze.md # /learn:analyze command │ ├── import.md # /learn:import command │ ├── reflect.md # /learn:reflect command │ └── status.md # /learn:status command ├── hooks/ │ └── hooks.json # Stop hook configuration ├── rules/ │ └── memory-format.md # Memory file format spec ├── templates/ │ └── memory-entry.json # JSON templates └── README.md # This file ``` ## Development To test locally: ```bash claude --plugin-dir /path/to/claude-learn/plugin ``` ## Commands Overview ### /learn:analyze Analyzes the current conversation and proposes patterns/gotchas to save. ### /learn:import Imports memories from other files (auto-build-memory.md, JSON, etc.) ### /learn:reflect Consolidates duplicates, promotes frequent patterns to CLAUDE.md. ### /learn:status Shows memory statistics and suggestions. ## Hook The Stop hook triggers after significant conversations, suggesting `/learn:analyze` when appropriate.