api-types

api-types is a cursor rule for Cursor from kubev2v/forklift-console-plugin. It costs 28 tokens per session (7,884 once invoked), scanned A, original, Apache-2.0.

A set of rules describing Forklift’s Kubernetes resource definitions. These resources represent migration objects such as providers, plans, migrations, network maps, storage maps, hooks, and hosts.

In plain words
What is it for?
Use it when working on custom resource definitions, resource specifications, status updates, migration phases, or condition handling.
Why use it?
It gives developers the exact concepts, fields, statuses, and conditions needed to change or review Forklift API code correctly.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when working on custom resource definitions, resource specifications, status updates, migration phases, or condition handling.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/api-types
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Wrote 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.

agentmods badge for api-types

README.md
[![agentmods](https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/api-types/github.svg)](https://agentmods.dev/rules/kubev2v/forklift-console-plugin/api-types)
Your own site
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/api-types"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/api-types/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-types

Your own site · 80×15
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/api-types"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/api-types.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.07884
Opus 5.5 $0.00011 $0.03154
Sonnet 5.5 $0.00006 $0.01577
Haiku 4.5 $0.00003 $0.00788

Measured 29d ago against content hash 01d1a48bff42, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-types 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 29d 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.

.cursor/rules/backend/api-types.mdc · 677 lines

How it starts

The opening of the file, as written. The whole thing — 677 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Types (CRD Definitions)

Analyzed from commit: baf9c7bcc on 2026-09-17 Source paths: pkg/apis/forklift/v1beta1/, pkg/lib/condition/, pkg/controller/plan/migrator/base/ (pipeline step names)

Package Purpose

Package v1beta1 (forklift.konveyor.io/v1beta1) defines all Forklift CRDs. The SchemeGroupVersion is forklift.konveyor.io/v1beta1. All CRD types embed meta.TypeMeta + meta.ObjectMeta and follow the standard Spec/Status pattern. Every Status struct embeds libcnd.Conditions for the shared condition framework. Controllers populate transient Referenced fields (json "-") during validation to hold resolved Provider, Map, Hook, and Secret objects.


Key Types and Structs

Provider (provider.go)

Represents a source or target infrastructure connection.

ProviderSpec {
  Type           *ProviderType            // required
  URL            string                   // empty for "host" (local) OpenShift provider
  Secret         core.ObjectReference     // credentials secret
  Settings       map[string]string        // VDDK, SDK endpoint, vCenter, ESXi, target-az, etc.
}
ProviderStatus {
  Phase                 string             // free-form (Ready, Staging, ValidationFailed, ConnectionFailed)
  Conditions            libcnd.Conditions
  ObservedGeneration    int64
  Fingerprint           string
  Service               *core.ObjectReference
  SecretResourceVersion string             // detects credential rotation
}

ProviderType enum (provider.go):

Constant Value UI support
OpenShift openshift Target + source
VSphere vsphere Source
OVirt ovirt Source
OpenStack openstack Source
Ova ova Source
EC2 ec2 Source (tech preview; AWS platform only)
HyperV hyperv Source (tech preview)
Nutanix nutanix Source (dev preview in UI)
Azure azure Backend only (not in console plugin yet)
Undefined "" —

Read the full file on GitHub · 677 lines

Changes

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.

  1. 29d ago Changed · +277 lines · +2 tokens per session 01d1a48bff42
  2. 1mo ago First seen · 400 lines · 26 tokens per session scan A 8ad352e73ac7

Subscribe to this mod's changes

api-types is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed today), licensed Apache-2.0. It adds 28 tokens to every session and 7,884 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.