jira.log
Log a new Jira issue to RHOAIENG with Team (Ambient team) and Component (Agentic) pre-filled.
Validate that this TRex-spawned project is in a healthy, working state. This command is idempotent — it succeeds if everything is already running and correct, and only fails if something is genuinely broken.
$ npx -y skills add ambient-code/platform --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/trex.project.initContext preview
What this command does when you run it.
Validate that this TRex-spawned project is in a healthy, working state. This command is idempotent — it succeeds if everything is already running and correct, and only fails if something is genuinely broken.
Validate that this TRex-spawned project is in a healthy, working state. This command is idempotent — it succeeds if everything is already running and correct, and only fails if something is genuinely broken.
Use the TodoWrite tool to track each phase as you work through it.
Scan all `.go`, `.yaml`, and `.md` files (skip `go.sum`) for template leftovers from the TRex scaffold. Flag any of the following:
| Pattern | Why It's Wrong | |---------|---------------| | `"My Service"` or `"My service"` | Placeholder title never renamed | | `"Dinosaur"` or `"dinosaur"` (outside go.mod/go.sum imports) | TRex example entity left behind | | `"rh-trex"` in description strings or comments (import paths are fine) | Template origin leaking into runtime | | `openshift-online-team@redhat.com` | Template default contact | | `api.openshift.com` or `api.stage.openshift.com` in server URLs | Template default servers | | `"template"` in code comments suggesting unfinished customization | Scaffold language not cleaned up | | `"placeholder"` in comments | Scaffold language not cleaned up | | Stub TODO comments (e.g., `// TODO: Add ... when needed`) in otherwise empty files | Empty scaffold files |
**Action**: Report every finding with file, line number, and the problematic text. Do NOT auto-fix — present the findings to the user and ask how they want each category handled (rename, remove, or keep).
go mod tidy
Verify no errors. If `go.sum` changes, that's fine — it means dependencies were stale.
make binary
This must succeed with zero errors. If it fails:
1. Check if the PostgreSQL container is already running:
docker ps --filter name=ambient-api-server-postgres --format "{{.Names}} {{.Status}}"2. **If running and healthy**: Skip to migration. Report: "Database already running."
3. **If exists but stopped**:
docker start ambient-api-server-postgres
4. **If does not exist**:
make db/setup
5. Wait for readiness (up to 15 seconds):
for i in $(seq 1 15); do
docker exec ambient-api-server-postgres pg_isready -U postgres && break
sleep 1
done6. Run migrations:
./ambient-api-server migrate
make test
All tests must pass. Report the test summary (pass count, fail count, elapsed time).
make test-integration
If the Makefile target says "not implemented", report that and skip — it's expected for a fresh project with no Kinds yet.
If integration tests exist and run, all must pass. Report the test summary.
Run static analysis:
go vet ./cmd/... ./pkg/...
Check formatting:
gofmt -l .
If `gofmt -l` produces output, files need formatting — report which ones.
Present a structured report:
=== TRex Project Init Report === Project: ambient-api-server Module: github.com/ambient/platform/components/ambient-api-server Go Version: (from go.mod) Naming Audit: X issues found (list categories) Dependencies: OK / FIXED / FAILED Build: OK / FAILED Database: RUNNING (was: already running | started | created) Migrations: OK / FAILED Unit Tests: X passed, Y failed Integration: X passed, Y failed / NOT CONFIGURED Code Quality: OK / X issues Overall: HEALTHY / NEEDS ATTENTION
If `Overall` is `NEEDS ATTENTION`, list each issue that requires user action.
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.
Completely remove a generated Kind and all its artifacts from the project.
Regenerate the Go client code from OpenAPI specifications. Run this after modifying any `openapi/*.yaml` files.