unreal-build-config

unreal-build-config is a cursor rule for Cursor from Stramp/Lost-Mines-Phandelver. It costs 0 tokens per session (414 once invoked), scanned A, original, MIT.

Rules for configuring Unreal Engine 5.7 build files. Unreal Engine is a game-development engine, and build files list the engine modules each project part needs.

In plain words
What is it for?
Use them when editing Build.cs or Target.cs files, choosing public and private modules, and configuring project compilation.
Why use it?
They help avoid missing or unnecessary module dependencies, which can cause build failures or slower builds.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when editing Build.cs or Target.cs files, choosing public and private modules, and configuring project compilation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/stramp/lost-mines-phandelver/unreal-build-config
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.

Clone the repo
git clone --depth 1 https://github.com/Stramp/Lost-Mines-Phandelver

Made for: Cursor.

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 unreal-build-config

README.md
[![agentmods](https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/unreal-build-config/github.svg)](https://agentmods.dev/rules/stramp/lost-mines-phandelver/unreal-build-config)
Your own site
<a href="https://agentmods.dev/rules/stramp/lost-mines-phandelver/unreal-build-config"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/unreal-build-config/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 unreal-build-config

Your own site · 80×15
<a href="https://agentmods.dev/rules/stramp/lost-mines-phandelver/unreal-build-config"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/unreal-build-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 414 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.00000 $0.00414
Opus 5 $0.00000 $0.00207
Sonnet 5 $0.00000 $0.00083
Haiku 4.5 $0.00000 $0.00041

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

Security

Grade A, and why

unreal-build-config 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 9d 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.

.cursor/rules/unreal-build-config.mdc · 61 lines

What it actually says

Build Configuration - Unreal Engine 5.7

Build.cs Files

  • Defines project module dependencies
  • Use PublicDependencyModuleNames for modules used in public headers
  • Use PrivateDependencyModuleNames for modules used only in .cpp
  • Keep minimal dependencies for faster builds
  • Add only what is necessary

Common Modules

  • Core, CoreUObject, Engine - Always included (basic)
  • InputCore, EnhancedInput - For input
  • UMG, Slate, SlateCore - For UI
  • GameplayTasks - For async tasks
  • AIModule - For AI
  • OnlineSubsystem - For online features

Optimized Build.cs Example

public class MyProject2 : ModuleRules
{
    public MyProject2(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

        // Public dependencies (used in headers)
        PublicDependencyModuleNames.AddRange(new string[] {
            "Core",
            "CoreUObject",
            "Engine",
            "InputCore",
            "EnhancedInput"
        });

        // Private dependencies (used only in .cpp)
        PrivateDependencyModuleNames.AddRange(new string[] {
            // Add only what is necessary
        });
    }
}

Target.cs Files

  • Defines build configurations for different targets
  • MyProject2.Target.cs - Game build
  • MyProject2Editor.Target.cs - Editor build
  • Use ExtraModuleNames to include custom modules

Best Practices

  • ALWAYS regenerate project files after modifying .Build.cs
  • Add dependencies only when necessary
  • Use PrivateDependencyModuleNames when possible (more efficient)
  • Avoid circular dependencies between modules
  • Document non-obvious dependencies
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. 9d ago First seen · 61 lines · 0 tokens per session scan A fbac2a09fb0b

Subscribe to this mod's changes

unreal-build-config is a cursor rule published in the GitHub repository Stramp/Lost-Mines-Phandelver (2 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 414 tokens. 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-31.