What problem does it solve?
This Skill eliminates the guesswork and manual effort of creating new code artifacts in complex projects. It ensures every new file follows the exact patterns, conventions, and architecture of the existing codebase.
Core Features & Use Cases
- Pattern-Aware Generation: Creates artifacts that perfectly match the project's established conventions.
- Context Preparation: Automatically runs structure and code understanding skills before generation.
- Artifact Validation: Uses the
/generate command to validate artifact choices before implementation.
- Use Case: When you need to add a new "Product" bounded context to a DDD project, use this Skill to generate all required artifacts (Product entity, CreateProduct use-case, Products repository, Products controller) that follow the exact same patterns as existing code.
Quick Start
To generate a new artifact, use the command format:
/generate [artifact] [bounded-context] [name]
For example, to create a new "Order" entity in the "orders" bounded context:
- First, the skill will automatically run
structure_understander to understand the project architecture
- Then it will consult
code_understander references for the entity pattern
- Finally, it will generate a perfectly formatted
order.entity.ts file at src/domain/orders/enterprise/entities/
The artifact will include proper interfaces, getters/setters, static create methods, and follow all established conventions.