plans

A project guide for the Plan pages of an OpenShift Console plugin. The pages list, create, and show details for migration plans, which describe moving virtual machines between infrastructure providers.

In plain words
What is it for?
It helps developers work on plan lists, plan creation, plan details, navigation, access checks, table fields, and migration data displayed in the console.
Why use it?
It gives developers a map of how the pages are registered, composed, and connected to Kubernetes resources. It reduces the need to infer the structure from many React and TypeScript files.

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/plans
Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,898 The whole file, excluding the scripts and references it only reads on demand.
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.00016 $0.03898
Opus 5 $0.00008 $0.01949
Sonnet 5 $0.00003 $0.00780
Haiku 4.5 $0.00002 $0.00390

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

Security

Grade A, and why

plans 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/frontend/plans.mdc · 310 lines

How it starts

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

Plan Pages

Analyzed on 2026-05-29 — ~240 .tsx files, the largest feature in the plugin.


Plugin Registration (dynamic-plugin.ts)

Exposes three modules to the Console SDK:

Extension type Module Component
console.navigation/resource-ns Nav items (admin + virt perspectives)
console.page/resource/list PlansListPage PlansListPage
console.page/resource/details PlanDetailsNav PlanDetailsNav
console.resource/create PlanCreatePage PlanCreatePage

All use PlanModelGroupVersionKind from @forklift-ui/types.


Page Composition

1. List Page — PlansListPage

PlansListPage
├── LearningExperienceDrawer
└── StandardPage                      ← shared, data-driven table
    ├── PlansAddButton                ← gated by useGetDeleteAndEditAccessReview
    ├── PlansEmptyState
    └── PlanRow (per row)
        └── usePlanListRowFields      ← renders each column cell

Data source: useK8sWatchResource<V1beta1Plan[]> (list, namespaced).

Table columns (defined in planFields): Name, Project, Source provider, Target project, Virtual machines count, Migration status, Migration type, Migration started, Description, Actions. Plus a hidden "Archived" slider filter.

Post-filter: Archived plans are hidden by default; toggling the "Show archived" slider includes them.

2. Create Page — PlanCreatePageCreatePlanWizard

PlanCreatePage
├── LearningExperienceDrawer
├── Title ("Create migration plan")
└── CreatePlanWizard
    ├── FormProvider (react-hook-form)
    ├── CreatePlanWizardContextProvider
    └── CreatePlanWizardInner          ← PF6 Wizard shell
        ├── WizardStep (Basic setup)   ← expandable parent
        │   ├── GeneralInformationStep
        │   ├── VirtualMachinesStep
        │   ├── NetworkMapStep
        │   ├── StorageMapStep
        │   └── MigrationTypeStep      ← conditionally hidden
        ├── WizardStep (Additional setup) ← expandable parent
        │   ├── OtherSettingsStep
        │   ├── CustomScriptsStep
        │   └── HooksStep
        └── WizardStep (Review and create)
            └── ReviewStep

Read the full file on GitHub · 310 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 · 310 lines · 16 tokens per session scan A d919c2791f45

Subscribe to this mod's changes

plans 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 16 tokens to every session and 3,898 once invoked, about $0.0001 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.