Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/openshift-online/agent-control-planenpx agentmods add commands/openshift-online/agent-control-plane/trex.kind.newWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/openshift-online/agent-control-plane/trex.kind.new)<a href="https://agentmods.dev/commands/openshift-online/agent-control-plane/trex.kind.new"><img src="https://agentmods.dev/badge/commands/openshift-online/agent-control-plane/trex.kind.new.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00730 |
| Opus 5 | $0.00000 | $0.00365 |
| Sonnet 5 | $0.00000 | $0.00146 |
| Haiku 4.5 | $0.00000 | $0.00073 |
Grade A, and why
trex.kind.new scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to trex.kind.new — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate a New Kind
Generate a complete CRUD entity (Kind) using the automated generator script.
Instructions
Use the TodoWrite tool to track progress.
Step 1: Gather Requirements
Ask the user for:
- Kind name (singular, PascalCase): e.g., "Widget", "Rocket", "Customer"
- Fields beyond the base Meta fields (optional):
- Name (use snake_case): e.g., "fuel_type", "max_speed"
- Type:
string,int,int64,bool,float64,time - Nullability:
:requiredor:optional(default: nullable)
Step 2: Run the Generator
go run ./scripts/generator.go --kind {KindName}
With custom fields:
go run ./scripts/generator.go --kind {KindName} --fields "{field1}:{type1}:{nullability},{field2}:{type2}"
Example:
go run ./scripts/generator.go --kind Rocket --fields "name:string:required,fuel_type:string,max_speed:int"
The generator automatically:
- Creates 11 new files (plugin, model, DAO, mock, service, presenters, handlers, migration, OpenAPI spec, test factory, integration tests)
- Modifies 3 existing files (
cmd/ambient-api-server/main.go,pkg/db/migrations/migration_structs.go,openapi/openapi.yaml) - Runs
make generateto regenerate the OpenAPI client - Formats all Go files with
gofmt
Step 3: Build and Verify
make binary
Fix any compilation errors if they occur.
Step 4: Test
make test-integration
Or run just the new Kind's tests:
TESTFLAGS="-run Test{Kind}" make test-integration
Field Type Reference
| User Type | Go (required) | Go (nullable) | OpenAPI type | OpenAPI format | DB Type |
|---|---|---|---|---|---|
| string | string |
*string |
string | varchar | |
| int | int |
*int |
integer | int32 | integer |
| int64 | int64 |
*int64 |
integer | int64 | bigint |
| bool | bool |
*bool |
boolean | boolean | |
| float64 | float64 |
*float64 |
number | double | float8 |
| time | time.Time |
*time.Time |
string | date-time | timestamptz |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 86 lines · 0 tokens per session scan A 831f0db5cbd2
trex.kind.new is a command published in the GitHub repository openshift-online/agent-control-plane (11 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 730 tokens. A static security scan graded it A with 0 findings. It is 100% identical to trex.kind.new, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
contract-version-bump
Classify and apply a version bump to a machine-readable contract (JSON Schema, API spec, config schema) — version literals, consumer compatibility, changelog entry, downstream drift.
auth-flow
Design authentication and authorization flow. Usage: /mindforge:auth-flow [--type oauth2|session|jwt] [--mfa] [--authz rbac|abac].
mindforge:cdn
Optimize CDN caching and invalidation strategy. Usage: /mindforge:cdn [service] [--target-hit-ratio 95%] [--multi-cdn] [--shield].
degrade
Design graceful degradation strategy with availability tiers. Usage - /mindforge:degrade [service] [--tiers 3] [--shed-at 80%].
mindforge:gaming
Design gaming backend architecture. Usage: /mindforge:gaming [feature] [--mode realtime|turn-based] [--scale small|massive].
graphql
Design GraphQL schema and resolver architecture. Usage - /mindforge:graphql [domain] [--style code-first|schema-first] [--federation].