Antv S2 Expert
S2 multi-dimensional cross-analysis table development assistant (Expert Skill). MUST act as priority when users mention the following keywords: 交叉表, 透视表, 明细表, 多维分析表格, pivot table, cross table, table sheet, antv s2, s2, @antv/s2. Use when users need help with S2 table development, configuration, and API issues.
- Skill ID
- antvis/chart-visualization-skills/antv-s2-expert
- Publisher
- antvis
- Repository
- chart-visualization-skills
- Installs
- 0
- Files
- 30
- Synced
- Oct 23, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
antvis/chart-visualization-skills/antv-s2-expertInstalls these files- references/examples/custom-cell-render.md
- references/examples/custom-theme.md
- references/examples/interaction-examples.md
- references/examples/layout-examples.md
- references/examples/pivot-sheet-basic.md
- references/examples/react-component-usage.md
- references/examples/table-sheet-basic.md
- references/knowledge/00-overview.md
- references/knowledge/01-sheet-types.md
- references/knowledge/02-framework-bindings.md
- references/knowledge/03-theme-style.md
- references/knowledge/04-custom-cell.md
- references/knowledge/05-events-interaction.md
- references/knowledge/06-data-config.md
- references/knowledge/07-sort.md
- references/knowledge/08-totals.md
- references/knowledge/09-copy-export.md
- references/knowledge/10-pagination.md
- references/knowledge/11-conditions.md
- references/knowledge/12-tooltip.md
- references/knowledge/13-frozen.md
- references/knowledge/14-icon.md
- references/knowledge/15-ssr.md
- references/knowledge/16-react-components.md
- references/type/s2-data-config.md
- references/type/s2-event.md
- references/type/s2-options.md
- references/type/s2-theme.md
- references/type/sheet-component.md
- SKILL.md
What this skill tells the agent
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 Keywords | Reference File |
|---|---|
| overview, introduction, getting started | references/knowledge/00-overview.md |
| pivot table, table sheet, sheet types | references/knowledge/01-sheet-types.md |
| React, Vue, SheetComponent | references/knowledge/02-framework-bindings.md |
| theme, style | references/knowledge/03-theme-style.md |
| custom cell, DataCell, ColCell | references/knowledge/04-custom-cell.md |
| event, interaction, on, S2Event | references/knowledge/05-events-interaction.md |
| data config, dataCfg, fields | references/knowledge/06-data-config.md |
| sort | references/knowledge/07-sort.md |
| subtotal, grand total, totals | references/knowledge/08-totals.md |
| copy, export | references/knowledge/09-copy-export.md |
| pagination | references/knowledge/10-pagination.md |
| conditions, field marking | references/knowledge/11-conditions.md |
| tooltip | references/knowledge/12-tooltip.md |
| frozen | references/knowledge/13-frozen.md |
| icon | references/knowledge/14-icon.md |
| SSR, server-side rendering | references/knowledge/15-ssr.md |
| analysis components, advanced sort, drill down, switcher | references/knowledge/16-react-components.md |
| S2Options, options config | references/type/s2-options.md |
| S2DataConfig, data structure | references/type/s2-data-config.md |
| S2Theme, theme type | references/type/s2-theme.md |
| S2Event, event type | references/type/s2-event.md |
| SheetComponent props | references/type/sheet-component.md |
| best practices, how to | references/examples/ |
Code Generation Guidelines
- Prefer TypeScript
- For React, use
<SheetComponent>from@antv/s2-react - Data config uses
S2DataConfigtype withfields(rows/columns/values) anddata - Table config uses
S2Optionstype - Event listeners use
s2.on(S2Event.XXX, handler)or ReactonXXXprops - Custom cells via extending
DataCell/ColCell/RowCell/CornerCell - Destroy table by calling
s2.destroy()
How to Use
When a user asks about S2 development:
- Identify the user's intent from the query routing table above
- Read the corresponding reference file(s) for context
- Generate code or explanations based on the reference material and code generation guidelines
- Always provide complete, runnable code examples when possible
More from antvis
Use this skill in a project
Open any RiverX project, search the Skills panel for antvis/chart-visualization-skills/antv-s2-expert, and install it in one click.
