Borrowing it
Nothing to install: this file belongs to RenRMT/claude-code-vba-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/RenRMT/claude-code-vba-skills/main/.claude/skills/vba-error-events/SKILL.mdgit clone --depth 1 https://github.com/RenRMT/claude-code-vba-skillsWrote 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.
[](https://agentmods.dev/skills/renrmt/claude-code-vba-skills/vba-error-events)<a href="https://agentmods.dev/skills/renrmt/claude-code-vba-skills/vba-error-events"><img src="https://agentmods.dev/badge/skills/renrmt/claude-code-vba-skills/vba-error-events/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.
<a href="https://agentmods.dev/skills/renrmt/claude-code-vba-skills/vba-error-events"><img src="https://agentmods.dev/badge/skills/renrmt/claude-code-vba-skills/vba-error-events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.00470 |
| Opus 5 | $0.00009 | $0.00235 |
| Sonnet 5 | $0.00004 | $0.00094 |
| Haiku 4.5 | $0.00002 | $0.00047 |
Grade A, and why
vba-error-events-team 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 10d 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.
What it actually says
Error Handling, Events & Team Practices — Expanded Edition
Ensure reliability, traceability, and predictable execution across users and environments.
Purpose
Create VBA applications that fail safely, provide diagnostic information, prevent re‑entrant chaos, and support professional deployment workflows.
Structured Error Handling
Standard Template
Public Sub RunTask()
On Error GoTo CleanFail
SaveState
' Main work
CleanExit:
RestoreState
Exit Sub
CleanFail:
LogError "RunTask", Err
Resume CleanExit
End Sub
Use Narrow Resume Next
On Error Resume Next
Set ws = wb.Worksheets(name)
If Err.Number <> 0 Then
Err.Clear
' Handle missing sheet
End If
On Error GoTo 0
Debugging & Diagnostics
Use Immediate Window
Debug.Print "Processing row", i
Assertions
Debug.Assert Not ws Is Nothing
Centralized Logging
Public Sub LogError(ByVal proc As String, ByVal er As ErrObject)
Debug.Print proc, er.Number, er.Description
End Sub
Event Safety
Prevent Re‑Entrancy
If mHandlingEvent Then Exit Sub
mHandlingEvent = True
' ...
mHandlingEvent = False
Keep Events Thin
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo CleanFail
If Not Intersect(Target, Me.Range("Data")) Is Nothing Then
HandleDataChange Target
End If
CleanExit:
Exit Sub
CleanFail:
LogError "Worksheet_Change", Err
Resume CleanExit
End Sub
Anti‑Patterns
BAD: Silent failure via blanket Resume Next.
BAD: Unlogged runtime errors.
BAD: Event procedures containing business logic.
Acceptance Checklist
- Error handler in every non-trivial procedure.
- Event code non-reentrant.
- Logging and diagnostics in place.
- Deployment steps documented.
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.
- 10d ago First seen · 104 lines · 18 tokens per session scan A 60695a50d4bf
vba-error-events-team is a skill published in the GitHub repository RenRMT/claude-code-vba-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 470 once invoked, about $0.0001 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.
Other skills, from other repositories
python-execution-fallback
Four-step recovery workflow for code execution failures when inline Python fails.
openpyxl-sandbox-workaround
Use runshell with inline Python as a fallback when executecodesandbox fails for openpyxl/spreadsheet operations.
python-heredoc-fallback
Use shell Python heredoc as fallback when code sandbox fails.
python-shell-workaround
Workaround for executing Python code with external packages when sandbox fails.
python-spreadsheet-debug
Systematic Python debugging workflow for spreadsheet tasks to isolate environment issues from script logic.
spreadsheet-workbook-forensics
Edit, repair, or generate spreadsheet workbooks with structure-preserving Python. Use for Excel or spreadsheet tasks involving .xlsx/.xlsm files, formulas, lookup tables, summaries, formatting preservation, target ranges, workbook QA, or any task where cells must be computed, written, and verified rather than guessed…