Generate project artifact

Generate project artifacts following established patterns via the /generate command.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/Rafael-Rueda/sardius --skill generate-project-artifact
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generate project artifact
Source: https://github.com/Rafael-Rueda/sardius/tree/main/.claude/skills/generate
Command: npx skills add https://github.com/Rafael-Rueda/sardius --skill generate-project-artifact

SYSTEM DOCUMENTATION & REQUIREMENTS

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:

  1. First, the skill will automatically run structure_understander to understand the project architecture
  2. Then it will consult code_understander references for the entity pattern
  3. 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.

Frequently Asked Questions about Generate project artifact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate code artifacts that follow my project's established patterns?

Generate project artifacts using the `/generate [artifact] [bounded-context] [name]` command, which automatically validates existing patterns through structure and code understanding before creating files that match your codebase conventions.

Can I use this to create NestJS entities and services that match my DDD project structure?

Yes. This skill generates DDD artifacts like entities, services, repositories, and controllers for NestJS projects, ensuring each new file adheres to your bounded context patterns and TypeScript conventions.

What happens before my artifact is actually generated?

The skill runs structure_understander to map your project layout and code_understander to extract pattern references, then validates your artifact choice before writing code that matches existing conventions.

How do I know the generated artifact will be correct for my project?

The `/generate` command validates artifact choices against your codebase patterns and automatically includes proper interfaces, getters, setters, static methods, and established conventions before file creation.

What types of artifacts can I generate in a bounded context?

Generate entities, use-cases, repositories, controllers, and other domain objects within bounded contexts; the skill creates all required files following your project's DDD architecture and code-generation patterns.