# Cosmic Platform Baseline

Cosmic is the shared platform base for Cangqiong, Xinghan, and Xingkong Flagship. Treat these as Cosmic-family Java products unless a product-specific rule overrides the platform baseline.

## Product Routing

- Cangqiong, Xinghan, and Xingkong Flagship use the Cosmic Java plugin and SDK model.
- Enterprise is not Cosmic-family; it uses a separate C# stack and must not receive Java plugin assumptions.
- `cosmic` by itself means the platform/base layer, not a final business product selection.
- Before coding, identify the concrete product, version, form/bill/entity, plugin type, lifecycle event, and target fields.

## Development Flow

- Run Cosmic configuration precheck before relying on official query scripts.
- Use "wrapper first, native fallback": prefer project or official encapsulations when available; use native SDK only after checking references or query scripts.
- Translate natural language into timing, carrier, and capability before choosing implementation type.
- Generate code only after plugin type, event method, field metadata, enum values, and API signatures are verified.
- After changing Cosmic Java code, run the official post-check flow when the official skill/scripts are available.

## Required Verification

- Field keys, Chinese field names, enum values, `refType`, and entity IDs must be verified through metadata before code generation.
- API class names and method signatures must be verified unless covered by an approved cheat sheet.
- Base data queries require a verified `entityId`; do not infer it from display names.
- Query scripts can fail or run in cache-only mode; do not continue if the missing result is a prerequisite for the code.

## Useful Official Skill Sources

- `E:\projects\kingdee\skills\ok-cosmic-v4.0.0.zip`
- `E:\projects\kingdee\skills\kingdee-cosmic-reviewer-v2.0.0.zip`
- `E:\projects\kingdee\skills\cosmic-unittest-v2.0.0.zip`
- `E:\projects\kingdee\skills\ok-ksql-v1.0.0.zip`
