yhz5613813/cadflow/cadflow-model-part
Claude Code and agent skill by yhz5613813/cadflow
- community
Checking that the SKILL.md file is still in the repository.
Build, inspect, validate, and export a mechanical CAD part with CadFlow's public Python API. Use for dimensioned solids, sketches, profiles, holes, pockets, bosses, lofts, sweeps, blends, chamfers, transforms, and single-part STEP/STL deliverables. Do not use for static cloth or flexible-shell meshes; use cadflow-flexible-model instead.
Install
npx vskill@latest install yhz5613813/cadflow/cadflow-model-partSKILL.md
CadFlow Part Modeling
Build one reproducible mechanical part at a time. Use import cadflow as cad and the public Python frontend. Read references/public-api.md when a signature or operation boundary matters.
Select the modeling boundary
- Use
cad.Model()andcad.Shapefor the current session-oriented frontend
when writing ordinary part scripts.
- Use
GraphSession,@cad.model,cad.capture_result(), and the
make_*_r* APIs when the result must be replayed through model JSON.
- Do not mix shapes created by different sessions.
- Do not import
cadflow._engine, OCP/CadQuery classes, native handles, or
private shared-library symbols in a part script.
- For FEA surfaces, face contact, friction, coatings, or solver handoff, finish
the geometry here and then use cadflow-contact-simulation.
Required workflow
- Extract units, dimensions, tolerances, datums, feature order, placement,
and requested output files. State assumptions when the specification is incomplete.
- Choose and document the coordinate frame. Keep all dimensions in one unit;
convert at the input boundary rather than mixing units in operations.
- Build named intermediate values in feature order: base, additive features,
subtractive tools, transforms, then finishing operations.
- Use sketches for dimensioned planar profiles. Promote a solved sketch to a
wire/face before extrusion, revolution, or a profile cut.
- After the base, every boolean, and each fillet/chamfer/shell, query a
diagnostic. Check overlap and tool extent for through cuts.
- Validate the final shape: validity, solid count, volume, area, bounding-box
extents, and the topology needed by the request. Compare against stated tolerances, not visual intuition.
- Export only after validation. Create the output directory, write requested
STEP/STL/PNG/JSON files, and verify existence and non-zero size.
- Leave the generation script and report exact assumptions, commands,
measurements, and output paths.
Modeling rules
- Treat operations as functional: retain useful source values instead of
overwriting every feature.
- Keep a requested single part as one
Solid; never hide a failed boolean by
returning an arbitrary component of a compound.
- Query faces/edges before indexed fillet, chamfer, or shell selections.
Topology indices can change after any topology-changing operation.
- Apply repeated holes or pockets sequentially unless fused tools are known to
overlap and the fused tool has been validated.
- Use positive, finite dimensions and reject impossible radii before invoking
a kernel operation.
- Keep graph recording and export parameters faithful. Do not claim replay
equivalence when only a preview was checked.
Minimal current-frontend pattern
For replayable workflows, see references/public-api.md for the GraphSession/@cad.model pattern.
Failure handling
- A native-library error is an environment/build issue until geometry checks
prove otherwise. Report the exact command and error; do not bypass it with private imports.
- For a failed boolean, inspect body/tool bounds, overlap, orientation, and
validity before changing dimensions.
- For a failed feature, reduce the selection and radius only as a documented
diagnostic experiment; do not silently weaken the requested geometry.
- If the specification is underdetermined, state the chosen assumption and
expose it as a parameter in the script.
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
- SKILL.md in the repositoryCheckingskills/cadflow-model-part/SKILL.md
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
[](https://verified-skill.com/skills/yhz5613813/cadflow/cadflow-model-part)