vp-add-range-name

vp-add-range-name is a command for coding agents from Ganbin/4d-development-skill. It costs 0 tokens per session (526 once invoked), scanned A, original, MIT.

A 4D command that gives a cell range in a 4D View Pro spreadsheet a reusable name. Named ranges are saved with the document and can be limited to a sheet or shared across the workbook.

In plain words
What is it for?
Use it to create or replace a named spreadsheet range and set its scope.
Why use it?
It makes formulas and code easier to read and update than referring to cell coordinates directly.

Command

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.

agentmods
npx agentmods add commands/ganbin/4d-development-skill/vp-add-range-name
Clone the repo
git clone --depth 1 https://github.com/Ganbin/4d-development-skill

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 vp-add-range-name

README.md
[![agentmods](https://agentmods.dev/badge/commands/ganbin/4d-development-skill/vp-add-range-name.svg)](https://agentmods.dev/commands/ganbin/4d-development-skill/vp-add-range-name)
Your own site
<a href="https://agentmods.dev/commands/ganbin/4d-development-skill/vp-add-range-name"><img src="https://agentmods.dev/badge/commands/ganbin/4d-development-skill/vp-add-range-name.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 526 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00526
Opus 5 $0.00000 $0.00263
Sonnet 5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00053

Measured 4d ago against content hash 9085a29f24c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vp-add-range-name 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 4d 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.

docs/ViewPro/commands/vp-add-range-name.md · 48 lines

What it actually says

VP ADD RANGE NAME ( rangeObj : Object ; name : Text { ; options : Object } )

Parameter Type Description
rangeObj Object -> Range object
name Text -> Name for the fomula
options Object -> Options for the named formula

Description

The VP ADD RANGE NAME command creates or modifies a named range in the open document.

Named ranges created by this command are saved with the document.

In rangeObj, pass the range that you want to name and in name, pass the new name for the range. If the name is already used within the same scope, the new named range replaces the existing one. Note that you can use the same name for different scopes (see below).

You can pass an object with additional properties for the named range in options. The following properties are supported:

Property Type Description
scope Number Scope for the range. You can pass the sheet index (counting begins at 0) or use the following constants: vk current sheetvk workbookThe scope determines whether a range name is local to a given worksheet (scope=sheet index or vk current sheet), or global across the entire workbook (scope=vk workbook).
comment Text Comment associated to named range
  • A named range is actually a named formula containing coordinates. VP ADD RANGE NAME facilitates the creation of named ranges, but you can also use the VP ADD FORMULA NAME method to create named ranges.
  • Formulas defining named ranges can be retrieved with the VP Get formula by name method.

Example

You want to create a named range for a cell range:

$range:=VP Cell("ViewProArea";2;10)
VP ADD RANGE NAME($range;"Total1")

See also

VP Get names VP Name

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. 4d ago First seen · 48 lines · 0 tokens per session scan A 9085a29f24c7

Subscribe to this mod's changes

vp-add-range-name is a command published in the GitHub repository Ganbin/4d-development-skill (9 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 526 tokens. 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.