跳到正文
TakoAPI
返回技能列表

vbnet-coder-en

由 alexwoo-awso 提供

Coding Agents & IDEs
684下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install alexwoo-awso/vbnet-coder-en

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接