Vibeflow freecad

From sunrise-hjx/vibeFlow-skills · View interactive version

Vibeflow freecad is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when creating, editing, validating, importing, exporting, or developing VibeFlow/VibeCAE geometry workflows with FreeCAD or FreeCADCmd, including interactive CAD handoff, scripted parametric CAD, STEP/STL/FCStd exchange, geometry repair, FreeCAD macro/workbench development, and traceability back

How to use this skill

Skill file

VibeFlow FreeCAD

This skill is responsible for using FreeCAD as the geometry modeling and CAD exchange backend for VibeCAE. It covers both usage mode and development mode.

When to Use

First Decide: Usage Mode or Development Mode

What to Read First

Inputs

Outputs

Recommended Structure

A-geo/
├── freecad.py
├── model.FCStd
├── imports/
├── exports/
├── logs/
├── preview/
├── geometry_manifest.json
└── geometry_validation.md

Usage Mode Workflow

  1. Read geometry objectives, units, dimensional parameters, regions, boundary naming, and export requirements from caseDict.
  2. Confirm that FreeCAD is the currently selected geometry backend; if not, do not bypass the existing CadQuery/Gmsh workflow.
  3. Write or update A-geo/freecad.py so it can run headlessly.
  4. Execute the script with FreeCADCmd and output FCStd plus exchange files.
  5. Perform basic validation on exported files: existence, body/face counts, boundary names, units, closure, and re-import.
  6. Write artifacts, assumptions, failures, and repair records back to the geometry status or error records in caseDict.
  7. If the geometry is mesh-ready, hand it to the mesh skill; if geometry ambiguity remains, return to case-dict or user clarification.

Development Mode Workflow

  1. Define the development target: macro, script library, import/export adapter, workbench, Studio invocation bridge, or geometry repair tool.
  2. Write development notes first, recording the FreeCAD version, module dependencies, API entry points, run method, and validation examples.
  3. Keep scripts capable of running headlessly, and avoid depending only on GUI interaction state.
  4. Pass paths from the case root, environment variables, or script arguments; do not hard-code local machine paths.
  5. Smoke-test import/export behavior, validating at least one simple solid and one target-case solid.
  6. If the development result becomes a reusable capability, place it under UDF/ or the corresponding Studio module; the current case should record only the invocation method and artifacts.

Core Rules

Validation

Fallback Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.