blender-topology-fix
Skill1 starsChanged 15 days agoMITView on GitHub
Use when a mesh has bad topology and must be repaired - ngons, triangles in bend zones, poles at joints, uneven density, thin or non-planar quads, missing joint loops, asymmetry, messy AI or sculpt-derived meshes, "fix topology", "rapikan topologi". Diagnoses with a defect map, applies ordered fixes, escalates to retopo when needed.
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-topologySkill
- 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
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
VERIFY: audit_run_isolated(audit_type="all", target_objects=[...]).
≈ “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 fix (diagnose -> repair -> verify -> escalate)
Requires
A mesh object. Checkpoint saved. Armature if it exists (for joint checks). brief.md budget and style.
Inputs
Object name. Optional: deforming? yes/no, symmetric? yes/no.
Steps
- CHECKPOINT: call
workflow_checkpoint(asset_name=..., tag="pre-fix")(orscripts/checkpoint.py). - MAP: run
audit_run_isolated(audit_type="topology", target_objects=[...], target_mode=...)(oraudit_mesh.pyandaudit_topology.py). Save before-fix audit JSON to<session_dir>/assets/<asset>/audit/fix_before.json. - CLASSIFY every nonzero count with
references/fix-recipes.mdsection 1 (severity + recipe). Order: A (mesh_clean_and_strip_shellssafe cleanup) -> B (mesh_subd_and_loops/topo_optimize_quads_to_trisface-type fixes) -> C (flow fixes) -> D (rebuild). - REPAIR in that order using native MCP tools (
mesh_clean_and_strip_shells,mesh_subd_and_loops,mesh_bmesh_edit,topo_optimize_quads_to_tris). After EACH recipe group re-runaudit_run_isolated(audit_type="topology"); stop a recipe that makes any count worse and restore the checkpoint. - ESCALATE using the thresholds in
references/fix-recipes.mdsection 3: local patch retopo or full blender-retopo. - VERIFY:
audit_run_isolated(audit_type="all", target_objects=[...]); wireframe screenshots front, side, each joint close-up. - REPORT before/after table (counts per defect type) + screenshots. Update state.md: topology, uv-bake, hands, rig, animate, qa, export -> STALE.
Hard rules
| Rule | Detail |
| Checkpoint first | no repair without pre-fix.blend |
| Measure after each group | no batch of fixes without re-audit |
| Original untouched | work on a duplicate when the user did not ask for in-place edits |
| Deforming zones | quads only; do not "fix" an ngon there by triangulating |
| Static props | triangulating a flat ngon or a non-planar quad is allowed |
| Silhouette | compare front/side silhouette before/after; revert if it changes visibly |
| Decimate | never as a fix for rigged meshes |
| No invented parameters | bmesh op kwargs that raise errors are reported, then adapted from the error text |
Done when
Thresholds in fix-recipes.md section 2 met: ngons = 0; tris/poles/ngons near joints = 0 (deforming); nonplanar = 0 and thin = 0 in zones (or triangulated on static props); density_spikes under 1 percent of edges; symmetry unmatched = 0 (symmetric assets); tris within budget.
On fail
| Failure | Action |
| Defects remain after recipes A-C | escalate (section 3) |
| Silhouette changed | restore checkpoint, apply recipes more locally |
| Budget exceeded after fixes | blender-topology cut order |
| Joint loops missing and no room to add | blender-retopo (local patch) |
Next
blender-topology (full audit) then the paused or next stage in the chain.
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.

