yhz5613813/cadflow/cadflow-step-brep

Claude Code and agent skill by yhz5613813/cadflow

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Inspect STEP/BREP files, characterize geometry and topology, reverse engineer a readable CadFlow model, and compare a candidate against a target. Use for .step/.stp inputs, CAD inspection, feature inference, reconstruction, BREP validation, section analysis, and difference diagnosis. Do not modify the SDK or treat visual similarity alone as proof.

Install

npx vskill@latest install yhz5613813/cadflow/cadflow-step-brep

SKILL.md

CadFlow STEP/BREP Inspection and Reverse Engineering

Treat the STEP file as an input artifact to inspect, not as a script to copy. Use the diagnostic namespace outside modeling sessions:

python
from cadflow.inspect import brep

Read references/inspection-api.md for the exact functions and payload fields.

Choose the task

  • Inspect: summarize entities, bounds, volume, area, carrier types, and

topology without constructing a candidate.

  • Diagnose: localize differences with sections, entity comparisons,

boundary distances, material regions, or render maps.

  • Reconstruct: infer a readable feature sequence and write a new CadFlow

script that does not read the target STEP at runtime.

  • Compare: evaluate target and candidate using global properties first, then

strict material or BREP comparisons when the candidate is close enough.

Required workflow

  1. Record the target path, file hash, benchmark mode, units/coordinate

assumptions, and output directory.

  1. Run inspect_step_rsummary and record validity, body/shell counts, bounds,

volume, area, centroid, and surface/curve statistics.

  1. Inspect only the entities needed for the current hypothesis. Use stable

IDs such as face:0 and edge:0; they are deterministic for the same unchanged file but are not semantic IDs across different models.

  1. Establish openings, cavities, symmetry, repeated features, section planes,

and likely analytic carriers before choosing primitives or features.

  1. Reconstruct with public cadflow APIs. Use import cadflow as cad, keep

the final script independent of the target STEP, and expose inferred dimensions as named parameters.

  1. Replay the candidate independently and validate it before comparison.
  2. Compare cheaply first: global properties and bounded sections. Use material

difference with include_components=True and no fuzzy tolerance for an equality claim. Use strict BREP comparison only when explicitly required.

  1. Save reports, candidate source, replay payload, renders, and comparison

results under the output directory. State what was measured versus inferred.

Inspection boundary

  • BREP inspection is diagnostic and must not run inside GraphSession or an

@cad.model callback.

  • Do not import private engine modules or direct OCP types in the reconstruction

script.

  • Do not search outside the authorized target directory for prior solutions,

caches, deleted files, or another agent's output.

  • Do not embed, copy, or re-export target STEP contents into the candidate.

Evidence hierarchy

  1. Exact BREP topology identity is the strongest result.
  2. Strict bidirectional material equality proves the occupied point set matches,

even if feature histories differ.

  1. Matching volume, area, bounds, centroid, and sections are useful gates but

do not prove equality alone.

  1. Similar renders are diagnostic evidence only.

Never stop at “looks close” when a better feature order or supported operation could still be tested. If stopping with a structurally different candidate, record the exhausted hypothesis or unsupported operation that justifies it.

Failure handling

  • A timeout or fuzzy Boolean leaves equivalence unproved; it is not a pass.
  • A large global volume mismatch disproves equality cheaply; do not spend time

on strict difference computation first.

  • For a local mismatch, use inspect_section, compare_sections,

compare_boundary_distance, or render_region rather than rerunning every expensive comparison.

  • Preserve compact reports and hashes; do not paste huge control-point arrays

into the final narrative.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
61
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yhz5613813/cadflow/cadflow-step-brep/badge)](https://verified-skill.com/skills/yhz5613813/cadflow/cadflow-step-brep)

Something wrong with this skill or its page? Tell us.