vbnet

Visual Basic .NET for legacy .NET applications. Use for .vb files.

7 stars

Best use case

vbnet is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Visual Basic .NET for legacy .NET applications. Use for .vb files.

Teams using vbnet should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/vbnet/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/languages/vbnet/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/vbnet/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How vbnet Compares

Feature / AgentvbnetStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Visual Basic .NET for legacy .NET applications. Use for .vb files.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# VB.NET

VB.NET is a first-class citizen on .NET, sharing the same runtime/libraries as C#. While C# gets new syntax first, VB.NET remains supported in .NET 8+.

## When to Use

- **Legacy Migration**: Porting VB6 apps to .NET.
- **Readability**: Specific industries prefer the verbose, English-like syntax (`End If`).
- **Office Automation**: Integration with massive Excel/Access logic.

## Core Concepts

### Case Insensitivity

`Dim X` and `dim x` are the same.

### Modules

Equivalent to static classes.

### My Namespace

`My.Computer`, `My.User`. Shortcuts for common tasks.

## Best Practices (2025)

**Do**:

- **Use `Option Strict On`**: Disables implicit casting (critical for bugs).
- **Target .NET 8**: Move away from .NET Framework 4.8.
- **Use String Interpolation**: `$"Hello {Name}"`.

**Don't**:

- **Don't use `On Error Resume Next`**: Use structured `Try...Catch`.

## References

- [Microsoft VB.NET Guide](https://learn.microsoft.com/en-us/dotnet/visual-basic/)