Logo Ui Fluentui React

Ui Fluentui React

Cộng đồng
scottdurow
ui-fluentui-react

Best practices for building business applications with Fluent UI React v9 (@fluentui/react-components). Covers FluentProvider setup, theming, styling with makeStyles, layout patterns, data tables, forms, dialogs, drawers, navigation, toast notifications, command bars, record forms, lookup fields, subgrids, timelines, BPF bars, app shell navigation, and accessible component composition. Triggers on "fluent ui", "fluentui", "@fluentui/react-components", "fluent v9", "fluent provider", "makeStyles", "fluent theme", "fluent form", "fluent dialog", "fluent table", "fluent data grid", "fluent drawer", "fluent toast", "fluent toolbar", "business app ui", "enterprise ui react", "command bar", "record form", "lookup field", "subgrid", "timeline", "BPF", "business process flow", "app shell", "left nav", "entity list", "sitemap".

Tổng quan

Nhà phát hànhscottdurow
Kho mãpower-platform-full-stack-skills
Tên kỹ năngui-fluentui-react
Sao
39
Bản fork
10
Tệp đi kèm
18
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 18 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được scottdurow công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ui Fluentui React trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/scottdurow/power-platform-full-stack-skills/tree/main/skills/ui-fluentui-react
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scottdurow/power-platform-full-stack-skills.git /tmp/power-platform-full-stack-skills
mkdir -p .claude/skills
cp -r /tmp/power-platform-full-stack-skills/skills/ui-fluentui-react .claude/skills/ui-fluentui-react
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ui Fluentui React trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Ui Fluentui React ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Ui Fluentui React không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Fluent UI React v9 — Business App Patterns

You are an expert in building business/enterprise React applications with Fluent UI v9 (@fluentui/react-components). This skill covers the complete component library, styling system, theming, and composition patterns for data-driven line-of-business apps.

Version note: This skill targets Fluent UI React v9 only — the @fluentui/react-components package. Do NOT use patterns from v8 (@fluentui/react) or v0 (@fluentui/react-northstar). Those are legacy.


Resources

Component templates and code patterns are in the resources/ folder:

ResourceContent
resources/pattern-mandatory-scaffold.mdSTART HERE — Required shell components, dependencies, main.tsx/App.tsx/index.css structure, verification checklist
resources/layout-patterns.mdFlex column/row, responsive grid, page layout, print/skeleton/scrollbar (replaces v8 Stack)
resources/pattern-list-detail.mdList/Card view, Detail view with loading/error/empty states
resources/pattern-form.mdForm component, <Field> usage, useFormValidation hook, dirty tracking, auto-save, unsaved changes warning
resources/pattern-data-grid.mdDataGrid with sorting, selection, row actions
resources/pattern-dialog-drawer.mdDialog (uncontrolled + controlled), Drawer (overlay + inline), ConfirmDialog, BulkEditDialog, AssignDialog
resources/pattern-toolbar-nav.mdSearch/Filter bar, Toolbar, Toast notifications, Tabs, Breadcrumb
resources/pattern-command-bar.mdMDA-style command bar with overflow menu, split buttons, entity-specific command orchestration
resources/pattern-record-form.mdRecord form with entity header, status badge, tab bar, collapsible form sections, loading skeleton
resources/pattern-lookup-field.mdInline lookup with debounced search, Popover results, advanced lookup Dialog, @odata.bind
resources/pattern-subgrid-timeline.mdSubgrid on DataGrid, Timeline wall with compose area, date grouping, file attachments
resources/pattern-entity-list-advanced.mdEntity list with view selector, edit-columns/filters Drawer, inline editing, pagination, CSV export
resources/pattern-bpf-bar.mdBusiness Process Flow bar with stage navigation, stage details Popover, completed/current/future states
resources/pattern-app-shell-nav.mdAppShell layout, collapsible LeftNav with area switching, global search, recent/pinned items, HashRouter
resources/styling-griffel.mdmakeStyles (Griffel) guide: mergeClasses rules, class composition checklist, spacing and typography token tables
resources/pattern-errorboundary.mdFull ErrorBoundary class component with Fluent MessageBar fallback and per-route usage
resources/pattern-notifications-zustand.mdZustand notification store + Fluent Toaster bridge pattern for global notifications
resources/lessons-learned.mdVerification checklist + index mapping 24 lessons to their resource files

Load the relevant resource when building a specific component type.

IMPORTANT: Before writing any Fluent UI code, load resources/lessons-learned.md and apply its checklist. The detailed rules now live in the individual resource files listed in the index.


Installation

bash
npm install @fluentui/react-components

Optional icon packages:

bash
npm install @fluentui/react-icons

NON-NEGOTIABLE: Mandatory Shell Scaffold

When scaffolding a new business app, certain components and wrappers are REQUIRED in the initial scaffold before any feature development begins.

Load resources/pattern-mandatory-scaffold.md FIRST when starting any new project. It defines the required dependencies, shell components, main.tsx / App.tsx structure, and a verification checklist. Do NOT proceed to feature work until every item passes.

Key requirements (see the resource file for full templates and rules):

  • Dependencies: zustand is required alongside Fluent UI, React Query, React Router
  • Shell components: AppShell + TopBar + LeftNav (from pattern-app-shell-nav.md), ErrorBoundary, NotificationBridge + Zustand store, Suspense wrapper
  • TopBar: Must include hamburger toggle, app title, and user profile display
  • LeftNav: Must support expand/collapse with responsive auto-collapse at ≤768px
  • Theme: Default to webLightTheme for business apps
  • CSS: Include Fluent scrollbar styling in index.css

FluentProvider — Required Root Wrapper

Every Fluent UI v9 app must wrap its root in <FluentProvider> with a theme. Without it, components render with no styling.

tsx
import { FluentProvider, webLightTheme } from "@fluentui/react-components";

export const App = () => (
  <FluentProvider theme={webLightTheme}>
    {/* All app content goes here */}
  </FluentProvider>
);

Rules:

  • Place FluentProvider as high as possible in the component tree (usually in App.tsx or main.tsx)
  • You can nest multiple FluentProvider instances to override theme for a subtree (e.g., dark sidebar)
  • Default to webLightTheme for business/enterprise apps — this is the standard
  • Available built-in themes: webLightTheme, webDarkTheme
  • For Teams apps: teamsLightTheme, teamsDarkTheme, teamsHighContrastTheme

FluentProvider Height Chain

<FluentProvider> renders a wrapper <div> with no explicit height. If your app uses percentage-based heights (e.g., AppShell with height: 100%), you MUST add style={{ height: '100%' }} to the FluentProvider:

tsx
// main.tsx
<FluentProvider theme={webLightTheme} style={{ height: '100%' }}>
  <App />
</FluentProvider>

Why: Without this, the height chain breaks: html (100%) → body (100%) → #root (100%) → FluentProvider (auto ← BREAK) → AppShell (100% of auto = 0)

This causes content overflow, invisible footers/pagination, and broken scroll containers.

Custom Theme Tokens

tsx
import { webLightTheme, type Theme } from "@fluentui/react-components";

const customTheme: Theme = {
  ...webLightTheme,
  colorBrandBackground: "#0078d4",
  colorBrandBackgroundHover: "#106ebe",
  colorNeutralForeground1: "#242424",
};

Use semantic token names from the theme throughout your app — never hardcode colors.

Dark Mode Toggle — Required

Every Fluent UI app MUST include a dark mode toggle. Use webLightTheme / webDarkTheme and respect prefers-color-scheme as the initial default:

tsx
import { webLightTheme, webDarkTheme } from "@fluentui/react-components";

const [isDark, setIsDark] = useState(
  () => window.matchMedia("(prefers-color-scheme: dark)").matches
);

<FluentProvider theme={isDark ? webDarkTheme : webLightTheme} style={{ height: '100%' }}>

Add a toggle in the TopBar and persist the preference to localStorage.


See resources/styling-griffel.md for the complete Griffel styling guide: makeStyles usage, mergeClasses rules, class composition checklist, spacing and typography token tables.


Buttons — Choosing the Right Variant

AppearanceUse ForExample
"primary"Main action per page/section (1 per group)Save, Submit, Create
"secondary"Supporting actionsCancel, Back
"subtle"Inline or low-emphasis actions, icon buttonsEdit, Delete in a row
"transparent"Ghost buttons, navigation linksBreadcrumbs, inline links
"outline"Medium emphasis, secondary CTAExport, Filter
tsx
<Button appearance="primary">Save</Button>
<Button appearance="secondary" onClick={onCancel}>Cancel</Button>
<Button appearance="subtle" icon={<EditRegular />} aria-label="Edit" />

Compound button for actions with a description:

tsx
<CompoundButton
  appearance="primary"
  secondaryContent="Create a new project from scratch"
>
  New Project
</CompoundButton>

Icons

Use @fluentui/react-icons. All icons follow the naming pattern: {Name}{Size}{Style}.

tsx
import { AddRegular, EditRegular, DeleteRegular, SearchRegular } from "@fluentui/react-icons";

<Button icon={<AddRegular />}>Add</Button>
<Button icon={<DeleteRegular />} appearance="subtle" aria-label="Delete" />

Sizing: Icons default to 20px. For other sizes import the sized variant: Add16Regular, Add24Regular, Add28Regular.

Styles: Regular (outline) for most UI, Filled for selected/active states.


Accessibility Checklist

  • Always provide aria-label on icon-only buttons
  • Use <Field> for all form controls — it generates correct <label> associations
  • Use semantic intent on MessageBar ("error", "warning", "success", "info")
  • Use useId() hook for generating unique IDs — never hardcode IDs
  • Keyboard navigation works out of the box for Fluent components — do not override tabIndex unless necessary
  • Test with screen readers: DataGrid already implements ARIA grid patterns
  • Use role="status" or aria-live="polite" for dynamic content updates

Scrollable Container Accessibility

Any container with overflow: auto or overflow: scroll MUST be keyboard-accessible:

tsx
<div
  className={styles.page}
  tabIndex={0}              // Makes container focusable
  role="region"             // Semantic role for landmark
  aria-label="Page content" // Accessible name
  style={{ outline: 'none' }} // Remove default focus ring (add custom if needed)
>
  {/* Scrollable content */}
</div>

Without tabIndex={0}, keyboard users cannot scroll the content with arrow keys or Page Up/Down.

tsx
import { useId } from "@fluentui/react-components";

const MyComponent = () => {
  const inputId = useId("input");
  // inputId is guaranteed unique, e.g. "input-1", "input-2"
};

Pattern Checklist for Every Business Component

  1. Loading state — Show <Spinner label="Loading..." />
  2. Error state — Show <MessageBar intent="error"><MessageBarBody>...</MessageBarBody></MessageBar>
  3. Empty state — Show <MessageBar intent="info"><MessageBarBody>No items found.</MessageBarBody></MessageBar> or a custom empty illustration
  4. Disabled state — Disable buttons during mutations with disabled={isPending}
  5. Validation — Use <Field validationMessage="..." validationState="error"> for inline form errors
  6. Confirmation — Use <Dialog> before destructive actions (delete, discard changes)
  7. Feedback — Use toast notifications for success/failure of async operations
  8. Responsive — Use makeStyles with CSS grid/flex and @media queries for different viewports

See resources/pattern-errorboundary.md for the full ErrorBoundary class component with Fluent MessageBar fallback and per-route usage pattern.


flexShrink in Flex Containers

When building page layouts with display: flex and overflow: auto, set flexShrink: 0 on ALL fixed-height children (headers, footers, toolbars, pagination):

tsx
const useStyles = makeStyles({
  page: {
    display: 'flex',
    flexDirection: 'column',
    height: '100%',
    overflow: 'auto',       // Scroll container
  },
  header: {
    flexShrink: 0,           // Don't compress when viewport is small
  },
  content: {
    flex: 1,
    minHeight: 0,            // Allow flex child to shrink below content size
    overflow: 'auto',        // Inner scroll if needed
  },
  footer: {
    flexShrink: 0,           // Don't compress
  },
});

IMPORTANT: When adding flexShrink: 0 to fix a page, grep for ALL pages that use the same layout pattern and fix them all. Don't fix one page and leave the others vulnerable.


DataGrid Responsive Patterns

Always configure explicit column sizing to prevent columns from collapsing at narrow viewports:

tsx
const columnSizingOptions: TableColumnSizingOptions = {
  title: { minWidth: 200, idealWidth: 300 },
  status: { minWidth: 100, idealWidth: 120 },
  date: { minWidth: 100, idealWidth: 140 },
};

<DataGrid
  columnSizingOptions={columnSizingOptions}
  resizableColumns
>

Use <TableCellLayout truncate> to handle overflow text instead of letting cells wrap and expand.


See resources/pattern-notifications-zustand.md for the complete Zustand notification store and Fluent Toaster bridge pattern.


Lazy Loading Pages

Use React.lazy() and <Suspense> for route-level code splitting. This keeps the initial bundle small.

tsx
import { lazy, Suspense } from "react";
import { Spinner } from "@fluentui/react-components";

const AccountsPage = lazy(() => import("./pages/AccountsPage"));
const ContactsPage = lazy(() => import("./pages/ContactsPage"));

const PageFallback = () => (
  <div style={{ display: "flex", justifyContent: "center", padding: "48px" }}>
    <Spinner label="Loading..." size="medium" />
  </div>
);

// In Routes:
<Suspense fallback={<PageFallback />}>
  <Routes>
    <Route path="/accounts" element={<AccountsPage />} />
    <Route path="/contacts" element={<ContactsPage />} />
  </Routes>
</Suspense>

Rules:

  • Pages must use export default for lazy() to work
  • Place <Suspense> around <Routes>, not around each individual <Route>
  • Use <Spinner> as fallback — not a blank screen

HashRouter for Power Apps Code Apps

Power Apps Code Apps run inside an iframe where the host controls the URL. BrowserRouter will not work — always use HashRouter.

tsx
import { HashRouter } from "react-router-dom";

// In main.tsx or App.tsx:
<HashRouter>
  <App />
</HashRouter>

Status & Option Set Color Config

Map Dataverse option set values to Fluent UI Badge colors using a config object — avoid scattered switch/if chains.

tsx
// src/config/statusConfig.ts
import type { BadgeProps } from "@fluentui/react-components";

interface StatusConfig {
  label: string;
  color: BadgeProps["color"];
  icon?: React.ReactElement;
}

export const caseStatusConfig: Record<number, StatusConfig> = {
  0: { label: "Active", color: "success" },
  1: { label: "Resolved", color: "informative" },
  2: { label: "Cancelled", color: "danger" },
};

export const priorityConfig: Record<number, StatusConfig> = {
  1: { label: "High", color: "danger" },
  2: { label: "Normal", color: "warning" },
  3: { label: "Low", color: "informative" },
};
tsx
// Usage in a component:
import { Badge } from "@fluentui/react-components";
import { caseStatusConfig } from "../config/statusConfig";

const StatusBadge = ({ statusCode }: { statusCode: number }) => {
  const config = caseStatusConfig[statusCode] ?? {
    label: "Unknown",
    color: "informative" as const,
  };
  return (
    <Badge appearance="filled" color={config.color}>
      {config.label}
    </Badge>
  );
};

QueryClient Configuration

Configure TanStack Query's QueryClient with sensible defaults for business apps.

tsx
import { QueryClient } from "@tanstack/react-query";

export const queryClient = new QueryClient({
  defaultOptions: {
    queries: {
      staleTime: 5 * 60 * 1000,     // 5 minutes
      gcTime: 10 * 60 * 1000,        // 10 minutes (formerly cacheTime)
      retry: 1,
      refetchOnWindowFocus: false,    // avoid surprising refetches in MDA-style apps
    },
    mutations: {
      retry: 0,
    },
  },
});

Rules:

  • staleTime prevents constant re-fetches while the user navigates between tabs/pages
  • refetchOnWindowFocus: false is recommended for Power Apps (the host iframe causes spurious focus events)
  • Set gcTime >= staleTime so cached data isn't garbage-collected while still considered fresh

Validation Checklist

After implementing a component, verify: npm run build passes with no errors, no mergeClasses() warnings appear in the browser console, the component renders inside <FluentProvider>, and keyboard navigation works for interactive elements.

Common Mistakes to Avoid

MistakeCorrect Approach
Using Stack from v8Use makeStyles with display: "flex" and gap
Hardcoded colors ("#0078d4")Use tokens.colorBrandBackground
Hardcoded spacing ("16px", paddingBottom: "40px")Use tokens.spacingVerticalL — hardcoded px values are workarounds
Hardcoded radii, font sizes, shadowsUse tokens.borderRadiusMedium, tokens.fontSizeBase300, etc.
Missing FluentProviderWrap app root with <FluentProvider theme={webLightTheme}>
Using style={{...}} inlineUse makeStyles for performance and consistency
Reading event.target.value in onChangeRead from second arg: (_, data) => data.value
Not wrapping inputs in <Field>Always use <Field label="..."> for accessible forms
v8 DetailsList for tablesUse v9 DataGrid with createTableColumn
v8 Modal for dialogsUse v9 Dialog + DialogSurface
v8 Panel for side panelsUse v9 Drawer with position="end"
Using @fluentui/react (v8 package)Use @fluentui/react-components (v9)
Importing from @fluentui/react-northstarDeprecated — use @fluentui/react-components
Missing aria-label on icon buttonsAlways add aria-label="Action name"
BrowserRouter in Power AppsUse HashRouter — host controls URL
Hardcoded status colorsUse a status config map with Badge color prop
Custom dropdown for nav areasUse Fluent Menu / MenuList
Custom HTML table for dataUse Fluent DataGrid with createTableColumn
Hardcoded back-navigation (navigate("/list"))Pass { state: { from } } via React Router and read it in the detail page — back should return to the page the user came from, not a hardcoded route

Package Reference

PackagePurpose
@fluentui/react-componentsMain v9 package — all components, hooks, tokens
@fluentui/react-iconsIcon library (Fluent System Icons)
@fluentui/react-datepicker-compatDatePicker (compat layer, pending full v9 port)
@fluentui/react-timepicker-compatTimePicker (compat layer)

Note: DatePicker and TimePicker are in *-compat packages. They use v8 internals but integrate with v9 themes. Import them alongside @fluentui/react-components. A full v9 native DatePicker is expected in a future release.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ui Fluentui React làm được gì?

Best practices for building business applications with Fluent UI React v9 (@fluentui/react-components). Covers FluentProvider setup, theming, styling with makeStyles, layout patterns, data tables, forms, dialogs, drawers, navigation, toast notifications, command bars, record forms, lookup fields, subgrids, timelines, BPF bars, app shell navigation, and accessible component composition. Triggers on "fluent ui", "fluentui", "@fluentui/react-components", "fluent v9", "fluent provider", "makeStyles", "fluent theme", "fluent form", "fluent dialog", "fluent table", "fluent data grid", "fluent dra...

Vì sao nên dùng Ui Fluentui React trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ui Fluentui React là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ui Fluentui React trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scottdurow/power-platform-full-stack-skills/tree/main/skills/ui-fluentui-react. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ui Fluentui React?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Ui Fluentui React với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ui Fluentui React với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ui Fluentui React có miễn phí không?

Kỹ năng này được scottdurow phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇