project-context

A project guide explaining Forklift, an OpenShift Console plugin that moves virtual machines from systems such as VMware or AWS to OpenShift Virtualization. It documents the project's technologies and Kubernetes resource types.

In plain words
What is it for?
It helps developers build or maintain the plugin's React and TypeScript interface, use the supported migration resource types, and follow its testing and component standards.
Why use it?
It gives developers the domain context needed to understand terms such as providers, migrations, virtual machines, and custom resources. It also records the project's coding and testing conventions.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/project-context
Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Per session 2,121 This file is loaded in full into every session.
When invoked 2,121 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02121 $0.02121
Opus 5 $0.01060 $0.01060
Sonnet 5 $0.00424 $0.00424
Haiku 4.5 $0.00212 $0.00212

Measured 2d ago against content hash a2f5ebfdefec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-context 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 2d 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/project-context.mdc · 171 lines

How it starts

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

Forklift Console Plugin - Domain Context

For coding standards, conventions, and development commands, see AGENTS.md at the project root.

This rule provides Forklift-specific domain knowledge not covered there.


What Is Forklift

Forklift (Migration Toolkit for Virtualization) migrates virtual machines from external providers to OpenShift Virtualization (KubeVirt). This plugin is an OpenShift Console dynamic plugin providing the web UI.

Tech Stack

  • React 17 with TypeScript (strict mode)
  • PatternFly 6 for UI components
  • i18next for internationalization
  • react-hook-form for form handling
  • Jest for unit testing, Playwright for E2E
  • Webpack for bundling
  • npm as package manager

Core CRDs

All CRDs belong to group forklift.konveyor.io, version v1beta1. Types are imported from @forklift-ui/types.

Provider

Represents a source or target infrastructure connection.

  • Source types: vsphere (VMware), ovirt (RHV), openstack, ova (file uploads), hyperv (Hyper-V), ec2 (AWS EC2 -- available on AWS-platform clusters only, gated by useClusterIsAwsPlatform)
  • Target type: openshift (OpenShift Virtualization)
  • Tech Preview providers (ec2, hyperv): Use isTechPreviewProvider() from src/providers/utils/constants.ts and show TechPreviewLabel from @components/PreviewLabels/TechPreviewLabel wherever the provider type or a tech-preview feature is surfaced (provider list/create, hooks, scripts, deep inspection modal).
  • Backend phases (Go controller): Ready, Staging, ValidationFailed, ConnectionFailed
  • Frontend additions (UI enum in src/utils/types.ts): ApplianceManagementEnabled, Unknown
  • Manages credentials, inventory discovery, default transfer network

Plan

Defines a migration plan selecting VMs and their mappings.

  • Migration types: Cold (power off), Warm (incremental with cutover), Live, Conversion
  • Backend conditions (Go controller): Ready, Executing, Succeeded, Failed
  • Frontend statuses (UI enum in src/plans/details/components/PlanStatus/utils/types.ts): Ready, Executing, Completed, Paused, Incomplete, CannotStart, Canceled, Archived, Unknown
  • References NetworkMap, StorageMap, and optional Hooks
  • Specifies target namespace and power state settings

Read the full file on GitHub · 171 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. 2d ago First seen · 171 lines · 2,121 tokens per session scan A a2f5ebfdefec

Subscribe to this mod's changes

project-context is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed 3d ago), licensed Apache-2.0. It adds 2,121 tokens to every session, about $0.0106 per session on Opus 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.