agentleFS
MuhrashyaMuhrashya/Blender-kit/skills/blender-topology/SKILL.md

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.

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
  1. Very specific:

    LOOK at docs/blender/reference/figures/ (joint-loops, rig-ready-zones, transition-patterns).

    line 15
  2. Very specific:

    Run audit_run_isolated(audit_type="all", target_mode=target_mode, budget=budget) with SELECT_DEFECTS = False.

    line 27

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. DECISION CHECK: if state.md has 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 the Q1..Q2 decision list with (Recommended) first.
  2. LOOK at docs/blender/reference/figures/ (joint-loops, rig-ready-zones, transition-patterns). READ references/rules.md (always), docs/blender/reference/deformation-zones.md (deforming assets), docs/blender/reference/transition-patterns.md (density changes).
  3. COMPILE TARGET TOPOLOGY (mesh_compile_target in docs/blender/scripts/blender_kit_ops.py or docs/blender/scripts/optimize_quads_to_tris.py):
    • If target_mode == "film_cinematic":
      1. Restores/validates the un-triangulated quad control cage (.kit_cage_<obj>).
      2. Uses mesh_subd_and_loops (kit_subd_and_loops) to ensure holding loops (segments=2, profile=1.0) and crease_edge weights support sharp features without triangles or ngons.
      3. Attaches weight-driven BEVEL + Catmull-Clark SUBSURF (uv_smooth='PRESERVE_BOUNDARIES').
    • If target_mode == "game_realtime":
      1. Snapshots the source quad control cage into .kit_cage_<obj> so it can always be restored non-destructively.
      2. Welds coincident seams (0.5mm) and raycasts to strip hidden inner duplicate shells (mesh_clean_and_strip_shells).
      3. Preserves 3-ring quad loops within joint_radius of armature bones or Landmark Graph joints, dissolves flat coplanar interior edges (planar_angle_deg = 2.5), and beauty-triangulates non-planar static quads (topo_optimize_quads_to_tris).
    • If target_mode == "dual_cage": generates both SM_<Asset>_HP (film_cinematic) and SM_<Asset>_LP (game_realtime).
  4. 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) with SELECT_DEFECTS = False.
  5. SYMMETRY & DEFECT REPAIR: run docs/blender/scripts/audit_topology.py with SYMMETRIC=True when symmetric. If ngons, joint poles, or curved_surface_tris (in film_cinematic) remain, run blender-topology-fix.
  6. VISUAL & WIREFRAME VERIFICATION: call look(mode="angles", views=["front", "right", "three_quarter"], shading="wireframe") and shading="solid"; save to screens/topo_*.png.

Rig-ready & dual-target checklist

CheckPass when (game_realtime)Pass when (film_cinematic)Source
Ngons00audit_topology
Curved-surface trianglesallowed on static facetscurved_surface_tris == 0audit_topology
Closed quad pole balancen/a when triangulatedpole_balance % 8 == 0 ($\sum (4 - \text{valence})$)audit_topology
Joint loops & poles0 poles/tris within 1 ring of joints0 poles/tris within 1 ring of jointsaudit_topology joints
Double shells strippedstripped_inner_shells == 0 remainingstripped_inner_shells == 0 remainingmesh_compile_target
Transformsscale=1, rotation=0 appliedscale=1, rotation=0 appliedaudit_mesh
Budgetevaluated tris <= budgetbase cage quads within role rowaudit_mesh

Hard rules

RuleDetail
n-gons0 in every final mesh across all target modes
Deforming zonesquads only within joint radius; no triangles or poles within 1 ring of a joint
Dual-target polarityfilm_cinematic keeps 100% quad cages (curved_surface_tris == 0) with live SUBSURF; game_realtime beauty-triangulates static quads and strips SUBSURF
Preserve source cageAlways snapshot .kit_cage_<obj> before game_realtime triangulation so edits stay reversible
Context-free auditsNever 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

FailureAction
ngons, thin/non-planar quads, poles near joints, or curved_surface_tris > 0 in film_cinematicblender-topology-fix (or restore .kit_cage_<obj> and re-run mesh_subd_and_loops)
Defect rate above fix thresholdsblender-retopo
Over budget in game_realtimereferences/rules.md section 6 cut order + mesh_compile_target; then ask approval
Hands wrongblender-hands

Next

blender-uv-bake (static) or after hands/topology: blender-uv-bake -> blender-material -> blender-rig (deforming).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.