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-object-model-and-performance/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-object-model-and-performance)<a href="https://agentmods.dev/skills/renrmt/claude-code-vba-skills/vba-object-model-and-performance"><img src="https://agentmods.dev/badge/skills/renrmt/claude-code-vba-skills/vba-object-model-and-performance/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-object-model-and-performance"><img src="https://agentmods.dev/badge/skills/renrmt/claude-code-vba-skills/vba-object-model-and-performance.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.00024 | $0.00470 |
| Opus 5.5 | $0.00010 | $0.00188 |
| Sonnet 5.5 | $0.00005 | $0.00094 |
| Haiku 4.5 | $0.00002 | $0.00047 |
Grade A, and why
vba-objectmodel-performance 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 2mo 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
Safe Object Model Usage & Performance — Expanded Edition
Avoid UI dependence and dramatically improve performance with array processing and object‑model best practices.
Purpose
Improve reliability and speed by eliminating fragile UI-linked code and minimizing expensive cross-boundary calls between VBA and Office.
Object Model Safety
Never Use Select, Activate
' BAD
aRange.Select
Selection.Value = 5
' GOOD
ws.Range("A1").Value = 5
Fully Qualify Everything
ThisWorkbook.Worksheets("Report").Range("A1").Value = "OK"
Use Stable Anchors
- Named ranges
- Tables (
ListObjects) - Constants for key locations
Worksheet I/O Best Practices
Use Array Round-Trips
Dim arr As Variant
arr = ws.Range("A1:A100000").Value2
' Modify in memory
For i = 1 To UBound(arr)
arr(i, 1) = arr(i, 1) * 2
Next i
ws.Range("A1:A100000").Value2 = arr
Cache References
Dim ws As Worksheet
Set ws = ThisWorkbook.Worksheets("Data")
Turn Off Expensive Features
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Restore afterwards.
Performance Do / Don't
Do
- Use arrays for all large loops.
- Disable/unset features inside try/finally-style blocks.
- Batch formatting operations.
Don’t
- Process ranges cell-by-cell inside loops.
- Repeatedly call
WorksheetFunctioninside loops. - Use
ReDim Preserveinside loops.
Anti‑Patterns
BAD: Code that runs only when the correct sheet is selected.
BAD: large number of cell updates performed one-by-one.
BAD: Repeated workbook/worksheet lookups in inner loops.
Acceptance Checklist
- All automation works with no UI context.
- Arrays used for heavy lifting.
- Performance settings restored safely.
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.
- 2mo ago First seen · 94 lines · 24 tokens per session scan A 54b6e50ed882
vba-objectmodel-performance is a skill published in the GitHub repository RenRMT/claude-code-vba-skills (2 stars, last pushed 7mo ago), licensed MIT. It adds 24 tokens to every session and 470 once invoked, about $0.0001 per session on Opus 5.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
fwmsexcelxlsx-generator
Gera customizações AdvPL/TLPP (sempre User Function) que exportam dados do Protheus para planilha Excel .xlsx usando a classe de framework FwMsExcelXlsx, padrão recomendado pela TOTVS — abas, tabelas, colunas com alinhamento, formato, máscara e totalizador, fonte da planilha, gravação direta em arquivo ou no banco…
program-to-spec
Reverse-engineer an ABAP program into a Functional/Technical Specification artifact (Markdown, HTML, and/or Excel — any combination). Socratic scope narrowing from "everything" to "only what the user needs".
npoi
Use when reading/writing Excel (.xls/.xlsx) or Word (.doc/.docx) in .NET without Microsoft Office — XSSFWorkbook/HSSFWorkbook/SXSSFWorkbook, WorkbookFactory.Create, ICellStyle reuse, IFormulaEvaluator. Also for dates rendering as numbers, OutOfMemoryException on large files, and 64000 cell-style limits. NPOI: .NET…
devexpress-office-file-api-excel-export
Build .NET applications with the DevExpress Excel Export Library for streaming generation of Excel files with low memory footprint. Use when generating large Excel reports, writing rows sequentially, building Excel files from data grids or report engines, or when the full Spreadsheet Document API would use too much…
excel-openpyxl-formulas
Editing Excel files with openpyxl to insert formulas while preserving all existing formatting, styles, colors, and structure.
easyexcel-write
A Java skill for writing Excel files with Alibaba EasyExcel version 4.0.3.