yhz5613813/cadflow/cadflow-flexible-model
Claude Code and agent skill by yhz5613813/cadflow
- community
Checking that the SKILL.md file is still in the repository.
Build static flexible-material geometry in CadFlow for cloth, leather, sheet goods, membranes, draped panels, and garments. Use when the deliverable is a static multi-face surface or thin shell with dense mesh output, wrinkles, sections, OBJ/STL/JSON, or rendered PNG views. Do not add gravity, collision, time integration, velocity, XPBD, or motion simulation.
Install
npx vskill@latest install yhz5613813/cadflow/cadflow-flexible-modelSKILL.md
CadFlow Static Flexible Modeling
Model the shape that a flexible product is intended to have at one fixed configuration. This skill is for geometry generation, not physical simulation. Use import cadflow as cad for the package and import the flexible domain from cadflow.flexible.
Choose the representation
- Use
FlexiblePanelfor an arbitrary rectangular control-point surface. - Use
RingSectionplussectioned_panelfor sleeves, trouser legs, tubes,
torsos, rolled sheets, or other section-driven garment parts.
- Use
FlexibleModelto concatenate independent panels while preserving panel
names and index ranges.
- Use positive
FlexibleMaterial.thicknessfor a closed thin shell; use zero
thickness only for an intentionally open surface.
- Use a CadFlow
Model/Solidonly when the request is a rigid BREP part.
Do not force a cloth panel into a rigid-solid workflow.
Required workflow
- Extract the design intent: panel boundaries, section centers and axes,
dimensions, material thickness, wrinkle/fold locations, sampling density, output formats, and the fixed pose to model.
- State units and coordinate assumptions. Normalize section axes and keep the
same unit across all panels.
- Build one panel at a time. Name panels by semantic role (
torso,left_leg,
right_sleeve) rather than by numeric order.
- Use static wrinkle parameters (
wrinkle_amplitude,wrinkle_count, and
wrinkle_phase) as geometry inputs. Never introduce a time loop or solver.
- Choose sampling density from curvature and inspection needs. Increase
sample_rows/sample_columns where folds are tight; do not hide self- intersections or bad parameterization by oversampling.
- Build the combined
FlexibleMesh, then validate vertex/triangle indices,
finite coordinates, unit normals, non-degenerate triangles, panel ranges, deterministic output, and watertightness when thickness is positive.
- Export OBJ, binary STL, and metadata JSON. Render orthographic front/side/top
plus a perspective geometry view when the user asks to see the result.
- Report the exact mesh counts, bounds, area, panel names, thickness, output
paths, and all assumptions.
C++/Python boundary
Keep the boundary stateless and narrow:
- C++ (
native/src/flexible/shell_mesh.*) performs dense grid sampling,
periodic seams, smooth normals, thickness offsets, boundary walls, and triangle indexing.
- Python (
python/cadflow/flexible.py) owns material/design semantics,
section construction, panel composition, validation, measurement, and file export.
- Do not add C++ callbacks into Python, time state, scene state, collision
state, gravity, velocity, or an XPBD/deformable simulation API.
Minimal section-driven pattern
For a complete four-view renderer, use examples/cadflow_static_flexible_garment.py as the project-local template.
Failure handling
- Reject non-finite or negative material thickness and invalid control grids.
- Reject non-orthogonal or zero section axes before building a panel.
- Treat non-watertight positive-thickness output as a modeling failure, not as a
cosmetic warning.
- If folds self-intersect, adjust section geometry or wrinkle amplitude; do not
claim physical cloth behavior from a static procedural perturbation.
- If a requested feature requires motion, hand the request back as outside
this skill's scope rather than adding a simulator.
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-flexible-model/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-flexible-model)