blender-topology
Skill1 starsChanged 15 days agoMITView on GitHub
Use for clean quad topology, dual-target compilation (game_realtime quads-to-triangles vs film_cinematic 100% quad Catmull-Clark SubD control cages), double-shell stripping, holding loops, poles, joint loops, and rig-ready meshes.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- blender-animateSkill
- blender-cameraSkill
- blender-diagnoseSkill
- blender-exportSkill
- blender-handsSkill
- blender-materialSkill
- blender-modelSkill
- blender-qaSkill
- blender-refSkill
- blender-retopoSkill
- blender-rigSkill
- blender-setupSkill
- blenderSkill
- blender-topology-fixSkill
- blender-uv-bakeSkill
- blender-vfx-flipbookSkill
- blender-vfx-meshSkill
- blender-vfx-simSkill
- blender-vfxSkill
- blender-vfx-textureSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
LOOK at docs/blender/reference/figures/ (joint-loops, rig-ready-zones, transition-patterns).
- Very specific: line 27
Run audit_run_isolated(audit_type="all", target_mode=target_mode, budget=budget) with SELECT_DEFECTS = False.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Topology: Universal Quad Control Cage -> Film SubD or Game Triangles
Requires
brief.md (budget, target_mode, deforming yes/no, style, camera distance). A mesh from blender-model, blender-hands or blender-retopo. docs/blender/engine.md Rig section for influence/bone limits.
Inputs
Budget (config.md row) | target_mode (game_realtime | film_cinematic | dual_cage) | deforming? | camera distance | armature or Landmark Graph if it exists.
Steps
- DECISION CHECK: if
state.mdhas not locked the topology strategy (Q1: Target compilation — game_realtime (quad rings at joints + beauty-triangulated static facets) vs film_cinematic (100% quad Catmull-Clark SubD cage) vs dual_cage (_HP + _LP),Q2: Budget ceiling), present theQ1..Q2decision list with(Recommended)first. - LOOK at
docs/blender/reference/figures/(joint-loops, rig-ready-zones, transition-patterns). READreferences/rules.md(always),docs/blender/reference/deformation-zones.md(deforming assets),docs/blender/reference/transition-patterns.md(density changes). - COMPILE TARGET TOPOLOGY (
mesh_compile_targetindocs/blender/scripts/blender_kit_ops.pyordocs/blender/scripts/optimize_quads_to_tris.py):- If
target_mode == "film_cinematic":- Restores/validates the un-triangulated quad control cage (
.kit_cage_<obj>). - Uses
mesh_subd_and_loops(kit_subd_and_loops) to ensure holding loops (segments=2, profile=1.0) andcrease_edgeweights support sharp features without triangles or ngons. - Attaches weight-driven
BEVEL+ Catmull-ClarkSUBSURF(uv_smooth='PRESERVE_BOUNDARIES').
- Restores/validates the un-triangulated quad control cage (
- If
target_mode == "game_realtime":- Snapshots the source quad control cage into
.kit_cage_<obj>so it can always be restored non-destructively. - Welds coincident seams (
0.5mm) and raycasts to strip hidden inner duplicate shells (mesh_clean_and_strip_shells). - Preserves 3-ring quad loops within
joint_radiusof armature bones orLandmark Graphjoints, dissolves flat coplanar interior edges (planar_angle_deg = 2.5), and beauty-triangulates non-planar static quads (topo_optimize_quads_to_tris).
- Snapshots the source quad control cage into
- If
target_mode == "dual_cage": generates bothSM_<Asset>_HP(film_cinematic) andSM_<Asset>_LP(game_realtime).
- If
- AUDIT TOPOLOGY (
audit_run_isolated/docs/blender/scripts/audit_mesh.py&docs/blender/scripts/audit_topology.py):- Run
audit_run_isolated(audit_type="all", target_mode=target_mode, budget=budget)withSELECT_DEFECTS = False.
- Run
- SYMMETRY & DEFECT REPAIR: run
docs/blender/scripts/audit_topology.pywithSYMMETRIC=Truewhen symmetric. If ngons, joint poles, orcurved_surface_tris(infilm_cinematic) remain, runblender-topology-fix. - VISUAL & WIREFRAME VERIFICATION: call
look(mode="angles", views=["front", "right", "three_quarter"], shading="wireframe")andshading="solid"; save toscreens/topo_*.png.
Rig-ready & dual-target checklist
| Check | Pass when (game_realtime) | Pass when (film_cinematic) | Source |
| Ngons | 0 | 0 | audit_topology |
| Curved-surface triangles | allowed on static facets | curved_surface_tris == 0 | audit_topology |
| Closed quad pole balance | n/a when triangulated | pole_balance % 8 == 0 ($\sum (4 - \text{valence})$) | audit_topology |
| Joint loops & poles | 0 poles/tris within 1 ring of joints | 0 poles/tris within 1 ring of joints | audit_topology joints |
| Double shells stripped | stripped_inner_shells == 0 remaining | stripped_inner_shells == 0 remaining | mesh_compile_target |
| Transforms | scale=1, rotation=0 applied | scale=1, rotation=0 applied | audit_mesh |
| Budget | evaluated tris <= budget | base cage quads within role row | audit_mesh |
Hard rules
| Rule | Detail |
| n-gons | 0 in every final mesh across all target modes |
| Deforming zones | quads only within joint radius; no triangles or poles within 1 ring of a joint |
| Dual-target polarity | film_cinematic keeps 100% quad cages (curved_surface_tris == 0) with live SUBSURF; game_realtime beauty-triangulates static quads and strips SUBSURF |
| Preserve source cage | Always snapshot .kit_cage_<obj> before game_realtime triangulation so edits stay reversible |
| Context-free audits | Never rely on bpy.context.selected_objects (SELECT_DEFECTS = False by default) |
Done when
audit_run_isolated (audit_mesh.py + audit_topology.py) passes for the active target_mode; rig-ready checklist all pass; wireframe look screenshots saved.
On fail
| Failure | Action |
ngons, thin/non-planar quads, poles near joints, or curved_surface_tris > 0 in film_cinematic | blender-topology-fix (or restore .kit_cage_<obj> and re-run mesh_subd_and_loops) |
| Defect rate above fix thresholds | blender-retopo |
Over budget in game_realtime | references/rules.md section 6 cut order + mesh_compile_target; then ask approval |
| Hands wrong | blender-hands |
Next
blender-uv-bake (static) or after hands/topology: blender-uv-bake -> blender-material -> blender-rig (deforming).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

