1.2 KiB
1.2 KiB
CAD Engine Skill
Purpose
Help an AI agent generate CAD models through the repository's CDSL engine.
Required workflow
- Read the engine README,
profile_schema.json,cdsl_schema.json, and the relevant engine modules.cdsl_schema.jsonis the executable CDSL input contract; its nested object and array shapes are mandatory. - Search the official CDSL library for similar parts, profiles, and feature sequences.
- Produce or revise parameterized CDSL.
- Validate that the CDSL can run through the
cdsl_onlypath. - Compile the CDSL and generate a STEP file.
- Return the generated artifact, validation result, and library references.
Hard constraints
- Prefer named profiles and discrete semantic parameters over raw coordinates.
- Do not use
compiler_contextas the final source of missing training data. - Keep the generated CDSL self-sufficient whenever the supported shape generators can express the geometry.
- Use only the feature operations, profile types, parameter names, and nested
value shapes in
cdsl_schema.json. In particular, hole positions must be objects such as{"mm": [u_mm, v_mm, w_mm]}, never bare coordinate arrays. - Preserve the original CDSL and write revisions as separate artifacts.