Agent skill

With Tanstack Virtual

by octanejs in octanejs/octane

Virtualize final React Table row or column models with TanStack Virtual.

MITAuto-check passedDevelopment

Install With Tanstack Virtual

skills CLI
$ npx skills add octanejs/octane --skill with-tanstack-virtual -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install octanejs/octane with-tanstack-virtual --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/octanejs/octane.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/tanstack-table/upstream/skills/with-tanstack-virtual .claude/skills/with-tanstack-virtual && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
with-tanstack-virtual
GitHub stars
1.4k
Token cost
~1.3k tokens
SKILL.md length
188 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Virtualize final React Table row or column models with TanStack Virtual.

  • Development work in your project
  • SKILL.md covers Setup, Core Patterns, Common Mistakes and API Discovery
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

With Tanstack Virtual is an agent skill from octanejs/octane. Virtualize final React Table row or column models with TanStack Virtual. Load for useVirtualizer counts, scroll elements, stable keys, data-index measurement, dynamic heights, sticky headers/columns, grid/flex geometry, or infinite fetching; Virtual is renderer composition, not a Table feature.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with TanStack and React. The repository describes itself as: React’s programming model, compiled. The successor to Inferno. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/with-tanstack-virtual”

What it can do on your machine

Read from SKILL.md and the folder at commit 40fdefd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

With Tanstack Virtual loads about 1.3k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 188 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from octanejs/octane at commit 40fdefd, republished under its MIT licence (© octanejs). 188 words, ~1,250 tokens.

Download SKILL.mdSave it as .claude/skills/with-tanstack-virtual/SKILL.md (or your agent's skills folder).
name
with-tanstack-virtual
description
Virtualize final React Table row or column models with TanStack Virtual. Load for useVirtualizer counts, scroll elements, stable keys, data-index measurement, dynamic heights, sticky headers/columns, grid/flex geometry, or infinite fetching; Virtual is renderer composition, not a Table feature.
metadata.type
composition
metadata.library
@tanstack/react-table
metadata.library_version
9.2.4
metadata.framework
react
requires
@tanstack/table-core#core, getting-started, table-state
sources
TanStack/table:docs/framework/react/guide/virtualization.md, TanStack/table:examples/react/virtualized-rows…

This skill builds on @tanstack/table-core#core, getting-started, and table-state. Build the Table model first, then virtualize its final rendered rows or visible columns.

Setup

tsx
import { useRef } from 'react'
import { useVirtualizer } from '@tanstack/react-virtual'

function VirtualBody({ table }: { table: any }) {
  const scrollRef = useRef<HTMLDivElement>(null)
  const rows = table.getRowModel().rows
  const virtualizer = useVirtualizer({
    count: rows.length,
    getScrollElement: () => scrollRef.current,
    estimateSize: () => 36,
    getItemKey: (index) => rows[index].id,
    overscan: 5,
  })
  return (
    <div ref={scrollRef} style={{ height: 400, overflow: 'auto' }}>
      <div style={{ height: virtualizer.getTotalSize(), position: 'relative' }}>
        {virtualizer.getVirtualItems().map((item) => (
          <div
            key={rows[item.index].id}
            data-index={item.index}
            ref={virtualizer.measureElement}
            style={{
              position: 'absolute',
              transform: `translateY(${item.start}px)`,
              width: '100%',
            }}
          >
            {rows[item.index].getAllCells().map((cell: any) => (
              <span
                key={cell.id}
                style={{
                  display: 'inline-block',
                  width: cell.column.getSize(),
                }}
              >
                <table.FlexRender cell={cell} />
              </span>
            ))}
          </div>
        ))}
      </div>
    </div>
  )
}

Core Patterns

Keep the virtualizer near its render loop
tsx
const rows = table.getRowModel().rows
const rowVirtualizer = useVirtualizer({
  count: rows.length,
  getScrollElement: () => container.current,
  estimateSize: () => 36,
})

This limits unrelated parent updates and keeps count, measurement, and rendered items together.

Use Table sizes in renderer CSS
tsx
<td style={{ width: cell.column.getSize() }}>
  <table.FlexRender cell={cell} />
</td>

Table calculates size state; the renderer must apply it.

Common Mistakes

HIGH Registering Virtual as a feature

Wrong:

tsx
const features = tableFeatures({ rowVirtualizer: useVirtualizer(options) })

Correct:

tsx
const rows = table.getRowModel().rows
const virtualizer = useVirtualizer({
  count: rows.length,
  getScrollElement: () => scrollRef.current,
  estimateSize: () => 36,
})

Virtual controls rendering geometry and is not a Table feature or row model.

Source: docs/framework/react/guide/virtualization.md

HIGH Virtualizing raw input data

Wrong:

tsx
const virtualizer = useVirtualizer({
  count: data.length,
  getScrollElement,
  estimateSize,
})

Correct:

tsx
const rows = table.getRowModel().rows
const virtualizer = useVirtualizer({
  count: rows.length,
  getScrollElement,
  estimateSize,
})

Raw data ignores filtering, sorting, expansion, grouping, and pagination already applied by Table.

Source: examples/react/virtualized-rows

HIGH Measuring against incomplete identity

Wrong:

tsx
<tr ref={virtualizer.measureElement}>{row.id}</tr>

Correct:

tsx
<tr key={row.id} data-index={item.index} ref={virtualizer.measureElement}>
  {row.id}
</tr>

Dynamic measurement needs the virtual index, and stable row identity prevents measurements moving to the wrong row.

Source: examples/react/virtualized-rows

HIGH Omitting positioning geometry

Wrong:

tsx
<tbody>{virtualizer.getVirtualItems().map(renderRow)}</tbody>

Correct:

tsx
<tbody
  style={{
    display: 'grid',
    height: virtualizer.getTotalSize(),
    position: 'relative',
  }}
>
  {virtualizer.getVirtualItems().map(renderRow)}
</tbody>

Virtual only computes positions; the renderer must provide total spacer size and position items using each virtual start.

Source: examples/react/virtualized-rows

API Discovery

Inspect node_modules/@tanstack/react-table/dist/index.d.ts for Table render APIs and installed node_modules/@tanstack/react-virtual/dist/ for the exact virtualizer options. Copy layout contracts from the maintained example matching rows, columns, or infinite loading.

© octanejs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/tanstack-table/upstream/skills/with-tanstack-virtual of octanejs/octane.

Open the folder on GitHubat commit 40fdefd

Compare with similar skills

With Tanstack Virtual next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

With Tanstack Virtual compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
With Tanstack Virtual this skilloctanejs/octane1.4k—~1.3kAutomated safety check: PassMIT
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT
Cleanup Specialistahaodev/shadmin174—~1.3kAutomated safety check: PassMIT
Tanstack Router Best PracticesDeckardGer/tanstack-agent-skills222—~1.1kAutomated safety check: PassMIT
Tanstack Routerbskimball/tanstack-hono119—~4.4kAutomated safety check: PassMIT
New React PlaygroundTanStack/ai3.2k—~266Automated safety check: NotesMIT

Similar skills

  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Cleanup Specialist

    ahaodev/shadmin

    Safe cleanup of Shadmin's Go backend, React frontend, Go CLI, and docs — remove dead code, consolidate duplication, and improve maintainability without changing behavior or adding features.

    174 GitHub stars~1.3k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Tanstack Router Best Practices

    DeckardGer/tanstack-agent-skills

    TanStack Router best practices for type-safe routing, data loading, search params, and navigation.

    222 GitHub stars~1.1k tokensUpdated 29 days ago
    DevelopmentAuto-check passed
  • Tanstack Router

    bskimball/tanstack-hono

    Type-safe routing for React and Solid applications with first-class search params, data loading, and seamless integration with the React ecosystem.

    119 GitHub stars~4.4k tokensUpdated 27 days ago
    DevelopmentAuto-check passed
  • A skill your agent uses when an agent in this TanStack AI monorepo needs a playground app to try a new feature.

    3.2k GitHub stars~266 tokensUpdated today
    DevelopmentAuto-check: notes
  • Tanstack Start

    secondsky/claude-skills

    TanStack Start (RC) full-stack React with server functions, SSR, Cloudflare Workers.

    227 GitHub stars~1.6k tokensUpdated 10 days ago
    DevelopmentAuto-check: notes

More from octanejs/octane

All 18 skills in this repo
  • Performance Audit

    octanejs/octane

    Audit or defend Octane performance. An agent skill from octanejs/octane.

    1.4k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Update Bindings

    octanejs/octane

    Audit one, several, or all existing Octane bindings; implement selected maintenance findings or remove redundant copied files with evidence matched to source ownership.

    1.4k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Handle Issue

    octanejs/octane

    Work a GitHub issue in the octane repo. An agent skill from octanejs/octane.

    1.4k GitHub stars~638 tokensUpdated today
    Auto-check passed
  • Migrate V8 To V9

    octanejs/octane

    Perform a complete @tanstack/react-table v8-to-v9 migration: hook and feature architecture, row-model slots, React state and subscriptions, rendering, composable tables, type helpers, and every…

    1.4k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Implement and verify new React-library ports or copied/rewritten React surfaces in Octane bindings from npm names or npm/GitHub links/lists.

    1.4k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Triage

    octanejs/octane

    Work out which part of the octane monorepo owns an unfamiliar failure or task.

    1.4k GitHub stars~374 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about With Tanstack Virtual

What does With Tanstack Virtual do?

Virtualize final React Table row or column models with TanStack Virtual. With Tanstack Virtual is an agent skill from octanejs/octane. Virtualize final React Table row or column models with TanStack Virtual.

When should I use With Tanstack Virtual?

With Tanstack Virtual fits situations like: development work in your project.

How do I install With Tanstack Virtual in Claude Code?

Run `npx skills add octanejs/octane --skill with-tanstack-virtual -a claude-code`. Or copy the skill folder (packages/tanstack-table/upstream/skills/with-tanstack-virtual in octanejs/octane) into .claude/skills/with-tanstack-virtual in your project. Claude Code loads it when a task matches its description.

How do I install With Tanstack Virtual in Codex?

Run `npx skills add octanejs/octane --skill with-tanstack-virtual -a codex`. Or copy the skill folder (packages/tanstack-table/upstream/skills/with-tanstack-virtual in octanejs/octane) into .agents/skills/with-tanstack-virtual in your project. Codex loads it when a task matches its description.

Can I use With Tanstack Virtual in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add octanejs/octane --skill with-tanstack-virtual -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/with-tanstack-virtual, .gemini/skills/with-tanstack-virtual, .github/skills/with-tanstack-virtual and .opencode/skills/with-tanstack-virtual in your project.

What does With Tanstack Virtual need to run?

SKILL.md names no scripts, command-line tools or credentials: With Tanstack Virtual is instructions for the agent only.

Does With Tanstack Virtual access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is With Tanstack Virtual safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does With Tanstack Virtual use?

With Tanstack Virtual is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does With Tanstack Virtual use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to With Tanstack Virtual?

Skills that share tags, products or a category with With Tanstack Virtual: Wagmi Feature Development (wevm/wagmi, 6.8k stars), Cleanup Specialist (ahaodev/shadmin, 174 stars), Tanstack Router Best Practices (DeckardGer/tanstack-agent-skills, 222 stars) and Tanstack Router (bskimball/tanstack-hono, 119 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains With Tanstack Virtual?

octanejs (a GitHub organization) maintains it in octanejs/octane, which has 1,450 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 8, 2026.

Source: octanejs/octane on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.