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 <noreply@anthropic.com>
This commit is contained in:
parent
f3b16c108a
commit
6e168662b9
2 changed files with 21 additions and 102 deletions
21
.claude-plugin/plugin.json
Normal file
21
.claude-plugin/plugin.json
Normal file
|
|
@ -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/"]
|
||||||
|
}
|
||||||
102
plugin.json
102
plugin.json
|
|
@ -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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in a new issue