CtrlK
BlogDocsLog inGet started
Tessl Logo

code-modernization

Instructions for modernizing and refactoring existing C# / VB.NET code files. Use when asked to refactor, modernize, clean up, review, or improve existing source files in this repository. Covers upgrading to C# 14 / .NET 10 idioms, comment quality, spelling and grammar fixes, XML documentation, and readability improvements.

66

Quality

83%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

71%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is highly actionable — consistently concrete, executable before/after examples for every transformation — with a sensible safety-first workflow (target verification, golden rule, checklist). Its weaknesses are token efficiency (a redundant 27-item checklist, a duplicated namespace rule, one confusingly written section) and the absence of any progressive disclosure: 530 lines of inlined detail that could be split into reference files.

Suggestions

Trim the Refactoring Checklist to only the items not already stated verbatim above (or keep ~8 high-risk checks), and remove the duplicated 'Convert block-scoped namespaces → file-scoped' rule from Formatting Cleanup since it already appears under Namespace and usings.

Rewrite the 'Never deconstruct class names into single words' section in plain language and close its unterminated code fence; the current 'Assume a code fragment or a member name, if a term/an expression is formatted in Pascal Case' phrasing is hard to act on.

Split the body into one-level-deep reference files (e.g. var-policy.md, xml-documentation.md, winforms-modernization.md) and keep SKILL.md as an overview with clearly signaled links; this also improves progressive disclosure navigation.

Add an explicit post-modernization verification step (e.g. 'build the project after applying transformations and revert anything that fails to compile') to close the workflow's validation gap for batch edits.

DimensionReasoningScore

Conciseness

The body never re-teaches concepts Claude already knows and the rules are dense, but there is real tightening opportunity: the 27-item Refactoring Checklist restates nearly every rule already stated above, 'Convert block-scoped namespaces → file-scoped' appears in both the language-constructs and Formatting Cleanup sections, and the 'Never deconstruct class names' rule is awkwardly phrased with an unterminated code fence. Not 4: the duplication is more than a minor trim.

3 / 5

Actionability

Nearly every rule is paired with executable before/after C# examples (e.g. ArgumentNullException.ThrowIfNull, customer?.Order = GetCurrentOrder(), target-typed new(), the field keyword), giving copy-paste-ready guidance that covers the common modernization cases. The one counter-example even shows a construct that will not compile and its correction.

5 / 5

Workflow Clarity

A clear sequence is present: verify the project's actual target before applying C# 14 syntax, a golden-rule safety valve for uncertain transformations (leave as-is + TODO), and a final pre-submission checklist. Not 5: for a batch operation on existing files there is no explicit post-change verification step (e.g. build/compile the project) or fix-and-retry loop.

4 / 5

Progressive Disclosure

The body is well-sectioned with descriptive headers, but at ~530 lines it is a single monolithic file with no bundle references; the detailed var policy, XML documentation examples, and WinForms-specific sections are natural candidates for one-level-deep reference files. This sits between anchor 2 (inlined content that belongs in separate files) and anchor 4 (mostly appropriate placement).

3 / 5

Total

15

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: third-person, concrete, and complete with an explicit 'Use when' clause covering natural trigger verbs. The only gaps are the missing .cs/.vb file-extension keywords and slightly broad trigger verbs that could overlap code-review skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — modernizing and refactoring C#/VB.NET files, upgrading to C# 14 / .NET 10 idioms, comment quality, spelling and grammar fixes, XML documentation, and readability improvements — giving comprehensive coverage of what the skill does. Not 4: unlike 'minor gaps in coverage', every major capability area of the body is named.

5 / 5

Completeness

It explicitly answers both questions: 'Instructions for modernizing and refactoring existing C# / VB.NET code files... Covers upgrading to C# 14 / .NET 10 idioms...' states what, and 'Use when asked to refactor, modernize, clean up, review, or improve existing source files in this repository' states when with concrete trigger phrases.

5 / 5

Trigger Term Quality

'Use when asked to refactor, modernize, clean up, review, or improve existing source files' gives good natural-phrase coverage with synonyms. Not 5: it omits file extensions (.cs, .vb) and common phrasings like 'tidy up' or 'bring code up to date'.

4 / 5

Distinctiveness Conflict Risk

The niche (modernizing existing C#/VB.NET source in this repository) is clearly distinct, and scoping to 'existing' files separates it from new-code generation skills. Not 5: broad trigger verbs like 'review', 'clean up', and 'improve' create minor overlap risk with general code-review and cleanup skills.

4 / 5

Total

18

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (546 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository
dotnet/winforms
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.