Implements a new `/core:migrate` command to provide a set of helpers for working with Laravel migrations in a monorepo environment. The new command includes the following subcommands: - `/core:migrate create <name>`: Creates a new migration file. - `/core:migrate run`: Runs all pending migrations. - `/core:migrate rollback`: Rolls back the last migration. - `/core:migrate fresh`: Drops all tables and re-runs all migrations. - `/core:migrate status`: Shows the status of all migrations. - `/core:migrate from-model <ModelName>`: Generates a new migration by analyzing an existing Laravel model. Key Features: - **Smart Migration Generation**: The `from-model` command uses a robust PHP script with Reflection to accurately parse model properties and relationships, generating a complete schema definition. - **Multi-Tenant Awareness**: New migrations automatically include a `workspace_id` foreign key to support multi-tenant architectures. - **Module Support**: The `create` and `from-model` commands accept `--path` and `--model-path` arguments, allowing them to be used with different modules in a monorepo. - **Automatic Indexing**: The `from-model` command automatically adds database indexes to foreign key columns.
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
"name": "core-agent",
|
|
"description": "Host UK Claude Code plugin collection",
|
|
"owner": {
|
|
"name": "Host UK",
|
|
"email": "hello@host.uk.com"
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "core",
|
|
"source": "./claude/core",
|
|
"description": "Core commands for project maintenance.",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "code",
|
|
"source": "./claude/code",
|
|
"description": "Core development plugin - hooks, formatting, autonomous workflows",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "collect",
|
|
"source": "./claude/collect",
|
|
"description": "Data collection via Borg CLI - /collect:github, /collect:website, /collect:excavate, /collect:papers",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "review",
|
|
"source": "./claude/review",
|
|
"description": "Code review automation - PR review, security checks",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "verify",
|
|
"source": "./claude/verify",
|
|
"description": "Work verification - ensure tests pass, no debug statements",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "qa",
|
|
"source": "./claude/qa",
|
|
"description": "Quality assurance - iterative fix loops, lint enforcement",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "ci",
|
|
"source": "./claude/ci",
|
|
"description": "CI integration - GitHub Actions, test automation",
|
|
"version": "0.1.0"
|
|
},
|
|
{
|
|
"name": "core",
|
|
"source": "./claude/core",
|
|
"description": "Laravel migration helpers for the Host UK monorepo",
|
|
"name": "perf",
|
|
"source": "./claude/perf",
|
|
"description": "Performance profiling helpers for Go and PHP.",
|
|
"name": "core",
|
|
"source": "./claude/core",
|
|
"description": "Core functionality - release management",
|
|
"name": "issue",
|
|
"source": "./claude/issue",
|
|
"description": "Integration with GitHub Issues",
|
|
"version": "0.1.0"
|
|
}
|
|
]
|
|
}
|