AGENT SKILL

unreal-python

Unified guide for Unreal Editor Python scripting, API search from unreal.py stubs, visual verification, remote execution, diagnostics, and VS Code debugpy setup. Use when writing UE Python scripts, querying Python API availability, or validating editor automation.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
1

01 前言 Front Matter

name
unreal-python
description
Unified guide for Unreal Editor Python scripting, API search from unreal.py stubs, visual verification, remote execution, diagnostics, and VS Code debugpy setup. Use when writing UE Python scripts, querying Python API availability, or validating editor automation.

02 资源文件 45

03 SKILL.md 正文

Unreal Python Skill

Context

Use this skill for Unreal Editor Python scripts, automation probes, API discovery, asset diagnostics, screenshots, PIE capture, or VS Code debugging.

Local Structure

unreal-python/
  scripts/       CLI tools: api-search, remote-execute, setup-vscode, capture, diagnostics
  lib/           reusable Python libraries
  references/    detailed docs loaded on demand
  examples/      small task examples
  assets/        VS Code launch/task templates
  plugin/        optional ExtraPythonAPIs plugin

Workflow

  1. Clarify only blocking requirements; otherwise infer a minimal script and validate it.
  2. Search existing project scripts and examples before writing new helpers.
  3. Verify API availability with scripts/api-search.py against Intermediate/PythonStub/unreal.py.
  4. For API gaps or ambiguous behavior, read references/cpp-source-investigation.md.
  5. Prefer an existing typed Action or official Toolset over Python. Use Python only when discovery proves a capability gap or the task is explicitly Python authoring.
  6. Implement one focused script or probe at a time.
  7. Execute through a currently discovered Python-capable Action/Toolset, or use scripts/remote-execute.py when its bridge prerequisites are verified. Do not assume an editor.execute Action exists.
  8. Validate with diagnostics and screenshots/PIE capture when the change has visual or runtime impact.

Transactions And Asset Safety

Any script that mutates assets should use an editor transaction and explicit dirty/save behavior:

with unreal.ScopedEditorTransaction("Describe the edit"):
    asset.modify()
    asset.set_editor_property("PropertyName", value)

Validate asset paths, world context, selected objects, and package writability before mutation. Do not save levels or assets unless the task calls for it or validation requires it.

API Search

Use references/api-search.md for full usage.

python scripts/api-search.py actor
python scripts/api-search.py unreal.Actor.on_destroyed
python scripts/api-search.py unreal.Actor.*location*
python scripts/api-search.py -c widget
python scripts/api-search.py -m collision

The tool auto-detects Intermediate/PythonStub/unreal.py; pass --input only when needed.

Visual Verification

Use the capture tools only when the task needs visual proof:

Scenario Tool
Static scene or level setup scripts/orbital-capture.py
Blueprint/asset editor view scripts/window-capture.py
Runtime/PIE behavior scripts/pie-capture.py
Asset health check scripts/asset-diagnostic.py

Read references/capture-scripts.md and references/editor-capture.md only when using those tools.

VS Code Debugging

Use references/vscode-debugger.md when setting up or using F5 debugging.

python scripts/setup-vscode.py
python scripts/remote-execute.py --file scripts/start_debug_server.py

Then attach with the generated debug configuration.

References

Delivery

Report script path, execution method, validation artifacts, assets touched/saved, and any API limitation or manual editor step left.

04 同仓库更多 Skills

welflau
welflau/ai-dev-system

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 3
welflau
welflau/ai-dev-system

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

★ 3
welflau
welflau/ai-dev-system

web-artifacts-builder

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

★ 3
welflau
welflau/ai-dev-system

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

★ 3
welflau
welflau/ai-dev-system

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

★ 3
welflau
welflau/ai-dev-system

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

★ 3