/prometheus-react-skills:entity-gcfrom prometheus-react-skills
Slash command /entity-gc — design application-level eviction for @prometheus-ags/prometheus-entity-management: removeEntity for stale entities, clearPatch for UI overlays, list refresh after bulk delete, route-based cleanup, and policies for long-lived sessions. Notes library has no automatic GC yet.
Ships in prometheus-react-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
@prometheus-ags/prometheus-entity-management does not ship automatic entity garbage collection (see root CLAUDE.md limitations). All “GC” is explicit application policy.
| API | Effect |
|---|---|
removeEntity(type, id) | Removes canonical entity from entities |
clearPatch(type, id) | Removes local patch overlay |
invalidateLists(key) / store list mutations | Forces refetch; does not delete entities by itself |
Use a dedicated EntityType (e.g. "SearchHit") for disposable results. On route leave, iterate known ids and removeEntity.
Keep list ids aligned with visible window: after refetch with new filter, old entities may remain in memory until explicitly removed — optional sweeper removes entities not referenced by any mounted list query (app-specific bookkeeping).
Clear sensitive types or full session: implement app resetGraph() that reinitializes store state (if you expose a reset) or removes known types. Note: core store may not export full reset — you may need useGraphStore.setState in a controlled bootstrap module (treat as advanced; coordinate with maintainers).
After delete mutation, library CRUD paths update lists; if manual, call setListResult without deleted id or refetch.
removeEntity for every navigation without tracking referencessrc/graph.ts (removeEntity, clearPatch)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-react-skills28 skills in this plugin
/entity-auditSlash command /entity-audit — run full codebase audit against @prometheus-ags/prometheus-entity-management CLAUDE.md rules: component/store boundaries, hook I/O, registerSchema coverage, JSDoc on public hooks, and realtime/list patterns. Produces a severitized report using references/audit-checklist.md.
/entity-crud-formBuild EntityFormSheet and EntityDetailSheet configurations from FieldDescriptor arrays: field types, enum options, readonly/create/edit flags, custom editControl/render, and wiring to useEntityCRUD buffers and actions.
/entity-Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026