mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
docs: add requirements section and hooks field warning
- Add minimum Claude Code version requirement (v2.1.0+) - Document hooks auto-loading behavior to prevent flip-flop cycles - Add flip-flop history table to PLUGIN_SCHEMA_NOTES.md - Reference issues #29, #52, #103 that were caused by this confusion - Explain that regression test now prevents reintroduction This documentation should prevent future confusion about whether to add/remove the hooks field from plugin.json.
This commit is contained in:
27
README.md
27
README.md
@@ -244,6 +244,33 @@ See `skills/continuous-learning-v2/` for full documentation.
|
||||
|
||||
---
|
||||
|
||||
## Requirements
|
||||
|
||||
### Claude Code CLI Version
|
||||
|
||||
**Minimum version: v2.1.0 or later**
|
||||
|
||||
This plugin requires Claude Code CLI v2.1.0+ due to changes in how the plugin system handles hooks.
|
||||
|
||||
Check your version:
|
||||
```bash
|
||||
claude --version
|
||||
```
|
||||
|
||||
### Important: Hooks Auto-Loading Behavior
|
||||
|
||||
> ⚠️ **For Contributors:** Do NOT add a `"hooks"` field to `.claude-plugin/plugin.json`. This is enforced by a regression test.
|
||||
|
||||
Claude Code v2.1+ **automatically loads** `hooks/hooks.json` from any installed plugin by convention. Explicitly declaring it in `plugin.json` causes a duplicate detection error:
|
||||
|
||||
```
|
||||
Duplicate hooks file detected: ./hooks/hooks.json resolves to already-loaded file
|
||||
```
|
||||
|
||||
**History:** This has caused repeated fix/revert cycles in this repo ([#29](https://github.com/affaan-m/everything-claude-code/issues/29), [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/everything-claude-code/issues/103)). The behavior changed between Claude Code versions, leading to confusion. We now have a regression test to prevent this from being reintroduced.
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
||||
### Option 1: Install as Plugin (Recommended)
|
||||
|
||||
Reference in New Issue
Block a user