/prometheus-react-skills:entity-crud-relationsfrom prometheus-react-skills
Register EntitySchema graphs with registerSchema: belongsTo, hasMany, manyToMany, listKeyPrefix alignment, invalidateTargetLists, globalListKeys, and verification that cascadeInvalidation matches list query keys.
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.
/entity-crud-relations — Schema registration and cascade invalidationreadRelations in detail panels (populated via useEntityCRUD)src/crud/relations.ts)registerSchema(schema: EntitySchema) — idempotent replace per typeEntitySchema: type, optional relations, optional globalListKeysBelongsToRelation: foreignKey, targetType, optional invalidateTargetLists (prefix matching)HasManyRelation: targetType, foreignKey on child, listKeyPrefix(parentId) → same shape as child list’s baseQueryKey / serialized keyManyToManyRelation: targetType, localArrayField, listKeyPrefix(thisId)cascadeInvalidationCalled automatically after successful create/update/delete inside useEntityCRUD. Your job is to register accurate schemas so it can:
hasMany edges registered on other typesreadRelations(type, entity)Returns a plain object of joined data for detail UI. Does not fetch; reads the graph and list slot for ids. Ensure child lists are loaded elsewhere when you expect non-empty arrays.
listKeyPrefix return value serializes to the same key useEntityView / useEntityList uses (compare with serializeKey mentally or in dev logs)globalListKeys used sparingly for “any list of this type” invalidationagents/relation-wirer.md
prometheus-entity-skills/entity-graph-crud/SKILL.md
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
28 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
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-react-skills