Guidance for AI coding agents working on the Blender Developer Tools repository.
Skills, rules, snippets, starter templates, and runnable smoke-gated examples
for Blender Python development.
The repo targets Blender 5.1 (current stable) with a Blender 4.5 LTS
fallback. There is no MCP server. It ships a .cursor-plugin/plugin.json
manifest so the ecosystem drift checker classifies it as a cursor-plugin.
This is content the AI loads when the user asks Blender questions or works on
Blender add-ons in Cursor or Claude Code.
The content base (counts are CI-enforced against README.md and the manifest):
- 12 skills covering scaffolding, operators, panels, properties, mesh and
bmesh, headless batch scripts, slotted-actions animation (5.x), programmatic
geometry nodes, procedural materials and shaders, depsgraph and evaluated
data, drivers and application handlers, and
bl_infoto Extensions Platform migration. - 6 rules encoding the most common AI anti-patterns when writing Blender
Python (ops-in-loops, bmesh leaks, legacy
bl_info-only, prop assignment, deprecated context-copy override, per-element loops over bulk mesh data). - 2 templates:
extension-addon-templatefor Extensions Platform add-ons, andheadless-batch-script-templatefor unattended batch jobs. - 17 snippets covering canonical patterns.
- 12 examples under
examples/<name>/: runnable scripts that assert a real API contract with deterministic checks, exit non-zero on failure, and optionally render a still via--output. Each is executed headless on Blender 4.5 LTS and 5.1 byblender-smoke.yml; its render ships in the site gallery. Anatomy and authoring rules: copyexamples/bmesh-gear/.
Blender-Developer-Tools/
skills/<skill-name>/SKILL.md # 12 skill files
rules/<rule-name>.mdc # 6 rule files
templates/<template-name>/ # 2 starter templates
snippets/<snippet-name>.py # 17 standalone Python snippets
examples/<name>/ # 12 runnable smoke-gated examples (+ gallery.json)
scripts/build_gallery.py # generates docs/gallery/ (stdlib only)
scripts/site/ # vendored landing-page build (build_site.py + template)
docs/gallery/ # committed generated gallery pages + hero assets
.github/workflows/ # validate, blender-smoke, drift-check, release, pages, label-sync
.github/dependabot.yml
AGENTS.md, CLAUDE.md, README.md, ROADMAP.md, CHANGELOG.md
CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md
VERSION # source of truth for the repo version
LICENSE # CC-BY-NC-ND-4.0
- Single
mainbranch. No develop or release branches. - Conventional commits drive the auto-release workflow. It scans the commit subjects since
the last tag and releases only when at least one is release-worthy:
feat:triggers a minor bumpfix:triggers a patch bumpfeat!:/fix!:/BREAKING CHANGEtriggers a major bump- Other types (
chore:,docs:,ci:,refactor:, etc.) do not cut a release: the workflow runs, decides there is nothing to release, and exits without a tag or version bump. A mixed push still releases if any commit in range is afeat:/fix:. [skip ci]in the head commit still bypasses the workflow entirely. With the commit-type gate above it is now an optional override, not a requirement for non-release commits.
- Commit messages should describe the why, not the what.
- Primary: Blender 5.1.x (current stable). All examples assume 5.1 unless otherwise stated.
- Fallback: Blender 4.5 LTS. Skills and the extension template note 4.5 compatibility where it matters (slotted actions bridge, property delete, manifest fields).
- Future: a 5.2 LTS sweep is planned for July 2026 (see
ROADMAP.md).
When a 4.x and 5.x API genuinely diverge, skills must show both code paths,
not just the 5.x one. The slotted-actions-animation skill is the load-bearing
example.
Each skill lives at skills/<skill-name>/SKILL.md. Frontmatter is YAML:
---
name: <kebab-case-skill-name>
description: <one-line, under 200 chars>
standards-version: 1.10.0
---name must match the directory name. description is what the AI sees when
deciding whether to load the skill.
Skills should cite Blender API doc URLs where they reference specific RNA classes, operators, or modules. Avoid encyclopedic API tours; the goal is the canonical pattern plus the common AI mistakes.
Rules are .mdc files in rules/. Frontmatter:
---
description: <one-line>
alwaysApply: true
standards-version: 1.10.0
---Rules encode anti-patterns. Each rule should show the wrong way, the right way, and a one-paragraph rationale. 30 to 80 lines is the right size.
validate.ymlruns file structure checks plus avalidate-countsjob that asserts the README aggregate counts (12 skills, 6 rules, 2 templates, 17 snippets) match filesystem reality. The counts language inREADME.mdis load-bearing: the job greps for it.validate.ymlalso runs avalidate-manifestjob that checks.cursor-plugin/plugin.jsonagainst reality: every listed path must exist, every skill, rule, snippet, template, and example on disk must be listed, and the manifestversionmust equalVERSION. The release pipeline owns the manifestversionline (seerelease.ymlbelow) — never hand-edit it.blender-smoke.ymlexecutes every shipped example (check-only, no render) plus snippet/template smoke tests inside REAL headless Blender, on both 4.5 LTS and 5.1, on every PR and a weekly schedule. A new example is not shipped until it has a step here.drift-check.ymlconsumesDeveloper-Tools-Directory/.github/actions/ drift-check@v1.15to enforce ecosystem standards-version markers.release.ymlauto-bumps the version, tags, force-updates floating tagsv0andv0.1, and runsrelease-doc-sync@v1to rewrite CHANGELOG.md, CLAUDE.md**Version:**, and ROADMAP.md**Current:**. It also rewrites the"version"line in.cursor-plugin/plugin.jsonso the manifest tracks each release. Triggered on push tomainfor content-changing paths only.label-sync.ymlself-heals labels viagh label create --forceper label, then applies them to the PR.pages.ymlbuilds the landing page from the locally vendored template atscripts/site/(originally scaffolded from Developer-Tools-Directory's site-template, now owned by this repo — the fleet template only scaffolds new tools) plus the examples gallery viascripts/build_gallery.py, then deploysdocs/.docs/index.html,docs/fonts/, anddocs/assets/are build outputs and gitignored;docs/gallery/is committed.
- Blender 5.1 Python API: https://docs.blender.org/api/current/
- Blender 4.5 LTS Python API: https://docs.blender.org/api/4.5/
- Extensions Platform reference: https://docs.blender.org/manual/en/latest/advanced/extensions/index.html
- Release notes (
developer.blender.org): https://developer.blender.org/
When information conflicts, prefer the docs over Stack Overflow or older add-on source. The 2.x to 4.x to 5.x churn around Actions, Extensions, and property handling has invalidated a lot of community content.
CC-BY-NC-ND-4.0. See LICENSE.