Agent skill
ant-design-knowledge-base
Provides comprehensive answers about Ant Design components, documentation, and semantic descriptions using local knowledge base files. Use when asked about Ant Design, React UI components, design system, component semantics, or specific component usage.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/ant-design-knowledge-base
SKILL.md
Ant Design Knowledge Base
Overview
This skill provides access to local Ant Design documentation and semantic descriptions sourced from the official Ant Design website. The knowledge base includes:
- Component Documentation: Links to all Ant Design component documentation pages
- Design Resources: Links to design specifications, values, patterns, and guidelines
- Semantic Descriptions: Detailed semantic descriptions of each component's CSS class structure (root, icon, title, etc.)
Knowledge Base Files
The following files are available in the knowledge-base/ directory:
llms.txt: Contains documentation links and component overviewllms-full.txt: Contains detailed semantic descriptions of all Ant Design components
How to Use This Knowledge Base
Finding Information
When asked about Ant Design components, documentation, or semantics:
-
Search for component names: Use
Grepto find relevant lines in the knowledge base files:bashGrep("Button", "knowledge-base/llms.txt") Grep("button", "knowledge-base/llms-full.txt") -
Read specific sections: Use
Readto view the full content or specific lines:bashRead("knowledge-base/llms-full.txt", offset=40, limit=50) # Example for button component -
Browse all components: Use
Globto list available files:bashGlob("knowledge-base/*.txt")
File Structure Details
llms.txt contains:
- Introduction to Ant Design
- Semantic descriptions link
- Documentation links (Resources, Visualization, Design Values, etc.)
- Component links (Affix through Watermark)
llms-full.txt contains:
- Semantic descriptions for 64 Ant Design components
- For each component: root element and sub-element descriptions with CSS styling purposes
Common Queries
Component Questions
When asked about a specific component (e.g., "Button", "Table", "Form"):
- Search for the component in both files:
bash
Grep("button", "knowledge-base/llms.txt", -i) Grep("### button", "knowledge-base/llms-full.txt", -i) - Read the semantic description section for that component
- Provide the component's purpose, semantic elements, and documentation link
Documentation Questions
When asked about design principles, values, or guidelines:
- Search for relevant terms in
llms.txt:bashGrep("Design Values", "knowledge-base/llms.txt") Grep("Visualization", "knowledge-base/llms.txt") - Provide the documentation links and summaries
Semantic Description Questions
When asked about component structure or CSS classes:
- Find the component in
llms-full.txt:bashGrep("### button", "knowledge-base/llms-full.txt", -A 20) - Extract and explain the semantic elements (root, icon, title, etc.)
- Describe the styling purposes of each element
Examples
Example 1: Button Component Query
User: "What are the semantic elements of the Ant Design Button component?"
Approach:
- Search for button in semantic descriptions:
bash
Grep("### button", "knowledge-base/llms-full.txt", -A 10) - Read the button section:
bash
Read("knowledge-base/llms-full.txt", offset=42, limit=8) - Present the root, content, and icon elements with their styling purposes.
Example 2: Component Documentation Query
User: "Where can I find documentation for Ant Design Table component?"
Approach:
- Search for Table in component links:
bash
Grep("Table", "knowledge-base/llms.txt") - Provide the documentation URL and related resources.
Example 3: Design Principles Query
User: "What are the Ant Design design values?"
Approach:
- Search for Design Values link:
bash
Grep("Design Values", "knowledge-base/llms.txt") - Provide the link and summary from the knowledge base.
Notes
- The knowledge base is in Chinese for semantic descriptions, but component names are in English.
- Some documentation links may require internet access to view full content.
- The semantic descriptions are focused on CSS class structure and styling purposes.
Skill Activation
This skill will automatically activate when questions include terms like:
- "Ant Design"
- "antd"
- "React UI components"
- "component semantics"
- "design system"
- Specific component names (Button, Table, Form, etc.)
When activated, Claude has permission to use Read, Grep, and Glob tools to access the knowledge base files in the knowledge-base/ directory.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?