askill
ue5-python

ue5-pythonSafety 95Repository

Comprehensive guide for developing UE5 Editor Python scripts with proper workflow and best practices. Use when the user wants to (1) write a UE5 Python script, (2) mentions writing a script in a UE5 project context, or (3) has a requirement that Claude identifies can be fulfilled by a UE5 Python script (e.g., batch processing game assets, automating editor tasks).

0 stars
1.2k downloads
Updated 1/19/2026

Package Files

Loading files...
SKILL.md

UE5 Python Script Development Guide

A workflow-oriented guide for developing reliable UE5 Editor Python scripts.

Prerequisites

[Critical] ue5-visual subagent and ue-mcp server must be available. If not present, refuse to use this skill.

CLI scripts for capture and diagnostics are in scripts/. See Capture Scripts Reference for details.

Development Workflow

Phase 1: Requirements

Clarify requirements with user using AskUserQuestions tool until you have 95% confidence in understanding their intentions.

Phase 2: Planning

Do not implement yet - just plan.

[Critical] Every step implements and tests ONE script. Three types allowed:

Script Types

TypePurposeTesting Steps
Scene-SetupSetup static scene (atmosphere, lighting, actors)diagnostic -> orbital capture -> ue5-visual analysis
ConfigurationConfigure properties, tags, physics, collisionsdiagnostic -> window capture -> ue5-visual analysis
Integration TestRun scene in PIE modePIE capture -> ue5-visual analysis

Testing Protocol

Each script step has three substeps:

  • x.1 - Run asset-diagnostic.py to check for issues, fix all errors/warnings
  • x.2 - Capture screenshots (orbital/window/PIE based on script type)
  • x.3 - MANDATORY: Use ue5-visual subagent to analyze screenshots

Example Plan

For "Create island level with two fighting robots":

## Step 1: Scene-setup - create_island_level.py
Setup island, sea, atmosphere, light, and two robots
- Step 1.1: Run asset diagnostic, fix issues
- Step 1.2: Capture orbital screenshots
- Step 1.3: [MANDATORY] ue5-visual analysis

## Step 2: Configuration - configure_robots.py
Configure collisions, physics, attack abilities
- Step 2.1: Run asset diagnostic, fix issues
- Step 2.2: Capture window screenshots
- Step 2.3: [MANDATORY] ue5-visual analysis

## Step 3: Integration Test - run_in_pie.py
Setup PIE capture, play level, collect screenshots
- Step 3.1: [MANDATORY] ue5-visual analysis

[Critical] Add ALL substeps to todo list using TodoWrite.

Script Organization

Organize scripts in task-specific subdirectory:

${CLAUDE_PROJECT_DIR}/Scripts/<task_name>/
    ├── create_island_level.py
    ├── configure_robots.py
    ├── tmp/                    # Test/debug scripts
    └── screenshots/            # Verification screenshots
        ├── orbital/
        ├── editor/
        └── pie/

Phase 3: Implementation

  1. [Critical] Check Common Pitfalls for related documents

  2. Follow Best Practices

  3. Reference example scripts:

  4. Use ue-mcp tool editor.execute to run scripts

  5. Use ue5-api-expert to verify API usage when unsure

Visual Verification

ScenarioScriptKey Parameters
Static sceneorbital-capture.pypreset, distance, target_x/y/z
Blueprint/Assetwindow-capture.pycommand, asset_path, tab
PIE runtimepie-capture.pycommand, interval, multi_angle

Presets for orbital capture: orthographic (6 views), perspective (4 views), birdseye (4 views), all (14 views)

See Capture Scripts Reference for full parameter documentation.

[Critical] Do NOT skip visual analysis. Use ue5-visual agent after every capture.

Asset Diagnostic

Run before visual verification to identify issues:

  • Use asset_diagnostic Python module via editor.execute
  • Check for common issues in levels, actors, and blueprints

Fix all errors and warnings before proceeding. See Asset Diagnostic Reference.

Additional Resources

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

96/100Analyzed 2/10/2026

An exceptionally well-structured skill for UE5 Python development. It features a sophisticated pre-tool hook to enforce transaction safety and a clear, multi-phase workflow for asset creation and verification.

95
95
85
95
98

Metadata

Licenseunknown
Version-
Updated1/19/2026
Publisherchengdagong

Tags

apigithub-actionstesting