Freecad Model Validation logo

Freecad Model Validation

Community
Milkdomeda
freecad-model-validation

Validate AI-created or modified FreeCAD FCStd parts and assemblies and STEP/STP standard components through the configured FreeCAD MCP connection. Use after CAD creation, visible geometry changes, STEP.parts downloads or imports, assembly placement changes, standard-part substitutions, or before reporting a FreeCAD model complete. Produces strict JSON, Markdown, and PNG evidence without build123d or CadQuery.

Overview

PublisherMilkdomeda
Repositoryai-mechanical-3dcad-design-agent
Skill namefreecad-model-validation
Stars
51
Forks
10
Bundled files
3
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Milkdomeda on GitHub. Read the source before you install it.

Installation

Install the Freecad Model Validation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Milkdomeda/ai-mechanical-3dcad-design-agent/tree/main/.agents/skills/freecad-model-validation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Milkdomeda/ai-mechanical-3dcad-design-agent.git /tmp/ai-mechanical-3dcad-design-agent
mkdir -p .claude/skills
cp -r /tmp/ai-mechanical-3dcad-design-agent/.agents/skills/freecad-model-validation .claude/skills/freecad-model-validation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Freecad Model Validation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Freecad Model Validation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Freecad Model Validation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

FreeCAD Model Validation

Use FreeCAD and its bundled Part/OCCT geometry kernel as the only validation engine. Treat FCStd as the source of truth for designed parts and assemblies; use STEP validation primarily for downloaded standard components and deliberate exports.

Required workflow

For a generated FEM analysis document, use the mechanical-fea workflow and its registered native GUI/field/archive checks. Do not reopen a persistent FEM FCStd through this generic geometry validator: FEM Python proxies require the separate safe BREP/UNV/validated-field reconstruction boundary. Continue to validate the controlled CAD source with this skill independently. Geometry validation does not establish numerical convergence, equilibrium, material suitability or engineering acceptance.

  1. Call list_documents to confirm the FreeCAD MCP bridge. Keep remote_enabled false.

  2. Read references/validation-spec.md, then create an explicit specification. Every numeric requirement must include a tolerance; never invent manufacturing tolerances. Add the mandatory installation contract to every fastener object and controlled-overlap metadata to every compressible component.

  3. Load scripts/freecad_model_validation.py inside FreeCAD with execute_code and call one or both interfaces:

    python
    validate_fcstd(model_path, specification, report_dir)
    validate_step(step_path, manifest_path, specification, report_dir)
  4. Inspect the returned report. For FCStd, the JSON must contain the exact working_sha256, a complete automatically detected fastener_inventory, and summary.fasteners_detected equal to that inventory length. Mandatory failures or a missing report-contract field block completion. Repair the model and rerun, or report it as failed/blocked.

  5. Use get_view on the active model and inspect the saved <stem>_validation.png. Geometry checks passing never replaces visual review.

  6. Report only checks that actually ran and link the generated JSON, Markdown, and PNG artifacts.

Validation policy

  • Check document recompute, object state, required objects and links, shape validity, solid count, positive volume, dimensions, placements, standard-part provenance, and BOM agreement.
  • Automatically detect every fastener and fail if any fastener lacks its installation contract. Validate the complete set combination, coaxial placement, hole-axis match, axial position, clearance-hole containment, threaded-hole classification, bearing contact, and host interference. These checks are mandatory and do not depend on hand-written interference_pairs.
  • Treat the model-detected fastener_inventory as authoritative for assembly validation. An assembly consumer must use one passed report with the exact same-revision FCStd SHA-256 and prove equality between that inventory and its exactly-once fastened-joint assignments. It must fail omitted, duplicate, or unknown occurrences and must not reconstruct a smaller inventory from a hand-authored manifest.
  • Treat a seal or other compressible component as overlap-capable only when it is marked IsCompressible and every permitted mate appears in compressible_overlap_pairs with a numeric maximum common volume. Never use the compressible exception for rigid parts or undeclared mates.
  • Outside the automatic fastener gate and controlled compressible pairs, check interference only for pairs declared in the specification. Each pair must provide max_common_volume_mm3; intentional contact without volume is acceptable.
  • For STEP assets, require a matching SHA-256 manifest and one supported provenance profile: step_parts, manufacturer_official, or verified_local_catalog. Preserve truthful provider/manufacturer identity; never relabel a manufacturer or local-catalog file as STEP.parts. Import into a temporary FreeCAD document, validate, save evidence, and close the temporary document without changing the source file.
  • Do not silently heal, replace, overwrite, or remodel invalid input.
  • Do not use build123d, CadQuery, cadpy, or the browser CAD Viewer. FreeCAD MCP, FreeCAD Python, Part/OCCT, and get_view are authoritative for this workflow.
  • A passed report is geometry and provenance evidence, not engineering certification, load validation, manufacturability approval, or legal standards certification.

Strict gate

The model is complete only when the report status is passed, its FCStd hash and fastener inventory contract are present, and the visual review finds no unexplained geometry. A failed checksum, missing required metadata, invalid or empty shape, failed dimension, missing required link, failed fastener installation check, invalid compressible-overlap declaration, failed declared interference check, stale hash, incomplete fastener inventory, or missing validation artifact, unknown STEP provenance profile, incomplete source/copy identity, or false provider attribution is blocking.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Freecad Model Validation AI skill do?

Validate AI-created or modified FreeCAD FCStd parts and assemblies and STEP/STP standard components through the configured FreeCAD MCP connection. Use after CAD creation, visible geometry changes, STEP.parts downloads or imports, assembly placement changes, standard-part substitutions, or before reporting a FreeCAD model complete. Produces strict JSON, Markdown, and PNG evidence without build123d or CadQuery.

Why use Freecad Model Validation on TypingMind?

Because you install it once and use it with any model. Freecad Model Validation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Freecad Model Validation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Milkdomeda/ai-mechanical-3dcad-design-agent/tree/main/.agents/skills/freecad-model-validation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Freecad Model Validation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Freecad Model Validation?

As many as you like. As long as a model supports skills, you can use Freecad Model Validation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Freecad Model Validation AI skill free?

Yes. It is published on GitHub by Milkdomeda under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇