Skip to content
Skills Library
Programming · Building & coding

neo-csharp-interface-generator

/neo-csharp-interface-generator

Use this skill when the user asks to generate, update, or place a C# interface from an existing class. Trigger for extracting public members, filtering virtual or non-public members, enforcing getter-only properties, and safely creating, appending, or replacing interface blocks.

Repository
neo-skills ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use this skill when the user asks to generate, update, or place a C# interface from an existing class. Trigger for extracting public members, filtering virtual or non-public members, enforcing getter-only properties, and safely creating, appending, or replacing interface blocks.

Original author description

Use this skill when the user asks to generate, update, or place a C# interface from an existing class. Trigger for extracting public members, filtering virtual or non-public members, enforcing getter-only properties, and safely creating, appending, or replacing interface blocks.

How it works

  1. Perceive
  2. Reason
  3. Act
Original SKILL.md headings · 35 lines, 318 words
SKILL.md preview
---
name: neo-csharp-interface-generator
description: >
  Use this skill when the user asks to generate, update, or place a C# interface
  from an existing class. Trigger for extracting public members, filtering virtual
  or non-public members, enforcing getter-only properties, and safely creating,
  appending, or replacing interface blocks.
compatibility: "Supports C# 12/13 and .NET 10.0."
metadata:
  version: "1.0.0"
  category: "Core"
---

# C# Interface Generator Skill Specification

## Perceive
1. **Code Structure Recognition**: Parse C# Class content, identify properties, methods, and access modifiers.
2. **Constraint Check**:
   - Identify members with the `virtual` keyword.
   - Identify non-`public` members.
3. **Environment Awareness**: When the user specifies a target file, read the file content to check for the existence of an Interface with the same name.

## Reason
1. **Interface Generation Logic**:
   - **Naming Convention**: The Interface name must be the Class name prefixed with `I`.
   - **Property Filtering**:
     - **Keep only** simple properties.
     - **Strictly prohibit** properties containing the `virtual` modifier.
     - **Getter Only**: All properties in the interface MUST only have a `get;` accessor. No `set;` or `init;` is allowed.
     - Include only `public` members.
   - **Formatting**: Ensure the generated Interface follows standard C# indentation and brace styles.
2. **Smart Overwrite Strategy**:
   - If the target file does not exist: Plan to create a new file with necessary namespaces.
   - If the target file exists but has no Interface with the same name: Plan to append the new Interface to the end of the file.
   - If the target file exists and already contains an Interface with the same name:
     - Use regular expressions or block matching to find the start and end positions of the Interface.
     - Plan to replace only that specific block, preserving other classes, interfaces, or using declarations in the file.

## Act
1. **Code Generation**: Output a C# Interface that complies with the Reason logic.
2. **User Confirmation**:
   - After generation, pause and ask the user: "In which file should this Interface be stored? (Please provide a relative path)".
3. **Execution Write**:
   - Based on the user's response, perform `read_file` (if the file exists) -> logical replacement -> `write_file`.
   - Inform the user of the result (created, appended, or overwritten).
4. **Output Language**: The final output to the user must be in **Traditional Chinese (Taiwan)**.

Versions

The database has no other skills named neo-csharp-interface-generator.

Database snapshot: 13.11.2026 · package version 5baf23fb47df (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100docs-data-type-list-members
    Use when extracting and categorizing public members from a Scala data type for documentation completeness checks.
  • 95zlua-lua-call-csharp
    Calls C# from Lua through the CSharp root: assemblies, types, constructors, static and instance members, fields, properties, and events. Use when writing Lua that touches CSharp, constructs a C# object, or reads and writes C# members.
  • 90neo-csharp
    Use this skill when writing, reviewing, debugging, or modernizing C# code in .NET projects. Trigger for .cs/.csproj files, C# language-version questions, nullable reference types, records, pattern matching, async/cancellation, or version-appropriate syntax from C# 10+.
  • 95docs-report-method-coverage
    Use when checking if documentation covers all public members of a Scala data type.
  • 96csharp
    Guidelines for building C# applications Triggers on: **/*.cs
  • 81csharp-ko
    C# 애플리케이션 개발을 위한 코드 작성 규칙 by @jgkim999 Triggers on: **/*.cs

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.