skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
muharremtozan/unity-agent-skills55 installs

unity-decorator-pattern

Dynamically modify object behavior by wrapping. Perfect for buffs, debuffs, and stat calculations.

How do I install this agent skill?

npx skills add https://github.com/muharremtozan/unity-agent-skills --skill unity-decorator-pattern
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill is safe. It provides a standard implementation of the Decorator design pattern for Unity developers to manage game stats. The provided code templates and documentation focus solely on C# software engineering practices and do not contain any malicious patterns, network operations, or unauthorized file access.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Unity Decorator Pattern

Minimal decorator pattern for stat modification.

Core Features

  1. Generic Interface: IDecorator<T> for any value type
  2. Stat Modifiers: Percentage and flat modifications
  3. Composable: Stack multiple decorators

Core Files (1 file)

  • Decorator.cs.txt: Complete decorator pattern (interface + base + modifiers)

Usage

IDecorator<float> damage = new BaseStat(100);
damage = new PercentageModifier(damage, 0.2f); // +20%
damage = new FlatModifier(damage, 10); // +10
float final = damage.GetValue(); // 130

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/muharremtozan/unity-agent-skills/unity-decorator-pattern">View unity-decorator-pattern on skillZs</a>