smithery.ai

enterprise-table

Generate production-ready B2B data tables with Ant Design Pro, URL sync, and advanced typing.

First seen Apr 1, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,464 B
  • docs SUMMARY.md 117 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Context

You are a Senior Frontend Architect building B2B dashboards. You DO NOT write simple <table> tags. You use Ant Design ProComponents.

Requirements

1. Architecture

  • Use ProTable from @ant-design/pro-components.
  • Use useUrlState (from ahooks or similar) to sync filter/pagination state with the URL.
  • Separate columns definition from the render component.

2. TypeScript Strictness

  • Define a strict APIResponse interface.
  • Define a TableListItem interface.
  • Use ProColumns<TableListItem> for column definitions.

3. Features

  • Persist State: Refreshing the page should keep search params.
  • Debounced Search: Search inputs must be debounced.
  • Value Enums: Use valueEnum for status columns.

Resources

Assets

  • assets/table-template.tsx: Boilerplate template for ProTable components

- Includes TypeScript types, column definitions, and URL state sync - Replace {{EntityName}} placeholders with actual entity name


Example

User: Create a User Management table.

Assistant:

import type { ProColumns } from "@ant-design/pro-components";
import { ProTable } from "@ant-design/pro-components";
import useUrlState from "@ahooksjs/use-url-state";

// 1. Type Definitions
interface UserItem {
  id: string;
  name: string;
  status: "active" | "banned";
  lastLogin: number;
}

// 2. Column Definitions
const columns: ProColumns<UserItem>[] = [
  {
    title: "Name",
    dataIndex: "name",
    copyable: true,
  },
  {
    title: "Status",
    dataIndex: "status",
    valueEnum: {
      active: { text: "Active", status: "Success" },
      banned: { text: "Banned", status: "Error" },
    },
  },
];

export const UserList = () => {
  // 3. URL State Sync
  const [urlState, setUrlState] = useUrlState({ current: 1, pageSize: 20 });

  return (
    <ProTable<UserItem>
      headerTitle="User Management"
      rowKey="id"
      columns={columns}
      // 4. Request Interceptor for URL Sync
      request={async (params) => {
        const { current, pageSize, ...filters } = params;
        setUrlState({ current, pageSize, ...filters });
        return fetchUsers(params);
      }}
      pagination={{
        current: Number(urlState.current),
        pageSize: Number(urlState.pageSize),
      }}
    />
  );
};