MuharremTozan/Agentic-Duel / .agent/skills/unity-memento-pattern
unity-memento-pattern
VerifiedImplements the Memento pattern for capturing and restoring object states. Perfect for Loadout managers, Checkpoints, and Undo/Redo systems.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.1 KB |
| assets/code/HotbarMementoExample.cs.txt | markdown | 1.1 KB |
| assets/code/IMemento.cs.txt | markdown | 634 B |
| assets/code/LoadoutManager.cs.txt | markdown | 1.1 KB |
| references/guide.md | markdown | 1.2 KB |
assets/code/IMemento.cs.txt
View on GitHubnamespace Standard.Patterns.Memento {
/// <summary>
/// Contract for an object that can capture its state into a memento.
/// </summary>
public interface IOriginator<T> {
IMemento<T> Save();
void Restore(IMemento<T> memento);
}
/// <summary>
/// Type-safe container for state snapshots.
/// </summary>
public interface IMemento<T> {
T State { get; }
}
/// <summary>
/// Generic implementation of a Memento.
/// </summary>
public class Memento<T> : IMemento<T> {
public T State { get; }
public Memento(T state) => State = state;
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |