AGENT SKILL

unreal-material

Focused workflow for creating, editing, validating, and applying Unreal Engine Material assets through UEEditorMCP. Use for Material graphs, Material Instances, Custom HLSL nodes, material compiler diagnostics, and material assignment to actors/components.

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

01 前言 Front Matter

name
unreal-material
description
Focused workflow for creating, editing, validating, and applying Unreal Engine Material assets through UEEditorMCP. Use for Material graphs, Material Instances, Custom HLSL nodes, material compiler diagnostics, and material assignment to actors/components.

02 资源文件 1

03 SKILL.md 正文

Unreal Material MCP Skill

Context

Use this skill for Material asset creation, graph edits, parameter setup, Custom nodes, Material Instances, post-process materials, compile diagnostics, and applying materials to actors/components.

Preconditions

  1. Confirm editor connectivity with ue_ping.
  2. For unknown material actions, run ue_actions_search("material") and ue_actions_schema(action_id=...).
  3. When renderer/compiler behavior is unclear, resolve engine source from .uproject and search <EngineRoot>/Engine/Source read-only.

Standard Workflow

  1. Plan material domain, blend mode, shading model, parameters, expressions, and target outputs.
  2. Create or reuse the asset. Use if_exists="overwrite" only for deterministic regeneration; use reuse when preserving edits.
  3. Add expressions with stable explicit node_name values. Never use empty names or None/NAME_None for parameter keys.
  4. Wire expressions to each other, then to material outputs.
  5. Set expression and material properties.
  6. Run material.auto_layout, then material.auto_comment if comments are useful.
  7. Compile with material.compile and inspect structured diagnostics.
  8. Refresh the editor if the Material Editor is open, inspect with material.get_summary, apply to actors/components if needed, then save.

Core Actions

Area Actions
Asset material.create, material.create_instance, material.set_property, editor.save_loaded_asset
Graph material.add_expression, material.connect_expressions, material.connect_to_output, material.remove_expression
Properties material.set_expression_property, material.apply_to_component, material.apply_to_actor
Validation material.compile, material.get_summary, material.refresh_editor, material.auto_layout, material.auto_comment

Expression And Output Notes

  • Common expression classes: constants, scalar/vector/texture parameters, math ops, TextureSample, TextureObjectParameter, StaticSwitchParameter, MaterialFunctionCall, SceneTexture, Custom.
  • Common input pins: A/B, Input, Alpha, Base/Exponent, Min/Max, and Custom-node dynamic input names.
  • Common outputs: BaseColor, EmissiveColor, Metallic, Roughness, Specular, Normal, Opacity, OpacityMask, WorldPositionOffset.
  • For placeholder texture sampling, prefer a visually distinct built-in texture such as /Engine/EditorShellMaterials/T_BaseButton.T_BaseButton after verifying it exists.

Custom HLSL

When the task involves a Custom node:

  1. Read references/custom-hlsl.md.
  2. Choose the correct pipeline before writing nodes: math-only, regular texture sampling, translucent scene sampling, post-process scene sampling, or post-process texture sampling.
  3. Add required graph-side nodes before compiling; do not silently move user-requested sampling out of the Custom node.
  4. Deliver the chosen pipeline, sampling budget if applicable, generated inputs, and compile result.

Diagnostics

  • material.compile should return compiled, error_count, warning_count, and errors[].
  • On failure, inspect structured errors before reading logs.
  • If output looks wrong but compile succeeds, verify material domain/blend/shading model, graph connections, and Custom node return type.
  • For log fallback, use MCP logs filtered to material/shader categories; never raw-read Saved/Logs.
  • Save only the explicit validated material or instance. Use editor.save_all only with user-approved all-dirty-package scope.

Delivery

Report material path, expressions/parameters created, output connections, compile warnings/errors, any actor/component assignments, and remaining manual validation needs.

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