Generate Code for Multiple C# Types

VerifiedSafe

Generates C# source code files for multiple or all object types in a NovaDB branch. Useful when you need to batch-generate code for an entire data model or a subset of types, saving each run to disk with optional path control.

Sby Skills Guide Bot
DevelopmentIntermediate
706/2/2026
Claude Code
#csharp#code-generation#novadb#types

Recommended for

Our review

Generates C# code for multiple or all object types in a NovaDB branch.

Strengths

  • Batch generation saves time
  • Filtering by IDs to target specific types
  • Automatic subdirectory creation

Limitations

  • Only for C# language
  • Only works with NovaDB
  • Not suitable for single-type generation
When to use it

When you need to generate C# code for multiple NovaDB object types in a branch.

When not to use it

For generating code for a single type or in a language other than C#.

Security analysis

Safe
Quality score90/100

The skill only invokes a dedicated code generation tool that writes output to disk. No shell commands, network calls, or path traversal are possible; `targetPath` is restricted to relative paths. There is no risk of data exfiltration or system damage.

No concerns found

Examples

Generate code for all types
Generate C# code for all object types in branch 2100347.
Generate code for specific types
Generate C# code for types 100, 200 in branch 2100347.

name: generate-code-for-types description: "Generate C# code for multiple or all object types in a branch." user-invocable: false allowed-tools: novadb_cms_get_code_generator_types

Generate Code for Types

Generate C# code for multiple or all object types in a branch and save to disk. ONLY for multi-type code generation — NOT for single-type generation or any other operations.

Scope

This skill ONLY handles: Generating C# source code for multiple or all object types in a branch.

For generating code for a single type → use generate-code-for-type

Note: NovaDB object IDs start at 2²¹ (2,097,152). All IDs in examples below are samples — always use real IDs from your system.

Tools

  1. novadb_cms_get_code_generator_types — Generate code for types and save to disk

Parameters

{
  "branch": "2100347",
  "language": "csharp",
  "ids": "100,200",
  "targetPath": "types.cs"
}
  • branch — Numeric branch ID (int32, required). Always use the branch the user is currently working on.
  • languageAlways use "csharp". This is the only supported language. (string, required)
  • ids — Comma-separated type IDs to filter (optional, omit for all types)
  • targetPath — (Optional) Relative path, e.g. "types.cs" or "codegen/types.cs". Default: codegen-<branch>-<language>.cs. Subdirectories are created automatically. Absolute paths and path traversal (../) are rejected.

Important

  • The language parameter must be "csharp" — no other language is supported.
  • Omit ids to generate code for all types in the branch.
  • To generate for specific types only, pass their IDs as a comma-separated string.

Response

JSON metadata object:

{
  "filePath": "types.cs",
  "sizeBytes": 98765,
  "contentType": "text/plain"
}

Common Patterns

Language Parameter

Only "csharp" is supported. No other languages are available.

Generating for All Types

Omit the ids parameter to generate code for all types in the branch.

Reading the Generated Code

Read the saved file to inspect or process the generated C# source code.

Related skills