Help us improve
Share bugs, ideas, or general feedback.
From hyrex-ddd
Scaffold an aggregate root with entity, value objects, repository interface, domain events, and test stubs
npx claudepluginhub akhilyad/deployy --plugin hyrex-dddHow this skill is triggered — by the user, by Claude, or both
Slash command
/hyrex-ddd:ddd-aggregate <context> <aggregate-name><context> <aggregate-name>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Scaffold a complete aggregate root inside a bounded context.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
Share bugs, ideas, or general feedback.
Scaffold a complete aggregate root inside a bounded context.
Parse $ARGUMENTS as <context-name> <aggregate-name> (both kebab-case). The context must already exist under src/.
Validate: Confirm src/<context>/domain/ exists. If not, suggest running /ddd-context <context> first.
Pre-task hook: npx @hyrex/cli@latest hooks pre-task --description "DDD aggregate: <aggregate-name> in <context>"
Create aggregate root entity:
src/<context>/domain/entities/<aggregate-name>.entity.tsequals() based on identityAggregateRoot interfaceCreate value objects:
src/<context>/domain/value-objects/<aggregate-name>-id.value-object.tsCreate repository interface:
src/<context>/domain/repositories/<aggregate-name>.repository.tsfindById, save, delete methodsCreate domain events:
src/<context>/domain/events/<aggregate-name>-created.event.tssrc/<context>/domain/events/<aggregate-name>-updated.event.tsCreate unit test stubs:
src/<context>/domain/entities/<aggregate-name>.entity.test.tsdescribe/it with should [behavior] when [condition] namesUpdate barrel exports: Add new files to the relevant index.ts barrel files.
Store in domain model graph:
mcp__hyrex__agentdb_hierarchical-store --parent "context:<context>" --child "aggregate:<aggregate-name>" --relation "contains"
mcp__hyrex__memory_store --key "ddd-aggregate-<context>-<aggregate-name>" --value "AGGREGATE_SUMMARY" --namespace tasks
Post-task hook: npx @hyrex/cli@latest hooks post-task --task-id "ddd-aggregate-<aggregate-name>" --success true --train-neural true