refine
БесплатноБез исполняемых скриптовНе проверенBuild data-intensive React applications with Refine. Use when a user asks to create admin panels, dashboards, or CRUD interfaces using Refine with REST…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Refine — React Framework for Admin Panels
Overview
Refine is an open-source React framework for building data-intensive applications such as admin panels, dashboards, and internal tools. It is headless: it provides data fetching, auth, access control, and routing hooks, and you choose the UI library (Ant Design, Material UI, Chakra UI, Mantine, or your own).
This skill targets the current major version: @refinedev/core 5.x with @refinedev/antd 6.x, @refinedev/react-router 2.x (React Router 7), @tanstack/react-query 5 and antd 5. Code written for Refine 4 differs in a few places, listed under "Upgrading from 4.x".
Instructions
Quick Start
npm create refine-app@latest
The interactive scaffolder asks for the project name, the build tool (Vite or Next.js), the UI library, the data provider (REST, GraphQL, Supabase, Strapi and others) and the auth provider, then writes a working app. Start it with npm run dev.
Resource Definition
// src/App.tsx — resources, router and layout
import { Refine } from "@refinedev/core";
import { ThemedLayout, ErrorComponent, useNotificationProvider } from "@refinedev/antd";
import dataProvider from "@refinedev/simple-rest";
import routerProvider, { NavigateToResource } from "@refinedev/react-router";
import { BrowserRouter, Routes, Route, Outlet } from "react-router";
import { App as AntdApp } from "antd";
import "@refinedev/antd/dist/reset.css";
import { OrderList } from "./pages/orders/list";
export default function App() {
return (
<BrowserRouter>
<AntdApp>
<Refine
dataProvider={dataProvider("https://api.shopfront.dev/v1")}
routerProvider={routerProvider}
notificationProvider={useNotificationProvider}
options={{ syncWithLocation: true }}
resources={[
{
name: "orders",
list: "/orders",
show: "/orders/show/:id",
edit: "/orders/edit/:id",
create: "/orders/create",
meta: { label: "Orders" },
},
]}
>
<Routes>
<Route element={<ThemedLayout><Outlet /></ThemedLayout>}>
<Route index element={<NavigateToResource />} />
<Route path="/orders" element={<OrderList />} />
<Route path="*" element={<ErrorComponent />} />
</Route>
</Routes>
</Refine>
</AntdApp>
</BrowserRouter>
);
}
In v5 a resource's list, show, edit and create are route strings only; the page components belong in your router, as above. Layout and menu icons are set with meta.icon.
List Page with Filtering
// src/pages/orders/list.tsx — table with server-side sorting, filtering, paging
import { useTable, useSelect, List, ShowButton, EditButton } from "@refinedev/antd";
import { Table, Tag, Select, Space } from "antd";
export const OrderList: React.FC = () => {
const { tableProps } = useTable({
resource: "orders",
sorters: { initial: [{ field: "created_at", order: "desc" }] },
filters: {
permanent: [{ field: "archived", operator: "eq", value: false }],
},
pagination: { pageSize: 20 },
});
const { selectProps: statusOptions } = useSelect({
resource: "order_statuses",
optionLabel: "name",
optionValue: "value",
});
return (
<List>
<Table {...tableProps} rowKey="id">
<Table.Column dataIndex="id" title="Order #" sorter />
<Table.Column dataIndex="customer_email" title="Customer" sorter />
<Table.Column
dataIndex="amount"
title="Amount"
render={(val) => `$${(val / 100).toFixed(2)}`}
sorter
/>
<Table.Column
dataIndex="status"
title="Status"
render={(status) => (
<Tag color={status === "paid" ? "green" : status === "refunded" ? "red" : "blue"}>
{status}
</Tag>
)}
filterDropdown={(props) => <Select {...statusOptions} {...props} />}
/>
<Table.Column dataIndex="created_at" title="Date" render={(d) => new Date(d).toLocaleDateString()} sorter />
<Table.Column
title="Actions"
render={(_, record) => (
<Space>
<ShowButton recordItemId={record.id} size="small" />
<EditButton recordItemId={record.id} size="small" />
</Space>
)}
/>
</Table>
</List>
);
};
Reading Data with Hooks (v5 shape)
import { useList, useOne } from "@refinedev/core";
const { result, query } = useList({ resource: "orders", pagination: { pageSize: 5 } });
// result.data is the array, result.total the count; query.isLoading / query.isError hold request state
const { result: order } = useOne({ resource: "orders", id: 1042 });
// order is the record itself (no more data?.data)
Data Providers
// Refine works with any backend via data providers:
// Built-in: REST, GraphQL, Su
Установить refine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл refine?
Build data-intensive React applications with Refine. Use when a user asks to create admin panels, dashboards, or CRUD interfaces using Refine with REST, GraphQL, or custom data providers and Ant Design or Material UI.
Как установить скилл refine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл refine запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic