generate_code
Generate a new single file from a specification. Returns structured, saveable content without writing to disk.
Instructions
Generate a brand-new single file (Repository, Service, Controller, DTO, Entity, Validator, Middleware, Background Job, Migration, Stored Procedure, View, Interface, Extension, Configuration, etc.) from a specification using DeepSeek. Returns structured, saveable file content — never writes to disk itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Full specification of what to generate: purpose, inputs/outputs, behavior, dependencies | |
| model | No | Model to use | |
| language | No | Target programming language (e.g. typescript, csharp, python) | |
| provider | No | AI Provider | |
| file_name | No | Desired file name | |
| file_type | No | Kind of file (e.g. Repository, Service, Controller, DTO, Entity, Validator, Middleware, Background Job, Migration, Stored Procedure, View, Interface, Extension, Configuration) | |
| framework | No | Framework in use (e.g. ASP.NET Core, NestJS, Express, Spring Boot) | |
| architecture | No | Architecture to follow (e.g. Clean Architecture, Onion, Vertical Slice, Modular Monolith, Microservices, CQRS, Repository+UoW) | |
| coding_style | No | Coding style/formatting conventions to follow | |
| project_rules | No | Project-specific rules or constraints the generated code must respect | |
| target_folder | No | Target folder/namespace the generated file(s) belong to | |
| design_pattern | No | Specific design pattern(s) to apply | |
| project_context | No | Existing project tree, dependencies, namespaces, or conventions the output must match | |
| naming_convention | No | Naming convention to follow (e.g. PascalCase classes, camelCase methods) |