neo-csharp-interface-generator

neo-csharp-interface-generator is a skill for Claude Code, Codex from Benknightdark/neo-skills. It costs 59 tokens per session (580 once invoked), scanned A, original, MIT.

A C# interface generator that extracts eligible public members from an existing class into an interface named with an I prefix.

In plain words
What is it for?
Use it to create, append, or replace a matching C# interface in a new or existing file.
Why use it?
It removes repetitive interface-writing work while enforcing rules such as getter-only properties and excluding virtual or non-public members.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create, append, or replace a matching C# interface in a new or existing file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benknightdark/neo-skills/neo-csharp-interface-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Benknightdark/neo-skills --skill neo-csharp-interface-generator
Clone the repo
git clone --depth 1 https://github.com/Benknightdark/neo-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neo-csharp-interface-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-csharp-interface-generator/github.svg)](https://agentmods.dev/skills/benknightdark/neo-skills/neo-csharp-interface-generator)
Your own site
<a href="https://agentmods.dev/skills/benknightdark/neo-skills/neo-csharp-interface-generator"><img src="https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-csharp-interface-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neo-csharp-interface-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/benknightdark/neo-skills/neo-csharp-interface-generator"><img src="https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-csharp-interface-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.00580
Opus 5 $0.00030 $0.00290
Sonnet 5 $0.00012 $0.00116
Haiku 4.5 $0.00006 $0.00058

Measured 10d ago against content hash 8a5cbfe934f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

neo-csharp-interface-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/neo-csharp-interface-generator/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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).

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 47 lines · 59 tokens per session scan A 8a5cbfe934f3

Subscribe to this mod's changes

neo-csharp-interface-generator is a skill published in the GitHub repository Benknightdark/neo-skills (7 stars, last pushed 4d ago), licensed MIT. It adds 59 tokens to every session and 580 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

csharp-dotnet

Use when building on .NET 8+ with C# 12. Covers nullable reference types, records, async/await correctness, minimal APIs, dependency injection, and EF Core query performance.

nimadorostkar/Claude-Skills-collection · 44 tokens

winui-wpf-migration

Migrate WPF applications to WinUI 3 — namespace replacement (System.Windows → Microsoft.UI.Xaml), control mapping (DataGrid→ListView, WrapPanel→ItemsRepeater, TabControl→TabView), threading (Dispatcher→DispatcherQueue), imaging (System.Drawing→BitmapImage), MVVM conversion to CommunityToolkit.Mvvm, and…

microsoft/win-dev-skills · 100 tokens

migrate-xunit-to-mstest

Convert .NET tests from xUnit.net v2/v3 to MSTest v4 while preserving VSTest or MTP. Use for replacing xunit packages, Fact/Theory/InlineData/MemberData, assertions, IClassFixture/ICollectionFixture, ITestOutputHelper, TestContext cancellation, traits/Owner, skips, timeouts, and xUnit parallelization. Also use when a…

managedcode/dotnet-skills · 141 tokens

migrate-xunit-to-xunit-v3

Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…

managedcode/dotnet-skills · 149 tokens

wpf

Build and modernize WPF applications on .NET with correct XAML, data binding, commands, threading, styling, and Windows desktop migration decisions. USE FOR: working on WPF UI, MVVM, binding, commands, or desktop modernization; migrating WPF from .NET Framework to .NET; integrating newer Windows capabilities into a…

managedcode/dotnet-skills · 122 tokens

mcp

Build or consume Model Context Protocol (MCP) servers and clients in .NET using the official MCP C# SDK, including stdio, Streamable HTTP, tools, prompts, resources, and capability negotiation. USE FOR: .NET MCP servers or clients; stdio versus HTTP transport choices; tools, resources, prompts, completions, and…

managedcode/dotnet-skills · 123 tokens