jira.log
Log a new Jira issue to RHOAIENG with Team (Ambient team) and Component (Agentic) pre-filled.
Completely remove a generated Kind and all its artifacts from the project.
$ npx -y skills add ambient-code/platform --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/trex.kind.removeContext preview
What this command does when you run it.
Completely remove a generated Kind and all its artifacts from the project.
Completely remove a generated Kind and all its artifacts from the project.
Ask the user for the **Kind name** (PascalCase, e.g., "Widget").
Derive the naming variants (see `/trex.kind.new` for the full table):
Use the TodoWrite tool to track progress.
Check that the Kind's files exist before removing:
ls plugins/{kindLowerPlural}/plugin.go
ls pkg/api/{kind}.go
ls pkg/services/{kind}.goIf files don't exist, inform the user and stop.
Delete all files created by the generator:
rm -rf plugins/{kindLowerPlural}/
rm -f pkg/api/{kind}.go
rm -f pkg/api/presenters/{kind}.go
rm -f pkg/handlers/{kind}.go
rm -f pkg/services/{kind}.go
rm -f pkg/dao/{kind}.go
rm -f pkg/dao/mocks/{kind}.go
rm -f pkg/db/migrations/*_add_{kindLowerPlural}.go
rm -f openapi/openapi.{kindLowerPlural}.yaml
rm -f test/integration/{kindLowerPlural}_test.go
rm -f test/factories/{kindLowerPlural}.gorm -f pkg/api/openapi/model_{kind_snake_case}*.go
rm -f pkg/api/openapi/docs/{Kind}*.mdRemove the blank import line for the Kind's plugin.
Remove from `MigrationList`:
add{Kind}s(),Remove the path `$ref` entries for this Kind (both collection and item paths). Remove the schema `$ref` entries (`{Kind}`, `{Kind}List`, `{Kind}PatchRequest`).
make generate
This ensures the OpenAPI client code no longer references the removed Kind.
make binary
Fix any remaining references. Common issues:
List any files that still reference the Kind name:
rg "{Kind}" --type go --type yaml -lIf any remain, they need manual cleanup (likely cross-references from other Kinds).
Kubernetes-native AI automation platform for intelligent agentic sessions
Log a new Jira issue to RHOAIENG with Team (Ambient team) and Component (Agentic) pre-filled.
Start a fresh PostgreSQL container and run all migrations. If a database already exists, this will tear it down first.
Add a new field to an existing Kind, updating all layers consistently.
Generate a complete CRUD entity (Kind) using the automated generator script.
Regenerate the Go client code from OpenAPI specifications. Run this after modifying any `openapi/*.yaml` files.
Validate that this TRex-spawned project is in a healthy, working state. This command is idempotent — it succeeds if everything is…