Freecad Model Validationのロゴ

Freecad Model Validation

コミュニティ
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.

概要

公開者Milkdomeda
リポジトリai-mechanical-3dcad-design-agent
スキル名freecad-model-validation
スター
51
フォーク
10
同梱ファイル
3
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    MilkdomedaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Freecad Model Validation」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Milkdomeda/ai-mechanical-3dcad-design-agent/tree/main/.agents/skills/freecad-model-validation
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFreecad Model Validationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にFreecad Model Validationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Freecad Model Validationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでFreecad Model Validationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Freecad Model Validationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFreecad Model Validationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Milkdomeda/ai-mechanical-3dcad-design-agent/tree/main/.agents/skills/freecad-model-validationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Freecad Model Validationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Freecad Model Validationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFreecad Model Validationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Freecad Model Validation」は無料ですか?

はい。MilkdomedaがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇