一键导入
object-map
Work on Luxury Yacht object-map data, missing resource kinds, graph relationships, layout, renderer behavior, legend, debug snapshots, and tests
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Work on Luxury Yacht object-map data, missing resource kinds, graph relationships, layout, renderer behavior, legend, debug snapshots, and tests
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when wanting to systematically improve the React/TypeScript frontend - scans for security vulnerabilities, stability risks, performance issues, and code simplification opportunities, then presents 5 ranked findings for the user to choose from
Add support for a Kubernetes resource type by choosing the required catalog, refresh, detail, object-map, permission, frontend, docs, and test surfaces
Guide for safely modifying the refresh/streaming subsystem — covers the full domain lifecycle, registration points, and known fragility areas
Use when eliminating representable-but-invalid states in Luxury Yacht — converting boolean flag-soup to discriminated unions, making required identity fields non-optional, replacing stringly-typed states with literal/typed enums, and pushing scattered runtime guards into the type system or a single chokepoint. Triggers — "make impossible states impossible", flag soup (isLoading/isError/isEmpty), contradictory nullable fields, kind-only/name-only object refs, stringly-typed status, or the docs/todo.md item of the same name.
Work on Luxury Yacht object-panel details, YAML, actions, logs, shell/debug tabs, docked panels, related objects, and tests
Use for large-scale structural Luxury Yacht app reviews that audit broad systems or cross-cutting concerns, identify major simplification, hardening, optimization, or refactoring opportunities, and optionally write temporary phased plans in docs/plans
| name | object-map |
| description | Work on Luxury Yacht object-map data, missing resource kinds, graph relationships, layout, renderer behavior, legend, debug snapshots, and tests |
Use this when touching object-map backend graph data, supported kinds, relationship edges, frontend model/layout/rendering, legend/copy, debug snapshots, or object-map tests.
Object map is a scoped refresh snapshot domain named object-map.
It is not a rich detail service and not an SSE/resource-stream path. The backend snapshot builds graph data; the frontend filters, annotates, lays out, and renders that graph.
Read:
AGENTS.mdbackend/AGENTS.md for backend changesfrontend/AGENTS.md for frontend changesdocs/workflows/object-map.mddocs/architecture/shared-resource-model.md when identity, status, facts,
or relationships are involveddocs/architecture/refresh-system.md when domain registration, scopes, or
diagnostics are involveddocs/frontend/live-age.md when changing card age textStart here for graph/data correctness:
backend/refresh/snapshot/object_map.go plus the per-kind collectors/edges in
backend/resources/<kind>/objectmap*.go, dispatched via
backend/refresh/snapshot/object_map_collector_registry.go and
object_map_edge_registry.gobackend/refresh/system/registrations.gobackend/resourcemodel for shared facts, status, identity, and linksbackend/refresh/snapshot/object_map_test.go or adjacent object-map testsBackend object-map work often needs:
clusterId, group, version, kind, and
concrete namespace/name when openable.For Gateway API fake-client tests, explicit list reactors may be required. Use
gatewayfake.NewClientset() rather than deprecated constructors.
Start here for visible behavior:
frontend/src/modules/object-panel/components/ObjectPanel/objectMapSupport.tsfrontend/src/modules/object-map/ObjectMap.tsxfrontend/src/modules/object-map/useObjectMapModel.tsfrontend/src/modules/object-map/objectMapLayout.tsfrontend/src/modules/object-map/objectMapVisibleState.tsfrontend/src/modules/object-map/ObjectMapG6Renderer.tsxfrontend/src/modules/object-map/objectMapEdgeStyle.tsfrontend/src/modules/object-map/objectMapDebugStore.tsfrontend/src/modules/object-map/ObjectMap.cssFrontend object-map work often needs:
Do not fix missing data by frontend-only labels or renderer patches when the backend graph is missing nodes, refs, or edges.
For missing kinds or missing links:
docs/workflows/object-map.md if supported kinds, edge semantics, or
user-facing behavior changed.For visual-only renderer work:
mage qc:prerelease.Use focused checks while iterating:
go test ./backend/refresh/snapshot -run ObjectMap
npm run test --prefix frontend -- object-map
npm run typecheck --prefix frontend
Then run the final gate for non-documentation work:
mage qc:prerelease