Core plugin providing: - Skills: core CLI reference, PHP patterns, Go patterns - Commands: /core:remember for context persistence - Hooks: - PreToolUse: block dangerous commands (rm -rf, sed -i, grep -l |) - PreToolUse: enforce core CLI over raw go/php commands - PostToolUse: auto-format Go/PHP, check for debug statements - PostToolUse: warn about uncommitted work after git commit - PreCompact: save state to prevent amnesia after auto-compact - SessionStart: restore context from recent sessions (<3h) - MCP: core CLI server integration Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
109 lines
2.9 KiB
JSON
109 lines
2.9 KiB
JSON
{
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
"mcp": {
|
|
"core": {
|
|
"command": "core",
|
|
"args": ["mcp", "serve"],
|
|
"description": "Core CLI MCP server for multi-repo operations"
|
|
}
|
|
}
|
|
}
|