मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)39k · #7484

antd

यह क्या करती है

यह स्किल एजेंट को Ant Design कॉम्पोनेंट लाइब्रेरी के सटीक संदर्भ डेटा देती है। यह उन डेवलपर के लिए है जो antd इस्तेमाल करने वाली React स्क्रीन बना या ठीक कर रहे हैं।

कब इस्तेमाल करें

  • ✓जब आप अपने कोड में कोई Ant Design कॉम्पोनेंट लिख या बदल रहे हों।
  • ✓जब आपको किसी कॉम्पोनेंट के सही प्रॉप्स, काम करने वाला डेमो या डिज़ाइन टोकन चाहिए।
  • ✓जब आप Ant Design के संस्करणों के बीच अपग्रेड कर रहे हों या antd की समस्या ठीक कर रहे हों।

Skill का लिंक

https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/antd/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/ant-design/ant-design-pro/blob/master/.claude/skills/antd/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस फ़ॉर्म में एक Ant Design डेट पिकर जोड़िए। पहले उपलब्ध प्रॉप्स जाँचिए और काम करने वाला उदाहरण इस्तेमाल कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट एक स्थानीय कमांड-लाइन टूल इस्तेमाल करता है, जिसमें कई संस्करणों का Ant Design डेटा बंडल है। वह हर कॉम्पोनेंट के प्रॉप्स, डेमो और थीम टोकन देखता है, फिर याददाश्त के बजाय उसी जानकारी के आधार पर कोड लिखता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Ant Design CLI

You have access to @ant-design/cli — a local CLI tool with bundled antd metadata for v3/v4/v5/v6. Use it to query component knowledge, analyze projects, and guide migrations. All data is offline, no network needed.

Setup

The CLI is installed as a dev dependency. Use npx antd to run it.

Always use --format json for structured output you can parse programmatically.

Scenarios

1. Writing antd component code

Before writing any antd component code, look up its API first — don't rely on memory.

# Check what props are available
npx antd info Button --format json

# Get a working demo as starting point
npx antd demo Button basic --format json

# Check semantic classNames/styles for custom styling
npx antd semantic Button --format json

# Check component-level design tokens for theming
npx antd token Button --format json

Workflow: antd info → understand props → antd demo → grab a working example → write code.

2. Looking up full documentation

When you need comprehensive component docs (not just props):

npx antd doc Table --format json        # full markdown docs for Table
npx antd doc Table --lang zh            # Chinese docs

3. Debugging antd issues

When code isn't working as expected or the user reports an antd bug:

# Collect full environment snapshot (system, deps, browsers, build tools)
npx antd env --format json

# Check if the prop exists for the user's antd version
npx antd info Select --version 5.12.0 --format json

# Check if the prop is deprecated
npx antd lint ./src/components/MyForm.tsx --format json

# Diagnose project-level configuration issues
npx antd doctor --format json

Workflow: antd env → capture full environment → antd doctor → check configuration → antd info --version X → verify API against the user's exact version → antd lint → find deprecated or incorrect usage.

4. Migrating between versions

When the user wants to upgrade antd (e.g., v3 → v4 or v4 → v5):

# Get full migration checklist
npx antd migrate 3 4 --format json    # v3 → v4
npx antd migrate 4 5 --format json    # v4 → v5

# Check migration for a specific component
npx antd migrate 4 5 --component Select --format json

# See what changed between two versions
npx antd changelog 4.24.0 5.0.0 --format json

# See changes for a specific component
npx antd changelog 4.24.0 5.0.0 Select --format json

Workflow: antd migrate → get full checklist → antd changelog <v1> <v2> → understand breaking changes → apply fixes → antd lint → verify no deprecated usage remains.

5. Analyzing project antd usage

When the user wants to understand how antd is used in their project:

# Scan component usage statistics
npx antd usage ./src --format json

# Filter to a specific component
npx antd usage ./src --filter Form --format json

# Lint for best practice violations
npx antd lint ./src --format json

# Check only specific rule categories
npx antd lint ./src --only deprecated --format json
npx antd lint ./src --only a11y --format json
npx antd lint ./src --only performance --format json

6. Checking changelogs and version history

When the user asks about what changed in a version:

# Specific version changelog
npx antd changelog 5.22.0 --format json

# Version range (both ends inclusive)
npx antd changelog 5.21.0..5.24.0 --format json

7. Exploring available components

When the user is choosing which component to use:

# List all components with categories
npx antd list --format json

# List components for a specific antd version
npx antd list --version 5.0.0 --format json

8. Collecting environment info

When you need to understand the project's antd setup, or prepare info for a bug report:

# Full environment snapshot (text — paste into GitHub Issues)
npx antd env

# Structured JSON for programmatic use
npx antd env --format json

# Scan a specific project directory
npx antd env ./my-project --format json

9. Reporting antd bugs

When the user asks you to report an antd bug:

# Step 0: Collect environment info for reference (optional)
npx antd env --format json

# Step 1: Preview for user review
npx antd bug --title "DatePicker crashes when selecting date" \
  --reproduction "https://codesandbox.io/s/xxx" \
  --steps "1. Open DatePicker 2. Click a date" \
  --expected "Date is selected" \
  --actual "Component crashes with error" \
  --format json
अक्सर पूछे जाने वाले सवाल

क्या इसके लिए इंटरनेट चाहिए?

नहीं। Ant Design का डेटा स्थानीय कमांड-लाइन टूल के साथ बंडल है, इसलिए खोज ऑफ़लाइन चलती है।

यह कौन-से संस्करण कवर करती है?

Ant Design संस्करण 3, 4, 5 और 6।

क्या यह माइग्रेशन में मदद कर सकती है?

हाँ। यह Ant Design संस्करणों के बीच माइग्रेशन का मार्गदर्शन कर सकती है और प्रोजेक्ट में antd के इस्तेमाल का विश्लेषण कर सकती है।

जानकारी

लेखक का मूल विवरण

Use when the user's task involves Ant Design (antd) — writing antd components, debugging antd issues, querying antd APIs/props/tokens/demos, migrating between antd versions, or analyzing antd usage in a project. Triggers on antd-related code, imports from 'antd', or explicit antd questions.

repo: ant-design/ant-design-pro

लोकप्रियता

GitHub स्टार
39k
रैंकिंग में स्थान
#7484
लाइसेंस
MIT
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills