rez-core-concepts
БесплатноБез исполняемых скриптовНе проверенRez core concepts — packages, versions, requests, repositories, the package search path, implicit packages and variants. Use when the user asks what Rez is…
от loonghao340 установок в других каталогахОб этом скилле
Rez core concepts
One-sentence summary: Rez takes a request (a list of package requests), runs a solver over packages found on a search path, and produces a resolve — a conflict-free list of concrete package versions.
Reference: Rez 3.4.0.
Skill scope: concepts only. For package.py authoring see rez-package-definition,
for commands() see rez-package-commands, for resolve mechanics see rez-resolve,
for resolve failures see rez-resolve-troubleshooting.
Mental model
request ──► solver ──► resolve ──► package commands concatenated ──► shell code ──► subshell
- A package is a versioned piece of software with a single definition file (
package.py). - A variant is a build flavor of one package version (e.g. one per Maya/Python version).
- A resolve never contains two versions of the same package — that is a conflict.
- Rez never mutates your current shell;
rez-envputs you in a subshell.
Versions
Version numbers are alphanumeric token lists separated by . or -.
Examples: 1, 1.0.0, 3.2.build_13, 4.rc1, 10a-5.
Ordering rules (tokens compared left to right):
| Order | Rule |
|---|---|
| 1 | letters before numbers (a < 1) |
| 2 | among letters: A–Z < _ < a–z (A < a, and _ sits between them) |
| 3 | zero-padded numbers before less-padded (02 < 2, 002 < 02) |
| 4 | mixed tokens split into letter/number groups and compared with the same rules |
Alpha sub-tokens are compared with Python's native string comparison, so ordering follows ASCII
code points: A–Z (65–90) < _ (95) < a–z (97–122). That makes the full ordering:
sorted(['_', 'A', 'Z', 'a', 'z', '0', '9'], key=Version)
-> ['A', 'Z', '_', 'a', 'z', '0', '9']
_ is not before everything — it comes after uppercase but before lowercase, so
1.0.rc_1 > 1.0.RC1 while 1.0.rc_1 < 1.0.rca.
Gotchas that matter in practice:
- The delimiter is ignored for comparison:
1.0.0==1-0.0. - Longer shared-prefix wins:
1.0.0>1.0. - No special meaning for
alpha/beta/rc. Semver is encouraged but not enforced, and semver ordering does not apply:foo-1.0.0 < foo-1.0.0-beta.1in Rez.
Trust the code over the docs here. The ordering table in Rez's own
basic_concepts.rsthas one error: it claimsa<A, butA<ain reality. Its other twelve rows — including13<043— are correct. The same mistake appears in theAlphanumericVersionTokendocstring insrc/rez/version/_version.py, which states alphas compare "_, then A-Z, then a-z". Since a source docstring gets this wrong too, treat the class itself as the only reliable benchmark and verify any ordering question that matters:python -c "from rez.version._version import Version; print(sorted(['_','A','a'], key=Version))"
Package requests
A request is a string matching a range of versions. Used in requires, variants and on the CLI.
| Request | Meaning |
|---|---|
foo |
any version |
foo-1 |
any foo-1[.x.x…] |
foo-1+ |
foo-1 or greater |
foo-1.2+<2 |
>=1.2, <2 |
foo<2 |
any version less than 2 |
foo==2.0.0 |
exactly 2.0.0 |
foo-1.3|5+ |
OR'd requests |
Two operators deserve special attention:
- Conflict
!—!maya-2015.6means nomayawithin2015.6(includes2015.6.1). - Weak reference
~— constrains the version if the package is present, but does not require it. Maya'spackage.pyuses~python-2.7.3so that any python-using package picks the python compatible with Maya, without Maya actually depending on python.
Quote requests on the shell — <, >, | and ! are shell metacharacters:
rez-env 'python-2.6+' 'my_py_utils-5.4+<6'
Repositories and the search path
Packages live in package repositories; Rez finds them via packages_path (a search path,
like PYTHONPATH). Inspect it with:
rez-config packages_path
Typical layout of the filesystem repository plugin:
/packages/inhouse/foo/1.1/package.py
/python/<FILES>
/bin/<EXECUTABLES>
/packages/inhouse/foo/1.2/
/packages/inhouse/foo/1.3/
Only the definition file location is fixed (root of the version dir); the rest is up to the build.
Shadowing rules — these cause most "wrong version" surprises:
- Earlier paths on
packages_pathwin, at version level: localfoo-1.0.0hides releasedfoo-1.0.0, but notfoo-1.2.0. - Rez does not merge variants of the same package version across repositories.
- Rez does not fall back to a later repository when the earlier package has no compatible
variant — a local Linux-only
foo-1.0.0hides a released Windows variant even on Windows. - Use
rez-env --no-localto exclude locally installed packages from a resolve.
Typical setup: local_packages_path (~/packages)
Установить rez-core-concepts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rez-core-concepts?
Rez core concepts — packages, versions, requests, repositories, the package search path, implicit packages and variants. Use when the user asks what Rez is, how package versions or requests work, where Rez finds packages, why a resolve picked a certain version, or when a project contains package.py files. Covers Rez 3.4.0.
Как установить скилл rez-core-concepts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rez-core-concepts запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub