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
6/2/2026
Claude Code
#csharp#code-generation#novadb#types

Recommended for

Automated summary

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

How this analysis is made

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.
  • language — Always 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.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/generate-code-for-multiple-c-types-mm5t8bfa/download' --output '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md.part' && mv '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md.part' '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): novadb_cms_get_code_generator_types

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md' && test -s '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/generate-code-for-types' && cp -R '.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa' '.claude/skills/generate-code-for-types'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa'

openskills read 'generate-code-for-multiple-c-types-mm5t8bfa'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/generate-code-for-multiple-c-types-mm5t8bfa/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills