tippinggame/f8framework/f8-features-referencepool-workflow

Claude Code and agent skill by tippinggame/f8framework

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when implementing or troubleshooting ReferencePool feature workflows — C# object pooling via IReference interface in F8Framework.

Install

npx vskill@latest install tippinggame/f8framework/f8-features-referencepool-workflow

SKILL.md

The same SKILL.md was published earlier as tippinggame/f8framework/f8-features-referencepool-workflow.

ReferencePool Feature Workflow

⚠️ IMPORTANT: Before using this feature, you MUST formally initialize F8Framework in the launch sequence. Ensure ModuleCenter.Initialize(this); has run first.

Use this skill when

  • The task is about C# object pooling (not GameObject pooling).
  • The user asks about reducing GC allocation for frequently created/destroyed objects.

Path resolution

  1. Prefer project source at Assets/F8Framework.
  2. For usage docs, read: Assets/F8Framework/Tests/ReferencePool/README.md

Sources of truth

  • Runtime module: Assets/F8Framework/Runtime/ReferencePool
  • Test docs: Assets/F8Framework/Tests/ReferencePool

Key classes and interfaces

ClassRole
ReferencePoolStatic pool manager. Add, Acquire, Release, Remove.
IReferenceInterface for poolable objects. Must implement Clear().

API quick reference

csharp
// Implement IReference
public class AssetInfo : IReference
{
public string Path;
public void Clear()
{
Path = null; // Reset state for reuse
}
}
// Pre-populate pool
ReferencePool.Add<AssetInfo>(50);
// Acquire from pool (creates if empty)
AssetInfo info = ReferencePool.Acquire<AssetInfo>();
// Release back to pool (calls Clear() automatically)
ReferencePool.Release(info);
// Remove all pooled instances of type
ReferencePool.RemoveAll(typeof(AssetInfo));

Workflow

  1. Implement IReference on classes that are frequently allocated.
  2. Implement Clear() to reset all fields to default values.
  3. Optionally pre-populate with Add<T>(count).
  4. Use Acquire<T>() instead of new T().
  5. Use Release(obj) instead of letting GC collect.
  6. Clean up with RemoveAll() when pool is no longer needed.

Common error handling

ErrorCauseSolution
Stale dataClear() doesn't reset all fieldsReset all fields in Clear()
Double releaseReleasing same object twiceTrack released state or null reference after release

Cross-module dependencies

  • Used internally by various F8 modules for object reuse.

Output checklist

  • IReference implemented with proper Clear().
  • Pool size appropriate for use case.
  • Validation status and remaining risks.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
870
Repository forks
139
7-day trend score
34

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tippinggame/f8framework/f8-features-referencepool-workflow/badge)](https://verified-skill.com/skills/tippinggame/f8framework/f8-features-referencepool-workflow)

Something wrong with this skill or its page? Tell us.