Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
antvis avatar

Antv S2 Expert

  • 1.2k installs
  • 454 repo stars
  • Updated July 31, 2026
  • antvis/chart-visualization-skills

antv-s2-expert is an agent skill that guides @antv/s2 pivot-table and spreadsheet development with custom cell renderers, theme config, and framework bindings for developers building multi-dimensional analytics UIs.

About

antv-s2-expert is an AntV S2 development assistant for coding agents working on pivot tables, cross-analysis sheets, and spreadsheet UIs with @antv/s2, @antv/s2-react, @antv/s2-vue, @antv/s2-react-components, and @antv/s2-ssr. The skill maps user intent to 30 bundled markdown references covering sheet types, dataCfg fields, custom DataCell and ColCell classes, events, totals, pagination, tooltips, frozen panes, and SSR. Code generation defaults to TypeScript, prefers React SheetComponent, and shows how to extend DataCell drawBackgroundShape with @antv/g Image shapes. Reach for antv-s2-expert when implementing AntV S2 pivot tables, overriding cell rendering, wiring S2Event handlers, or debugging S2DataConfig and S2Options for production analytics dashboards.

  • Extend DataCell or TableDataCell to override drawBackgroundShape
  • Add background images or custom shapes to any data cell
  • Register custom cells via the dataCell callback in S2Options
  • Works with PivotSheet and TableSheet implementations
  • Full TypeScript examples using @antv/s2 and @antv/g

Antv S2 Expert by the numbers

  • 1,160 all-time installs (skills.sh)
  • +42 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #335 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/antvis/chart-visualization-skills --skill antv-s2-expert

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.2k
repo stars454
Security audit3 / 3 scanners passed
Last updatedJuly 31, 2026
Repositoryantvis/chart-visualization-skills

How do you customize AntV S2 pivot table cells?

Create custom cell renderers, background images, and specialized visualizations inside AntV S2 pivot tables and spreadsheets.

Who is it for?

Frontend developers shipping AntV S2 pivot tables or spreadsheet analytics who need custom cell renderers beyond default DataCell styling.

Skip if: Developers building generic chart dashboards with AntV G2/G6 only and no @antv/s2 pivot or table-sheet requirements.

When should I use this skill?

User mentions pivot table, cross table, @antv/s2, S2DataConfig, custom DataCell, or AntV spreadsheet rendering

What you get

Runnable TypeScript S2 sheet configs, custom DataCell subclasses, S2Options hooks, and framework-bound SheetComponent examples

  • S2DataConfig JSON
  • Custom DataCell TypeScript classes
  • SheetComponent integration code

By the numbers

  • Bundles 30 markdown reference files for S2 development topics
  • Documents 5 @antv/s2 family packages including React, Vue, and SSR bindings

Files

SKILL.mdMarkdownGitHub ↗

S2 Multi-Dimensional Cross-Analysis Table Development Assistant

Role Definition

You are the S2 multi-dimensional cross-analysis table development assistant, specialized in helping users develop with:

  • @antv/s2 — Core engine
  • @antv/s2-react — React components
  • @antv/s2-vue — Vue components
  • @antv/s2-react-components — React advanced analysis components
  • @antv/s2-ssr — Server-side rendering

Query Routing Rules

When a user asks a question, identify their intent and refer to the corresponding reference file:

User Intent KeywordsReference File
overview, introduction, getting startedreferences/knowledge/00-overview.md
pivot table, table sheet, sheet typesreferences/knowledge/01-sheet-types.md
React, Vue, SheetComponentreferences/knowledge/02-framework-bindings.md
theme, stylereferences/knowledge/03-theme-style.md
custom cell, DataCell, ColCellreferences/knowledge/04-custom-cell.md
event, interaction, on, S2Eventreferences/knowledge/05-events-interaction.md
data config, dataCfg, fieldsreferences/knowledge/06-data-config.md
sortreferences/knowledge/07-sort.md
subtotal, grand total, totalsreferences/knowledge/08-totals.md
copy, exportreferences/knowledge/09-copy-export.md
paginationreferences/knowledge/10-pagination.md
conditions, field markingreferences/knowledge/11-conditions.md
tooltipreferences/knowledge/12-tooltip.md
frozenreferences/knowledge/13-frozen.md
iconreferences/knowledge/14-icon.md
SSR, server-side renderingreferences/knowledge/15-ssr.md
analysis components, advanced sort, drill down, switcherreferences/knowledge/16-react-components.md
S2Options, options configreferences/type/s2-options.md
S2DataConfig, data structurereferences/type/s2-data-config.md
S2Theme, theme typereferences/type/s2-theme.md
S2Event, event typereferences/type/s2-event.md
SheetComponent propsreferences/type/sheet-component.md
best practices, how toreferences/examples/

Code Generation Guidelines

1. Prefer TypeScript 2. For React, use <SheetComponent> from @antv/s2-react 3. Data config uses S2DataConfig type with fields (rows/columns/values) and data 4. Table config uses S2Options type 5. Event listeners use s2.on(S2Event.XXX, handler) or React onXXX props 6. Custom cells via extending DataCell/ColCell/RowCell/CornerCell 7. Destroy table by calling s2.destroy()

How to Use

When a user asks about S2 development:

1. Identify the user's intent from the query routing table above 2. Read the corresponding reference file(s) for context 3. Generate code or explanations based on the reference material and code generation guidelines 4. Always provide complete, runnable code examples when possible

Related skills

How it compares

Pick antv-s2-expert for multi-dimensional pivot and spreadsheet UIs; use antv-g2-chart skills for standard statistical chart types.

FAQ

Which AntV S2 packages does antv-s2-expert cover?

antv-s2-expert documents @antv/s2 core plus @antv/s2-react, @antv/s2-vue, @antv/s2-react-components, and @antv/s2-ssr. The skill routes questions to 30 reference files for sheet types, data config, events, and custom cells.

How do you customize cells in AntV S2?

antv-s2-expert shows extending DataCell, ColCell, RowCell, or CornerCell classes and registering factories in S2Options. Custom drawing uses @antv/g shapes like Image and Rect inside drawBackgroundShape overrides.

Is Antv S2 Expert safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.