🎯

ag-grid

🎯Skill

from joabgonzalez/ai-agents-framework

VibeIndex|
What it does

Configures advanced, accessible data tables in React using AG Grid with TypeScript-driven type safety and performance optimizations.

πŸ“¦

Part of

joabgonzalez/ai-agents-framework(11 items)

ag-grid

Installation

npxRun with npx
npx ai-agents-skills add
npxRun with npx
npx ai-agents-skills add --preset project-sbd
npxRun with npx
npx ai-agents-skills add --skill react --skill typescript
npxRun with npx
npx ai-agents-skills add user/repo
npxRun with npx
npx ai-agents-skills add --preset project-sbd --models claude,github-copilot

+ 8 more commands

πŸ“– Extracted from docs: joabgonzalez/ai-agents-framework
2Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

"Standards-compliant best practices for implementing advanced data tables with AG Grid in React and TypeScript. Configuration, accessibility, column definitions, cell renderers. Trigger: When implementing AG Grid data tables, configuring grid features, or creating custom cell renderers."

Overview

# AG Grid Skill

Overview

This skill provides comprehensive guidance for implementing AG Grid data tables in React and TypeScript applications, covering configuration, accessibility, performance optimization, and integration patterns.

Objective

Enable developers to implement robust, accessible, and performant data grids using AG Grid with proper TypeScript typing, React integration, and accessibility standards.

---

When to Use

Use this skill when:

  • Implementing data tables with sorting, filtering, pagination
  • Creating editable grids with inline editing
  • Building complex data grids with grouping and aggregation
  • Requiring high-performance tables with virtualization
  • Implementing Excel-like functionality

Don't use this skill for:

  • Simple tables (use HTML table or MUI Table)
  • Non-tabular data visualization (use charts)
  • Mobile-first tables (consider simpler alternatives)

---

Critical Patterns

βœ… REQUIRED: Use TypeScript Interfaces for Type Safety

```typescript

// βœ… CORRECT: Typed column definitions

import { ColDef } from "ag-grid-community";

interface RowData {

id: number;

name: string;

}

const columnDefs: ColDef[] = [{ field: "id" }, { field: "name" }];

// ❌ WRONG: Untyped columns

const columnDefs = [{ field: "id" }, { field: "name" }];

```

βœ… REQUIRED: Use defaultColDef for Common Settings

```typescript

// βœ… CORRECT: DRY column configuration

const defaultColDef: ColDef = {

sortable: true,

filter: true,

resizable: true,

};

// ❌ WRONG: Repeating config for each column

const columnDefs = [

{ field: 'id', sortable: true, filter: true, resizable: true },

{ field: 'name', sortable: true, filter: true, resizable: true },

];

```

βœ… REQUIRED: Enable Accessibility Features

```typescript

// βœ… CORRECT: Accessibility enabled

enableAccessibility={true}

suppressMenuHide={false}

/>

```

---

Conventions

Refer to conventions for:

  • Code organization
  • Documentation standards

Refer to a11y for:

  • Keyboard navigation
  • Screen reader support
  • ARIA attributes

AG Grid Specific

  • Use TypeScript interfaces for column definitions
  • Implement proper cell renderers for custom content
  • Configure accessibility features (keyboard navigation, screen reader support)
  • Use AG Grid's built-in features over custom implementations
  • Handle loading and error states appropriately

---

Decision Tree

Custom cell content? β†’ Use cellRenderer or cellRendererFramework for React components.

Editable grid? β†’ Set editable: true on columns, handle onCellValueChanged.

Filtering needed? β†’ Enable with filter: true or specify filter type: 'agTextColumnFilter', 'agNumberColumnFilter'.

Large dataset? β†’ Use rowModelType: 'infinite' for server-side pagination.

Grouping/aggregation? β†’ Enable row grouping with rowGroup: true on columns.

Export data? β†’ Use built-in exportDataAsCsv() or exportDataAsExcel() methods.

Performance issues? β†’ Enable row virtualization (default), use immutableData: true for React optimization.

---

Example

```typescript

import { ColDef } from 'ag-grid-community';

import { AgGridReact } from 'ag-grid-react';

interface RowData {

id: number;

name: string;

value: number;

}

const columnDefs: ColDef[] = [

{ field: 'id', headerName: 'ID' },

{ field: 'name', headerName: 'Name', sortable: true },

{ field: 'value', headerName: 'Value', filter: 'agNumberColumnFilter' }

];

rowData={data}

columnDefs={columnDefs}

defaultColDef={{ flex: 1, minWidth: 100 }}

/>

```

Edge Cases

  • Handle empty data sets with appropriate messaging
  • Manage loading states during data fetching
  • Implement error boundaries for grid failures
  • Handle resize events properly
  • Test keyboard navigation thoroughly

References

  • https://www.ag-grid.com/react-data-grid/
  • https://www.ag-grid.com/react-data-grid/accessibility/

More from this repository10

🎯
agent-creation🎯Skill

Guides users through creating standards-compliant agent definitions by enforcing context gathering, using markdown templates, and ensuring clarity and proper metadata.

🎯
javascript🎯Skill

Generates, refactors, and debugs JavaScript code with best practices, offering intelligent suggestions for performance and clean architecture.

🎯
typescript🎯Skill

Provides advanced TypeScript code generation, type inference, refactoring, and best practice recommendations for robust software development

🎯
architecture-patterns🎯Skill

Provides expert guidance on software design patterns, architectural styles, and best practices for scalable and maintainable system architectures.

🎯
astro🎯Skill

Builds optimized, performant static and server-rendered websites using Astro, TypeScript, and minimal JavaScript with optional React component islands.

🎯
eslint🎯Skill

Configures and enforces code quality standards using ESLint for JavaScript and TypeScript projects, with automatic linting and error correction.

🎯
react🎯Skill

Generates React component structures, implements hooks, manages state, and provides best practices for scalable and performant web applications.

🎯
conventions🎯Skill

Validates and standardizes code structure, naming conventions, and best practices across programming languages and frameworks.

🎯
tailwindcss🎯Skill

Rapidly style web interfaces using utility-first CSS classes with Tailwind's responsive and customizable design system.

🎯
a11y🎯Skill

Automates web accessibility testing, generating WCAG compliance reports and recommending fixes for inclusive digital experiences.