maya-operation-rules

maya-operation-rules is a skill for Claude Code, Codex from IvanYangYangXi/artclaw_bridge. It costs 107 tokens per session (1,403 once invoked), scanned A, original, MIT.

A set of operating rules for editing scenes in Maya, a 3D modeling and animation application. It explains Maya’s coordinate system, grouped undo behavior, visible script output, and other editing practices.

In plain words
What is it for?
Use it when running Python to modify Maya scenes, especially for multi-step or multi-object operations that need consistent coordinates and safe undo handling.
Why use it?
It helps prevent confusing scene changes, incorrect object placement, and scripts whose status messages users cannot see. Grouped undo also lets several related edits be reversed together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when running Python to modify Maya scenes, especially for multi-step or multi-object operations that need consistent coordinates and safe undo handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add IvanYangYangXi/artclaw_bridge --skill maya-operation-rules
Clone the repo
git clone --depth 1 https://github.com/IvanYangYangXi/artclaw_bridge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maya-operation-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules/github.svg)](https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules)
Your own site
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for maya-operation-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/maya-operation-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,403 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.01403
Opus 5 $0.00053 $0.00701
Sonnet 5 $0.00021 $0.00281
Haiku 4.5 $0.00011 $0.00140

Measured 11d ago against content hash c6cb7652308c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

maya-operation-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/official/maya/maya-operation-rules/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maya 操作通用规则

所有涉及 Maya 场景修改的操作都必须遵守以下规则。

⚠️ 仅适用于 Maya — 通过 run_python 执行


🌐 规则 0:坐标系

Maya 使用 Y-Up 右手坐标系

方向 说明
X 右 (Right) 屏幕右侧
Y 上 (Up) 垂直向上
Z 屏幕外 (Toward Viewer) 面向屏幕时指向你

右手系判定:右手拇指指向 X(右),食指指向 Y(上),中指指向 Z(屏幕外)。

与其他 DCC 的换算

  • 导出到 UE (Z-Up 左手系):Maya Y → UE Z,Maya Z → UE -Y
  • 导出到 3ds Max (Z-Up 右手系):Maya Y → Max Z,Maya Z → Max -Y
  • FBX 导出时勾选 "Up Axis" 设置,Maya 默认导出 Y-Up,UE 导入时自动转换
import maya.cmds as cmds

# Maya 坐标示例
cmds.move(10, 5, 3, 'pCube1')  # X=右10, Y=上5, Z=向屏幕外3
cmds.rotate(45, 0, 0, 'pCube1')  # 绕 X 轴旋转 45°

🔄 规则 1:批量操作使用 Undo 块

多步修改操作应包裹在 undoInfo 块中,让用户可以一次 Ctrl+Z 撤销整个操作。

import maya.cmds as cmds

cmds.undoInfo(openChunk=True, chunkName='ArtClaw_BatchOperation')
try:
    # ... 所有修改操作 ...
    pass
finally:
    cmds.undoInfo(closeChunk=True)

何时使用 Undo 块

  • 涉及多个对象或多步操作时必须使用
  • 单个简单操作(如移动一个物体)可以不包裹
  • finally 确保异常时也能正确关闭 chunk

🖨️ 规则 2:使用 print 而非 logging

Maya 脚本编辑器不显示 Python logging 模块的输出。所有需要用户可见的信息必须用 print

# ❌ 用户看不到
import logging
logging.info("操作完成")

# ✅ 用户可见
print("操作完成")

💡 规则 3:提示用户可撤销

对场景进行修改后,应告知用户:

  • 所有操作支持 Ctrl+Z 撤销
  • 如果使用了 Undo 块,说明整个批量操作可以一次撤销

📋 规则 4:操作前确认(破坏性操作)

以下操作执行前应向用户确认:

  • 删除节点/对象(除非用户明确指示)
  • 批量修改属性(超过 10 个对象)
  • 清空场景 / 删除历史

非破坏性操作(调整参数、移动位置等)可以直接执行。


📂 规则 5:中文版 Maya 路径注意

Maya 中文版的脚本路径带 locale 子目录,安装和读取文件时注意:

# 英文版
Documents/maya/2023/scripts/

# 中文版(zh_CN 优先级更高)
Documents/maya/2023/zh_CN/scripts/
Documents/maya/2023/scripts/
  • 写入脚本时两个目录都要写
  • zh_CN/scripts/ 优先级高于 scripts/,只写后者会被前者的旧文件覆盖

🔧 标准操作收尾模板

import maya.cmds as cmds

cmds.undoInfo(openChunk=True, chunkName='ArtClaw_Operation')
try:
    # ... 所有操作代码 ...
    pass
finally:
    cmds.undoInfo(closeChunk=True)

print("✅ 操作完成")
# 提示:可用 Ctrl+Z 撤销

🧠 规则 6:记忆系统集成

反复出错时主动查记忆 (强制)

当同一类操作连续失败 2 次以上时,必须先搜索记忆再继续尝试:

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 184 lines · 107 tokens per session scan A c6cb7652308c

Subscribe to this mod's changes

maya-operation-rules is a skill published in the GitHub repository IvanYangYangXi/artclaw_bridge (35 stars, last pushed 4mo ago), licensed MIT. It adds 107 tokens to every session and 1,403 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

dcc-mcp-core

Foundation library for the DCC Model Context Protocol (MCP) ecosystem. Provides Rust-powered action management, skills system, IPC transport, MCP Streamable HTTP server (2025-03-26 spec, with 2025-06-18 and 2025-11-25 awareness), sandbox security, shared memory, screen capture, USD scene support, and telemetry for…

dcc-mcp/dcc-mcp-core · 109 tokens

maya-pipeline

Domain skill — Maya asset pipeline orchestration: set up project directory structures, export scenes to USD, and coordinate multi-step DCC workflows. Use when initialising a Maya project or exporting assets for a downstream pipeline. Not for raw geometry editing — use maya-geometry for that. Not for low-level USD file…

dcc-mcp/dcc-mcp-core · 74 tokens

imagemagick-tools

Infrastructure skill — image processing and manipulation via ImageMagick: resize, composite, convert formats, add watermarks. Use when batch-processing textures, thumbnails, or rendered images at the file level. Not for in-DCC texture or material editing — use a domain skill bound to the specific DCC for that.

dcc-mcp/dcc-mcp-core · 67 tokens

asset-source

Gateway skill for cross-DCC asset import — search and resolve assets into a validated AssetDescriptor (local path + attribution). Demo source returns static catalog entries; production sources can add download or remote resolution without changing the contract.

dcc-mcp/dcc-mcp-core · 47 tokens

ffmpeg-media

Infrastructure skill — media conversion and processing via FFmpeg: convert video/audio formats, extract frames, resize, and transcode. Use when manipulating raw media files (mp4, mov, wav, image sequences) regardless of DCC context. Not for DCC-specific render output handling — use a domain pipeline skill for…

dcc-mcp/dcc-mcp-core · 77 tokens

maya-geometry

Domain skill — Maya geometry primitives: create spheres, cubes, cylinders; bevel, extrude, and merge polygon components. Use for individual geometry creation or editing operations inside Maya. Not for full asset export pipelines — use maya-pipeline for that. Not for USD scene inspection — use usd-tools for that.

dcc-mcp/dcc-mcp-core · 65 tokens