go/plugin/skills/core.md
Snider a93cc3540a feat(plugin): add Claude Code plugin for host-uk framework
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>
2026-01-31 10:27:04 +00:00

1.5 KiB

name description
core Use when working in host-uk repositories, running tests, building, releasing, or managing multi-repo workflows. Provides the core CLI command reference.

Core CLI

The core command provides a unified interface for Go/PHP development and multi-repo management.

Rule: Always prefer core <command> over raw commands.

Quick Reference

Task Command
Go tests core go test
Go coverage core go cov
Go format core go fmt --fix
Go lint core go lint
PHP dev server core php dev
PHP tests core php test
PHP format core php fmt --fix
Build core build
Preview release core ci
Publish core ci --were-go-for-launch
Multi-repo status core dev health
Commit dirty repos core dev commit
Push repos core dev push

Decision Tree

Go project?
  tests: core go test
  format: core go fmt --fix
  build: core build

PHP project?
  dev: core php dev
  tests: core php test
  format: core php fmt --fix
  deploy: core php deploy

Multiple repos?
  status: core dev health
  commit: core dev commit
  push: core dev push

Common Mistakes

Wrong Right
go test ./... core go test
go build core build
php artisan serve core php dev
./vendor/bin/pest core php test
git status per repo core dev health

Run core --help or core <cmd> --help for full options.