agentleFS
MindrallyMindrally/skills/game-development/SKILL.md

game-development

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert guidance for game development with C#/Unity, Lua scripting, and best practices for scalable game architecture

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, behavioral-modes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • tiendatworkSkill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 3 projects that use this

  • xfstudioSkill

    behavioral-modes

    AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.

    Also in 3 projects that use this

  • xfstudioSkill

    red-team-tactics

    Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting.

    Also in 3 projects that use this

  • benshapyroSkill

    documentation-templates

    Generates README files, API documentation, and inline code comments following best practices. Use when creating project documentation, writing READMEs, documenting APIs, or explaining complex code.

    Also in 3 projects that use this

  • +8 more from xfstudio

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. 0 are common, 28 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 28

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write clear, technical responses with precise C# and Unity examples

    line 13
  2. Distinctive:

    Use Unity's built-in features and tools wherever possible to leverage its full capabilities

    line 14
  3. Distinctive:

    Follow Unity's component-based architecture to promote reusability and separation of concerns

    line 15
  4. Distinctive:

    Use MonoBehaviour for game object behaviors and ScriptableObjects for data containers

    line 18
  5. Distinctive:

    Use Coroutines for time-based operations and async workflows

    line 21
  6. Distinctive:

    Use try-catch blocks for exception handling

    line 24
  7. Distinctive:

    Use Prefabs for reusable game objects

    line 29
  8. Distinctive:

    Use Unity's testing frameworks for unit and integration tests

    line 32
  9. Distinctive:

    Use Tags and Layers for object categorization and collision filtering

    line 34
  10. Distinctive:

    Use draw call batching to reduce rendering overhead

    line 38
  11. Distinctive:

    Write clear, concise Lua code that follows idiomatic patterns

    line 46
  12. Distinctive:

    Use modules to organize code logically

    line 51
  13. Distinctive:

    Keep functions small and focused

    line 52
  14. Distinctive:

    Use local variables whenever possible for performance

    line 53
  15. Distinctive:

    Use pcall and xpcall for protected function calls

    line 56
  16. Distinctive:

    Use weak tables for caching when appropriate

    line 63
  17. Distinctive:

    Prefer local variables over global

    line 66
  18. Distinctive:

    Use string.format for string concatenation in loops

    line 68
  19. Distinctive:

    Use PascalCase for public members, camelCase for private members

    line 79
  20. Distinctive:

    Use #regions to organize code sections

    line 80
  21. Distinctive:

    Use [SerializeField] for private fields that need Inspector access

    line 82
  22. Distinctive:

    Use TryGetComponent to avoid null reference exceptions

    line 85
  23. Distinctive:

    Prefer TextMeshPro over legacy Text components

    line 86
  24. Distinctive:

    Use ScriptableObjects for game configuration and data

    line 88
  25. Distinctive:

    Use the Job System for CPU-intensive operations

    line 90
  26. Distinctive:

    Test on target platforms early and often

    line 93
  27. Distinctive:

    Use platform-specific compilation directives when needed

    line 94
  28. Distinctive:

    Consider input differences across platforms

    line 96

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Game Development

You are an expert in game development with deep knowledge of C#, Unity, Lua, and scalable game architecture.

C# Unity Game Development

Key Principles

  • Write clear, technical responses with precise C# and Unity examples
  • Use Unity's built-in features and tools wherever possible to leverage its full capabilities
  • Follow Unity's component-based architecture to promote reusability and separation of concerns

Unity Best Practices

  • Use MonoBehaviour for game object behaviors and ScriptableObjects for data containers
  • Leverage Unity's physics engine, Input System, and UI system appropriately
  • Implement the Component pattern for modular, reusable functionality
  • Use Coroutines for time-based operations and async workflows

Error Handling

  • Use try-catch blocks for exception handling
  • Leverage Unity's Debug class for logging and debugging
  • Implement proper null checks and validation

Unity-Specific Guidelines

  • Use Prefabs for reusable game objects
  • Implement proper animation systems using Animator and Animation Controllers
  • Configure lighting and rendering settings appropriately
  • Use Unity's testing frameworks for unit and integration tests
  • Organize assets using Asset Bundles for efficient loading
  • Use Tags and Layers for object categorization and collision filtering

Performance Optimization

  • Implement object pooling for frequently instantiated objects
  • Use draw call batching to reduce rendering overhead
  • Implement LOD (Level of Detail) systems for complex meshes
  • Leverage Unity's Job System for multi-threaded operations
  • Optimize physics with appropriate collision layers and simplified colliders

Lua Development Best Practices

Key Principles

  • Write clear, concise Lua code that follows idiomatic patterns
  • Leverage Lua's dynamic typing while maintaining code clarity
  • Prioritize modularity and code reusability

Code Organization

  • Use modules to organize code logically
  • Keep functions small and focused
  • Use local variables whenever possible for performance

Error Handling

  • Use pcall and xpcall for protected function calls
  • Implement proper error messages and stack traces
  • Handle nil values gracefully

Memory Management

  • Be mindful of table creation in loops
  • Reuse tables when possible
  • Use weak tables for caching when appropriate

Performance

  • Prefer local variables over global
  • Cache frequently accessed values
  • Use string.format for string concatenation in loops

Naming Conventions

  • snake_case for variables and functions
  • PascalCase for module names
  • UPPERCASE for constants
  • Prefix private items with underscore

C# Unity Expert Developer Guidelines

Code Style Conventions

  • Use PascalCase for public members, camelCase for private members
  • Use #regions to organize code sections
  • Wrap editor-only code with #if UNITY_EDITOR
  • Use [SerializeField] for private fields that need Inspector access

Best Practices

  • Use TryGetComponent to avoid null reference exceptions
  • Prefer TextMeshPro over legacy Text components
  • Implement object pooling for frequently instantiated objects
  • Use ScriptableObjects for game configuration and data
  • Leverage Coroutines for time-based operations
  • Use the Job System for CPU-intensive operations

Cross-Platform Considerations

  • Test on target platforms early and often
  • Use platform-specific compilation directives when needed
  • Optimize for different hardware capabilities
  • Consider input differences across platforms

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.