From 6e168662b9591e937e7e1440012bfb6d6fd773bd Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 1 Feb 2026 03:06:23 +0000 Subject: [PATCH] fix: move plugin.json to .claude-plugin/ with correct schema - Skills and commands now use path arrays - Removed unsupported fields (hooks, dependencies) - Hooks will be added separately in hooks/hooks.json Co-Authored-By: Claude Opus 4.5 --- .claude-plugin/plugin.json | 21 ++++++++ plugin.json | 102 ------------------------------------- 2 files changed, 21 insertions(+), 102 deletions(-) create mode 100644 .claude-plugin/plugin.json delete mode 100644 plugin.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..0ea8c5d --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,21 @@ +{ + "name": "core", + "version": "1.0.0", + "description": "Host UK unified framework - Go CLI, PHP framework, multi-repo management", + "author": { + "name": "Host UK", + "url": "https://github.com/host-uk" + }, + "homepage": "https://github.com/host-uk/core-claude", + "repository": "https://github.com/host-uk/core-claude", + "license": "EUPL-1.2", + "keywords": [ + "go", + "php", + "laravel", + "monorepo", + "multi-repo", + "context-preservation" + ], + "skills": ["./skills/", "./commands/"] +} \ No newline at end of file diff --git a/plugin.json b/plugin.json deleted file mode 100644 index 2f79b85..0000000 --- a/plugin.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "name": "core", - "version": "1.0.0", - "description": "Host UK unified framework - Go CLI, PHP framework, multi-repo management", - "dependencies": [ - "superpowers@claude-plugins-official" - ], - "skills": [ - { - "name": "core", - "path": "skills/core.md", - "description": "Use when working in host-uk repositories. Provides core CLI command reference." - }, - { - "name": "core-php", - "path": "skills/php.md", - "description": "Use when creating PHP modules, services, or actions in core-* packages." - }, - { - "name": "core-go", - "path": "skills/go.md", - "description": "Use when creating Go packages or extending the core CLI." - } - ], - "commands": [ - { - "name": "remember", - "path": "commands/remember.md", - "description": "Save a fact or decision to context" - } - ], - "hooks": { - "SessionStart": [ - { - "matcher": "*", - "script": "scripts/session-start.sh", - "description": "Check for recent session state on startup" - } - ], - "PreCompact": [ - { - "matcher": "*", - "script": "scripts/pre-compact.sh", - "description": "Save state before auto-compact to prevent amnesia" - } - ], - "PreToolUse": [ - { - "matcher": "Bash", - "script": "hooks/prefer-core.sh", - "description": "Suggest core CLI instead of raw go/php commands" - }, - { - "matcher": "Write", - "script": "scripts/block-docs.sh", - "description": "Block random .md files, keep docs consolidated" - }, - { - "matcher": "Edit", - "script": "scripts/suggest-compact.sh", - "description": "Suggest /compact at logical intervals" - }, - { - "matcher": "Write", - "script": "scripts/suggest-compact.sh", - "description": "Suggest /compact at logical intervals" - } - ], - "PostToolUse": [ - { - "matcher": "Edit", - "script": "scripts/php-format.sh", - "description": "Auto-format PHP files after edits" - }, - { - "matcher": "Edit", - "script": "scripts/go-format.sh", - "description": "Auto-format Go files after edits" - }, - { - "matcher": "Edit", - "script": "scripts/check-debug.sh", - "description": "Warn about debug statements (dd, dump, fmt.Println)" - }, - { - "matcher": "Bash", - "script": "scripts/pr-created.sh", - "description": "Log PR URL after creation" - }, - { - "matcher": "Bash", - "script": "scripts/extract-actionables.sh", - "description": "Extract actionables from core CLI output" - }, - { - "matcher": "Bash", - "script": "scripts/post-commit-check.sh", - "description": "Warn about uncommitted work after git commit" - } - ] - } -}