Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

data-table-filters数据表过滤器

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

3,678

周安装

158

GitHub Stars

1,967

下载量

1,289
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-table-filters(数据表过滤器)
来源仓库:https://github.com/openstatushq/data-table-filters
仓库路径:skills/data-table-filters
安装命令:
npx skills add https://github.com/openstatushq/data-table-filters --skill data-table-filters
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/openstatushq/data-table-filters --skill data-table-filters

简介

构建无限滚动虚拟化的可筛选排序数据表格组件库。

  • 基于 shadcn 注册表提供核心表格引擎与四种过滤类型支持。
  • 支持 Drizzle ORM 模式生成与 React Query 数据流集成。
  • 输出包含命令面板、单元格渲染与 Sheet 面板扩展的完整解决方案。
  • 安装方式为 shadcn CLI 直接添加指定 URL 的注册表块。

SKILL.md

Data Table Filters

A shadcn registry for building filterable, sortable data tables with infinite scroll and virtualization. Start with the core block, then extend with optional blocks for command palette, cell renderers, sheet panels, store adapters, schema generation, Drizzle ORM helpers, and React Query integration.

Registry Blocks

Install any block via npx shadcn@latest add <url>. The CLI handles dependencies, path rewriting, and CSS variable injection.

BlockInstall URLWhat it adds
data-tablehttps://data-table.openstatus.dev/r/data-table.jsonCore: table engine, store, 4 filter types, memory adapter (~52 files)
data-table-filter-command.../r/data-table-filter-command.jsonCommand palette with history + keyboard shortcuts
data-table-cell.../r/data-table-cell.json12 cell renderers (text, code, number, bar, heatmap, badge, boolean, star, status-code, level-indicator, timestamp, custom)
data-table-sheet.../r/data-table-sheet.jsonRow detail side panel (auto-installs cells)
data-table-nuqs.../r/data-table-nuqs.jsonnuqs URL state adapter
data-table-zustand.../r/data-table-zustand.jsonzustand state adapter
data-table-schema.../r/data-table-schema.jsonDeclarative schema system with col.* factories
data-table-drizzle.../r/data-table-drizzle.jsonDrizzle ORM server-side helpers (auto-installs schema)
data-table-query.../r/data-table-query.jsonReact Query infinite query integration
data-table-filter-command-ai.../r/data-table-filter-command-ai.jsonAI-powered natural language → filter inference (provider-agnostic)
data-table-mcp.../r/data-table-mcp.jsonMCP server endpoint for AI agents (stateless, serverless-compatible)

All URLs use base https://data-table.openstatus.dev.

Quick Start

  1. Run scripts/detect-stack.sh to detect the user's project setup
  2. Install core: npx shadcn@latest add https://data-table.openstatus.dev/r/data-table.json
  3. Scaffold a minimal working table (see below)
  4. Extend with additional blocks as needed
Next.js? Use the data-table-filters repo as a reference — it's a full Next.js app with all blocks wired up.

Minimal Working Table (Memory Adapter)

Note: DataTableInfinite internally renders DataTableProvider, which already wraps children with ControlsProvider and DataTableStoreSync. You do NOT need to add these separately. The only wrapper you need is DataTableStoreProvider (for the BYOS adapter).
"use client";
import { DataTableInfinite } from "@/components/data-table/data-table-infinite";
import type { DataTableFilterField } from "@/components/data-table/types";
import { useMemoryAdapter } from "@/lib/store/adapters/memory";
import { DataTableStoreProvider } from "@/lib/store/provider/DataTableStoreProvider";
import type { ColumnDef } from "@tanstack/react-table";

const columns: ColumnDef<YourData>[] = [
  /* user's columns */
];
const filterFields: DataTableFilterField<YourData>[] = [
  /* user's filters */
];

export function MyTable({ data }: { data: YourData[] }) {
  const adapter = useMemoryAdapter(/* schema definition */);
  return (
    <DataTableStoreProvider adapter={adapter}>
      <DataTableInfinite
        columns={columns}
        data={data}
        filterFields={filterFields}
      />
    </DataTableStoreProvider>
  );
}

Wiring Extension Blocks

After installing a block via npx shadcn@latest add, wire it into the table.

Command Palette → commandSlot

<DataTableInfinite
  commandSlot={<DataTableFilterCommand schema={schema} tableId="my-table" />}
/>

Sheet Detail Panel → sheetSlot

<DataTableInfinite
  sheetSlot={
    <DataTableSheetDetails title="Details">{content}</DataTableSheetDetails>
  }
/>

Floating Bar (Bulk Actions) → floatingBarSlot

Add col.select() to the schema to enable multi-row selection with checkboxes. Wrap actions in DataTableFloatingBar — it reads selection state from context (same pattern as DataTableSheetDetails for sheetSlot).

// In table-schema.tsx
export const tableSchema = createTableSchema({
  select: col.select().size(37),
  // ... other columns
});

// In client.tsx
import { DataTableFloatingBar } from "@/components/data-table/data-table-floating-bar";

<DataTableInfinite
  floatingBarSlot={
    <DataTableFloatingBar>
      {({ rows }) => (
        <Button variant="outline" size="sm" onClick={() => console.log(rows)}>
          Export ({rows.length})
        </Button>
      )}
    </DataTableFloatingBar>
  }
/>;

Cell Renderers → column definitions

import { DataTableCellBadge } from "@/components/data-table/data-table-cell";
// Use in columnDef.cell

Custom Filter Types → FILTER_COMPONENTS

All 4 filter types ship with core. To add custom types:

import { FILTER_COMPONENTS } from "@/components/data-table/data-table-filter-controls";
FILTER_COMPONENTS.myCustom = MyCustomFilterComponent;

AI Command Palette → commandSlot

<DataTableInfinite
  commandSlot={
    <DataTableFilterAICommand
      schema={filterSchema.definition}
      tableSchema={tableSchema.definition}
      api="/api/ai-filters"
      tableId="my-table"
    />
  }
/>

Requires an API route that streams AI results. See references/ai-filters.md.

All Slot Props

DataTableInfinite accepts: commandSlot, sheetSlot, toolbarActions, chartSlot, footerSlot, floatingBarSlot.

See references/component-catalog.md for full wiring details.

Store Adapter Configuration

  • memory (default) — Ephemeral, zero config. For prototyping, embedded components, builders.
  • nuqs — URL state. Shareable links, bookmarkable filters. Requires framework setup.
  • zustand — Client state. For existing zustand apps, complex app state.

Install adapter block, swap in provider. See references/store-adapters.md.

Schema Generation

Install: npx shadcn@latest add.../r/data-table-schema.json

Map data model → createTableSchema + col.*:

  • stringcol.string().filterable("input")
  • numbercol.number().filterable("slider", {min, max})
  • booleancol.boolean().filterable("checkbox")
  • Datecol.timestamp().filterable("timerange")
  • enumcol.enum(values).filterable("checkbox")
  • selectcol.select() (checkbox row selection, not filterable)

Presets: col.presets.logLevel(), .httpStatus(), .duration(), .timestamp(), .traceId(), .pathname(), .httpMethod().

See references/schema-api.md.

Auto-Infer (Zero-Config from JSON)

For raw JSON data with no predefined schema, use DataTableAuto or the lower-level inferSchemaFromJSON + createTableSchema.fromJSON pipeline. This auto-generates columns, filters, sheet fields, and column visibility from the data itself.

DataTableAuto Component

Drop-in component — pass JSON data, get a fully functional table:

import { DataTableAuto } from "@/components/data-table/data-table-auto";
import data from "./data.json";

export default function Page() {
  return <DataTableAuto data={data} />;
}

Includes command palette and sheet detail panel out of the box. See the /auto route in this repo for a working example.

Lower-Level API

import { inferSchemaFromJSON } from "@/lib/table-schema/infer";
import { createTableSchema } from "@/lib/table-schema";

const schemaJson = inferSchemaFromJSON(data);
const { definition } = createTableSchema.fromJSON(schemaJson);

See references/auto-infer.md for inference heuristics, smart enhancements, and customization.

Server-Side Integration

Install: npx shadcn@latest add.../r/data-table-drizzle.json

Scaffold route handler with createDrizzleHandler({db, table, columnMapping, cursorColumn, schema}).

For non-Drizzle ORMs: implement response shape {data, facets, totalRowCount, filterRowCount, nextCursor, prevCursor}.

See references/drizzle-integration.md.

Fetch Layer

Install: npx shadcn@latest add.../r/data-table-query.json

Wire createDataTableQueryOptions({queryKeyPrefix, apiEndpoint, searchParamsSerializer}).

See references/fetch-layer.md.

Troubleshooting

  • Missing CSS vars: Core injects --color-success/warning/error/info. Check cssVars applied to CSS.
  • Import path mismatches: shadcn CLI rewrites @/ paths per components.json aliases.
  • nuqs: silent failure or crash: Two required setup steps — <NuqsAdapter> in root layout AND <Suspense> around the table component. See references/store-adapters.md.
  • nuqs: filters not applied from URL on load: Pass server-parsed search params as initialState to the nuqs adapter. See the SSR Hydration section in references/store-adapters.md.
  • nuqs: phantom filters with empty string: Use field.string() (null default), not field.string().default("").
  • Sheet dropdown missing: SheetField.type must match the filter type (not "readonly") to get the filter dropdown. Use generateSheetFields() to auto-derive from filter config.
  • Filter not rendering: Verify filter type string matches FILTER_COMPONENTS key.
  • Tailwind v4: Registry targets v4. Class syntax differs from v3.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.18%
按下载量换算428

Claude

31.14%
按下载量换算401

Cursor

18.35%
按下载量换算237

Gemini CLI

9.75%
按下载量换算126

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills