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 overview
llms-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 Grep to find relevant lines in the knowledge base files:
Grep("Button", "knowledge-base/llms.txt")
Grep("button", "knowledge-base/llms-full.txt")
Read specific sections: Use Read to view the full content or specific lines:
Read("knowledge-base/llms-full.txt", offset=40, limit=50) # Example for button component
Browse all components: Use Glob to list available files:
Glob("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:
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:Grep("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:Grep("### 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:
Grep("### button", "knowledge-base/llms-full.txt", -A 10)
- Read the button section:
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:
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:
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.
1---2name: ant-design-knowledge-base3description: 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.4---56# Ant Design Knowledge Base78## Overview910This skill provides access to local Ant Design documentation and semantic descriptions sourced from the official Ant Design website. The knowledge base includes:11121. **Component Documentation**: Links to all Ant Design component documentation pages132. **Design Resources**: Links to design specifications, values, patterns, and guidelines143. **Semantic Descriptions**: Detailed semantic descriptions of each component's CSS class structure (root, icon, title, etc.)1516## Knowledge Base Files1718The following files are available in the `knowledge-base/` directory:1920- `llms.txt`: Contains documentation links and component overview21- `llms-full.txt`: Contains detailed semantic descriptions of all Ant Design components2223## How to Use This Knowledge Base2425### Finding Information2627When asked about Ant Design components, documentation, or semantics:28291. **Search for component names**: Use `Grep` to find relevant lines in the knowledge base files:30 ```bash31 Grep("Button", "knowledge-base/llms.txt")32 Grep("button", "knowledge-base/llms-full.txt")33 ```34352. **Read specific sections**: Use `Read` to view the full content or specific lines:36 ```bash37 Read("knowledge-base/llms-full.txt", offset=40, limit=50) # Example for button component38 ```39403. **Browse all components**: Use `Glob` to list available files:41 ```bash42 Glob("knowledge-base/*.txt")43 ```4445### File Structure Details4647#### `llms.txt` contains:48- Introduction to Ant Design49- Semantic descriptions link50- Documentation links (Resources, Visualization, Design Values, etc.)51- Component links (Affix through Watermark)5253#### `llms-full.txt` contains:54- Semantic descriptions for 64 Ant Design components55- For each component: root element and sub-element descriptions with CSS styling purposes5657### Common Queries5859#### Component Questions60When asked about a specific component (e.g., "Button", "Table", "Form"):611. Search for the component in both files:62 ```bash63 Grep("button", "knowledge-base/llms.txt", -i)64 Grep("### button", "knowledge-base/llms-full.txt", -i)65 ```662. Read the semantic description section for that component673. Provide the component's purpose, semantic elements, and documentation link6869#### Documentation Questions70When asked about design principles, values, or guidelines:711. Search for relevant terms in `llms.txt`:72 ```bash73 Grep("Design Values", "knowledge-base/llms.txt")74 Grep("Visualization", "knowledge-base/llms.txt")75 ```762. Provide the documentation links and summaries7778#### Semantic Description Questions79When asked about component structure or CSS classes:801. Find the component in `llms-full.txt`:81 ```bash82 Grep("### button", "knowledge-base/llms-full.txt", -A 20)83 ```842. Extract and explain the semantic elements (root, icon, title, etc.)853. Describe the styling purposes of each element8687## Examples8889### Example 1: Button Component Query90**User**: "What are the semantic elements of the Ant Design Button component?"9192**Approach**:931. Search for button in semantic descriptions:94 ```bash95 Grep("### button", "knowledge-base/llms-full.txt", -A 10)96 ```972. Read the button section:98 ```bash99 Read("knowledge-base/llms-full.txt", offset=42, limit=8)100 ```1013. Present the root, content, and icon elements with their styling purposes.102103### Example 2: Component Documentation Query104**User**: "Where can I find documentation for Ant Design Table component?"105106**Approach**:1071. Search for Table in component links:108 ```bash109 Grep("Table", "knowledge-base/llms.txt")110 ```1112. Provide the documentation URL and related resources.112113### Example 3: Design Principles Query114**User**: "What are the Ant Design design values?"115116**Approach**:1171. Search for Design Values link:118 ```bash119 Grep("Design Values", "knowledge-base/llms.txt")120 ```1212. Provide the link and summary from the knowledge base.122123## Notes124125- The knowledge base is in Chinese for semantic descriptions, but component names are in English.126- Some documentation links may require internet access to view full content.127- The semantic descriptions are focused on CSS class structure and styling purposes.128129## Skill Activation130131This skill will automatically activate when questions include terms like:132- "Ant Design"133- "antd"134- "React UI components"135- "component semantics"136- "design system"137- Specific component names (Button, Table, Form, etc.)138139When activated, Claude has permission to use Read, Grep, and Glob tools to access the knowledge base files in the `knowledge-base/` directory.