vb6-error-handling

vb6-error-handling is a skill for Claude Code from alexcassol/claude-vb6-skills. It costs 272 tokens per session (3,807 once invoked), scanned A, original, MIT.

A Visual Basic 6 error-handling convention called CSEH. Visual Basic 6 uses error labels instead of try/catch blocks, and this convention standardizes those labels and cleanup sections.

In plain words
What is it for?
It guides edits to VB6 procedures using either re-raised errors for reusable code or message dialogs for top-level user-interface handlers.
Why use it?
It makes error paths, logging, and cleanup predictable in older Visual Basic applications.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-vb6-skills plugin — 5 skills shipped together

Good fit It guides edits to VB6 procedures using either re-raised errors for reusable code or message dialogs for top-level user-interface handlers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexcassol/claude-vb6-skills/vb6-error-handling
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 alexcassol/claude-vb6-skills --skill vb6-error-handling
Clone the repo
git clone --depth 1 https://github.com/alexcassol/claude-vb6-skills

Made for: Claude Code.

Or install claude-vb6-skills, the plugin that ships this one along with the rest of its 5 skills.

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 vb6-error-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexcassol/claude-vb6-skills/vb6-error-handling/github.svg)](https://agentmods.dev/skills/alexcassol/claude-vb6-skills/vb6-error-handling)
Your own site
<a href="https://agentmods.dev/skills/alexcassol/claude-vb6-skills/vb6-error-handling"><img src="https://agentmods.dev/badge/skills/alexcassol/claude-vb6-skills/vb6-error-handling/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 vb6-error-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexcassol/claude-vb6-skills/vb6-error-handling"><img src="https://agentmods.dev/badge/skills/alexcassol/claude-vb6-skills/vb6-error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 272 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,807 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.00272 $0.03807
Opus 5 $0.00136 $0.01903
Sonnet 5 $0.00054 $0.00761
Haiku 4.5 $0.00027 $0.00381

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

Security

Grade A, and why

vb6-error-handling 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 12d 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/vb6-error-handling/SKILL.md · 367 lines

How it starts

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

VB6 Error Handling — CSEH Pattern

VB6 has no try/catch. The model is On Error GoTo <label> with structured cleanup. The CSEH (Code Style for Error Handler) convention standardizes this pattern across the codebase so error paths are predictable, log output is consistent, and Erl (error line) is meaningful in production logs.

CSEH style is declared by a marker comment above the procedure signature:

'CSEH: ErrRaise
Public Function GetActiveCustomer(...) As Object

The <EhHeader> and <EhFooter> tags delimit regions that may be regenerated by external tooling (MZ-Tools or similar). Never alter the delimiter format or remove the tags — automation depends on them.

1. Two CSEH styles

Style Marker Handler behavior Use for
ErrRaise 'CSEH: ErrRaise Captures Err into locals, then re-raises the original Err.Number via Err.Raise ..., msg Utility functions, library routines, any procedure called by other code
MsgBox 'CSEH: MsgBox Displays critical dialog and returns to caller without re-raising Top-level UI event handlers, command buttons, menu items

Default for new code: ErrRaise. The MsgBox style is reserved for the outermost layer (event handlers) where errors must be surfaced to the user and the call stack ends.

2. ErrRaise template

Canonical structure for a function that propagates errors to its caller:

'CSEH: ErrRaise
Public Function GetActiveCustomer(ByVal lngCustomerID As Long) As Object

        '<EhHeader>
        On Error GoTo GetActiveCustomer_Err

        EnterMethod "modDB", "GetActiveCustomer"
        '</EhHeader>

        Dim objCmd As Object
        Dim objRs  As Object
        Dim strSQL As String

100     InitializeDBConnection

105     Set objCmd = CreateObject("ADODB.Command")
110     Set objCmd.ActiveConnection = mobjCnn
115     objCmd.CommandType = adCmdText

120     strSQL = "SELECT * FROM Customer WHERE idCustomer = ? AND custActive = 1"
125     objCmd.CommandText = strSQL

130     objCmd.Parameters.Append objCmd.CreateParameter("idCustomer", adInteger, adParamInput, , lngCustomerID)

135     Set objRs = objCmd.Execute

140     Set GetActiveCustomer = objRs

    '<EhFooter>

        On Error GoTo 0

GetActiveCustomer_Exit:
        Set objCmd = Nothing
        ExitMethod "modDB", "GetActiveCustomer"
        Exit Function

GetActiveCustomer_Err:
        ' Capture Err state FIRST — the cleanup and ExitMethod below reset the Err object
        Dim lGetActiveCustomer_ErrNum As Long
        Dim sGetActiveCustomer_Err    As String

        lGetActiveCustomer_ErrNum = Err.Number
        sGetActiveCustomer_Err = "Error: " & Err.Number & " - " & Err.Description & " (" & Erl & ")"

        ' clean up resources here
        Set objCmd = Nothing
        Set objRs = Nothing

        ExitMethod "modDB", "GetActiveCustomer"

        Err.Raise lGetActiveCustomer_ErrNum, "SampleApp.modDB.GetActiveCustomer", sGetActiveCustomer_Err

    '</EhFooter>
End Function

Read the full file on GitHub · 367 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 367 lines · 272 tokens per session scan A eed668a452c2

Subscribe to this mod's changes

vb6-error-handling is a skill published in the GitHub repository alexcassol/claude-vb6-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 272 tokens to every session and 3,807 once invoked, about $0.0014 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

chief-revenue-officer

Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…

cbrock84/headcount · 80 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

seo-strategy

Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…

cbrock84/headcount · 74 tokens

financial-statement-analysis

Reads a set of financial statements and establishes what changed and why — fluctuation analysis against prior period and against budget, profitability, liquidity, solvency and efficiency ratios, benchmarking, and the non-GAAP measures presented alongside them. Use this to interpret results, review a counterparty's or…

cbrock84/headcount · 93 tokens

service-desk

Runs the IT service desk — intake, triage, prioritization, escalation, knowledge, and the metrics that improve service rather than distort it. Use this to set up or fix a service desk, design ticket priority and escalation, reduce repeat contacts, structure a knowledge base, or work out why a desk hitting its targets…

cbrock84/headcount · 73 tokens

youtube-producer

Plans, packages, and scripts long-form video for retention and channel growth — idea selection, titles and thumbnails, script structure, and diagnosing why a video or channel underperforms. Use this for video ideas, packaging, scripting, a retention teardown, or channel strategy — including when someone describes a…

cbrock84/headcount · 86 tokens