Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

vbnet-coder-en

bởi alexwoo-awso

Coding Agents & IDEs
684Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

**Target**: Claude-Code, Codex, AI coding agents.

Mô tả

Kỹ năng này làm gì

A reference document for AI coding agents generating VB.NET code. Covers naming conventions, file structure, async patterns, LINQ usage, error handling, and anti-patterns for .NET Framework 4.8+ and .NET 6/7/8+.

Without Option Strict On enforcement, AI-generated VB.NET defaults to late binding and implicit conversions that compile cleanly but fail at runtime.

Khi nào nên dùng

  • Writing async database access methods with proper CancellationToken support
  • Scaffolding new VB.NET class files with Option Strict and correct file structure
  • Generating XML-documented public APIs following .NET naming conventions
  • Refactoring legacy VB.NET code to remove Hungarian notation and magic numbers
  • Catching AI-generated anti-patterns like blocking async calls and missing Using statements

Quy trình ví dụ

ĐẦU VÀO

User asks: Write an async method to fetch a customer by ID from a database

AGENT
  1. 1

    Adds Option Explicit On, Option Strict On, Option Infer On at file top

  2. 2

    Declares method as Public Async Function with Async suffix and CancellationToken parameter

  3. 3

    Wraps database connection in a Using statement to ensure disposal on exception

  4. 4

    Applies ConfigureAwait(False) on awaited calls for library-safe execution

  5. 5

    Adds XML documentation with summary, param, returns, and exception tags

ĐẦU RA

A fully typed async VB.NET method with resource management, XML docs, and no implicit conversions

Cài đặt

clawhub install alexwoo-awso/vbnet-coder-en

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết