Λογότυπο Extension Runtime And Packaging

Extension Runtime And Packaging

Κοινότητα
TMHSDigital
extension-runtime-and-packaging

Ship and run a Blender extension after its first install: bundled wheels, user data that survives upgrades via bpy.utils.extension_path_user, the network permission and bpy.app.online_access, bl_ext package names, and blender --command extension validate/build/server-generate in CI. Use when the user bundles third-party Python packages, pip-installs into Blender's Python, writes files next to __file__, needs a settings or cache directory, makes network calls from an add-on, or builds and publishes extension zips. Targets 5.2 LTS with 4.5 LTS fallback.

Επισκόπηση

ΕκδότηςTMHSDigital
ΑποθετήριοBlender-Developer-Tools
Όνομα δεξιότηταςextension-runtime-and-packaging
Αστέρια
20
Forks
5
Συνοδευτικά αρχεία
Μόνο οδηγίες
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από TMHSDigital στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Extension Runtime And Packaging στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/skills/extension-runtime-and-packaging
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TMHSDigital/Blender-Developer-Tools.git /tmp/Blender-Developer-Tools
mkdir -p .claude/skills
cp -r /tmp/Blender-Developer-Tools/skills/extension-runtime-and-packaging .claude/skills/extension-runtime-and-packaging
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Extension Runtime And Packaging σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Extension Runtime And Packaging μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Extension Runtime And Packaging δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Extension Runtime and Packaging

Trigger

Use this skill when the user:

  • Needs a third-party Python package inside an extension (requests, numpy, Pillow)
  • Writes settings, caches or downloads from an add-on and asks where they should go
  • Makes network calls from an add-on, or asks about the network permission
  • Builds, validates or publishes extension zips, locally or in CI
  • Hits ValueError: The "package" does not name an extension, or imports that work in a folder add-on but break once installed as an extension

addon-scaffolding covers the manifest fields, file layout and register symmetry. This skill covers what breaks after that: dependencies, data, network and packaging.

Required inputs

  • Extension id from blender_manifest.toml (the installed package is bl_ext.<repo>.<id>)
  • Target Blender versions. The bundled Python differs: 3.11 on 4.5 LTS, 3.13 on 5.2 LTS (sys.version_info measured on 4.5.11 and 5.2.1)
  • Third-party packages the code imports, and whether any ship compiled code
  • Whether the add-on touches the network

Where things live once installed

Measured with blender --command extension install-file -r user_default into a throwaway BLENDER_USER_RESOURCES, identical on 4.5.11, 5.1.2 and 5.2.1:

WhatPath under the user extensions/ directoryLifetime
The package (__file__)user_default/<id>/Replaced on every upgrade
extension_path_user(__package__).user/user_default/<id>/Survives upgrades; deleted by extension remove
Bundled wheels.local/lib/python3.X/site-packages/Outside every package directory, keyed by Python version

The import name is bl_ext.user_default.<id>, not <id>, and __package__ carries that full name.

Bundling dependencies: wheels, never pip

Blender does not run pip for an extension, and an extension should not run it either: pip install into Blender's Python changes the interpreter every add-on shares and needs write access to the Blender install. The supported mechanism is wheels shipped inside the package. Per the manual, they must be bundled unmodified from PyPI and must include their own dependencies:

toml
# blender_manifest.toml
wheels = [
  "./wheels/requests-2.32.3-py3-none-any.whl",
  "./wheels/charset_normalizer-3.4.0-cp311-cp311-win_amd64.whl",
]

Download them with pip on the build machine, matched to Blender's Python and each platform:

bash
pip download requests --dest ./wheels --only-binary=:all: --python-version 3.11 --platform win_amd64
  • A pure-Python wheel (py3-none-any) works everywhere. A compiled one needs a wheel per Python (cp311 for 4.5 LTS, cp313 for 5.2 LTS) and per platform.
  • build --split-platforms writes one zip per platform listed in the manifest's platforms key, so a user downloads only their own wheels.
  • build copies the listed wheels into the zip under wheels/. On install, Blender extracts them into the site-packages directory above, which is already on sys.path, so import requests works with no path code (measured with a hand-built wheel on 4.5.11 and 5.2.1).

User data: extension_path_user, never __file__

python
import os
import bpy

def settings_path():
    directory = bpy.utils.extension_path_user(__package__, path="", create=True)
    return os.path.join(directory, "settings.json")
  • Installing a newer version replaces the whole install directory. A file written next to __file__ is gone after the upgrade; settings.json in the user directory is still there (measured, 0.1.0 → 0.2.0).
  • extension remove deletes the user directory too. If users must keep data across a reinstall, offer an explicit export.
  • extension_path_user("my_addon") raises ValueError: The "package" does not name an extension for anything not shaped bl_ext.<repo>.<id>. A legacy folder add-on cannot use it, so code shared with a bl_info fallback needs its own path, such as bpy.utils.user_resource('CONFIG', path=...).
  • Use relative imports inside the package (from . import ops). The installed module is bl_ext.user_default.my_addon, and the repository part changes with where the user installs it, so a hardcoded absolute name is wrong somewhere.

Network: the permission and bpy.app.online_access

Declaring the permission does not grant access, and code must check both:

toml
[permissions]
network = "Downloads material presets from the project server"
python
def fetch_presets(url):
    if not bpy.app.online_access:
        return None  # the user has not allowed online access; do nothing online
    ...
  • bpy.app.online_access is False in a fresh factory-startup Blender and True under blender --online-mode (measured on all three versions). Users turn it on with Preferences → System → Network → Allow Online Access.
  • The manifest validator accepts only files, network, clipboard, camera and microphone as permission keys. The permission is a declaration shown to users, not a sandbox.

Validate is not a release gate: build in CI

blender --command extension validate DIR parses the manifest. It rejects a missing id, a non-semver version, an unknown type, an unknown permission key and a malformed blender_version_min. It does not open the files the manifest names, and does not check every value:

Manifest defectvalidatebuild
wheels entry whose file does not existexit 0exit 1, no zip
platforms = ["win64"] (not a platform name)exit 0—
schema_version = "9.9.9"exit 0—
missing idexit 1exit 1

All four rows were measured on 4.5.11 and 5.2.1; "—" means not measured. Gate CI on build, which fails on what validate lets through:

bash
blender --factory-startup --command extension validate ./my_addon
blender --factory-startup --command extension build --source-dir ./my_addon --output-dir ./dist
blender --factory-startup --command extension server-generate --repo-dir ./dist   # writes dist/index.json

server-generate writes the index.json listing a static extension repository needs. Each entry carries the package id and an archive_url relative to the listing (./my_addon-0.1.0.zip). Host dist/ anywhere that serves files and add it as a remote repository in Blender.

The extension template ships this as a ready workflow: templates/extension-addon-template/.github/workflows/blender.yml builds the package on 4.5 LTS and 5.2 LTS and runs a register/unregister round-trip (tests/check_register.py).

To smoke-test an installed build without touching a real profile, point BLENDER_USER_RESOURCES at a temporary directory, then run extension install-file -r user_default -e dist/<zip> and a --background --python-expr import of bl_ext.user_default.<id>.

Common AI mistakes

  1. subprocess.run([sys.executable, "-m", "pip", "install", ...]) from register(). It mutates the interpreter every add-on shares and fails without write access to the install. Bundle wheels.
  2. Writing caches or settings next to __file__. The next upgrade deletes them. Use extension_path_user(__package__, create=True).
  3. Calling extension_path_user("my_addon") with the bare id. It raises ValueError; pass __package__.
  4. Absolute self-imports (import my_addon.utils). The installed package is bl_ext.<repo>.my_addon, with a repository part that varies; use relative imports.
  5. Network calls gated only on the manifest permission. Check bpy.app.online_access at call time; it is False until the user allows online access.
  6. A CI job that runs only extension validate. A missing wheel passes it; run extension build and fail on its exit code.
  7. Compiled wheels for one Python only. A cp311 wheel does not import on 5.2's Python 3.13. Ship one per supported Python and platform.

Compatibility paths

The --command extension subcommands, extension_path_user, online_access, the .user and .local/lib/pythonX.Y/site-packages layout, and the upgrade and remove behaviour above are the same on 4.5 LTS, 5.1 and 5.2 LTS (all measured). What changes between them is the bundled Python (3.11 → 3.13), which decides the wheel tags. Branch on bpy.app.version only for API differences, never for these paths.

Related

  • addon-scaffolding: the manifest fields, file layout and register_classes_factory
  • headless-batch-scripting: running Blender unattended, which is how the CI commands above run
  • The extension-addon-template template under templates/, which the example below builds, installs and upgrades
  • Snippet: snippets/extension-user-data.py

Runnable examples

Each example runs headless, asserts the contract, and exits non-zero when it breaks. Run one with blender --background --python <script> --; pass a falsifier flag to watch the check fail.

  • extension-package-lifecycle: Takes templates/extension-addon-template through what an extension meets after its first run. Falsify: --ship-wheel (exit 4).

Snippets

Short standalone patterns to copy. Each one runs in CI on 5.2 and 4.5 with a check and a falsifier.

References

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Extension Runtime And Packaging;

Ship and run a Blender extension after its first install: bundled wheels, user data that survives upgrades via bpy.utils.extension_path_user, the network permission and bpy.app.online_access, bl_ext package names, and blender --command extension validate/build/server-generate in CI. Use when the user bundles third-party Python packages, pip-installs into Blender's Python, writes files next to __file__, needs a settings or cache directory, makes network calls from an add-on, or builds and publishes extension zips. Targets 5.2 LTS with 4.5 LTS fallback.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Extension Runtime And Packaging στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Extension Runtime And Packaging είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Extension Runtime And Packaging στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/TMHSDigital/Blender-Developer-Tools/tree/main/skills/extension-runtime-and-packaging. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Extension Runtime And Packaging;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Extension Runtime And Packaging;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Extension Runtime And Packaging με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Extension Runtime And Packaging;

Δημοσιεύεται στο GitHub από τον χρήστη TMHSDigital. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇