forgecad-reconstruct-cad-file

Reconstructs parametric ForgeCAD models from STL, OBJ, 3MF, STEP, and STP files.

927|103|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/KoStard/forgecad-public-kit --skill forgecad-reconstruct-cad-file
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forgecad-reconstruct-cad-file
Source: https://github.com/KoStard/forgecad-public-kit/tree/main/skills/forgecad-reconstruct-cad-file
Command: npx skills add https://github.com/KoStard/forgecad-public-kit --skill forgecad-reconstruct-cad-file

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Existing CAD and mesh files are opaque geometry that cannot be edited parametrically. This Skill rebuilds them as readable, parametric .forge.js models that run, render, and score numerically against the original source.

Core Features & Use Cases

  • Multi-format source inspection: Reads STL, OBJ, 3MF, STEP, and STP files directly through the ForgeCAD CLI, gathering stats, iso renders, per-object views, and sampled sections as evidence.
  • Iterative reconstruction loop: Guides blockout-first modeling with blueprint-first APIs, then compares candidates numerically via forgecad compare 3d with coverage, RMS, p95, bounds, and volume metrics.
  • Score diagnosis and calibration: Interprets alignment modes and metric signals to distinguish missing surfaces, proportional mismatch, and localized outliers, with calibrated score targets per part complexity.
  • Use Case: Given a legacy STL bracket, produce a parametric ForgeCAD model whose dimensions, holes, and fillets are editable parameters, verified by a 5000-sample comparison score against the source mesh.

Quick Start

Use the forgecad-reconstruct-cad-file skill to inspect this STEP file, rebuild it as a parametric ForgeCAD model, and score the result against the source.

Frequently Asked Questions about forgecad-reconstruct-cad-file

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert an STL file into a parametric CAD model?

Inspect the STL with the ForgeCAD CLI to gather stats, renders, and sections, then rebuild the geometry with blueprint-first parametric APIs in a .forge.js file. Iterate by running forgecad compare 3d against the source until coverage, RMS, and bounds metrics meet the target score.

What file formats can be reconstructed into ForgeCAD models?

The reconstruction workflow accepts STL, OBJ, 3MF, STEP, and STP files as source evidence. For 3MF files, every build item must be enumerated before scoring because hidden multi-part structure is a common miss.

Should I use Import.mesh or Import.step as the final reconstructed model?

No. Imports of the source file are for measurement, rendering, and scoring only, not the deliverable. The final model must be real parametric geometry built with blueprint-first APIs, unless the user explicitly asks for an import wrapper.

What is a good comparison score when reconstructing a CAD file?

Target 95 or higher for simple prismatic or revolved parts, 90 or higher for ordinary mechanical parts with fillets and cutouts, and 80 or above for organic or faceted sources. Always report raw RMS, p95, max, coverage, bounds delta, and volume delta alongside the overall score.

When should I use center-scale alignment in forgecad compare 3d?

Use --align center-scale only for exploratory diagnosis because it hides dimensional errors. Start with --align none, and use --align center only when origins clearly differ but scale and orientation match.

When is this reconstruction skill the wrong choice?

If the goal is to keep the source file as a live component and design around it, such as a bracket or enclosure, use the forgecad-build-model workflow instead. Prepared benchmark episodes and inspection-bundle interpretation also route to their own dedicated skills.