Files
ant-design/docs/react/llms.en-US.md
2025-12-26 12:05:18 +08:00

2.7 KiB
Raw Permalink Blame History

group, order, title, tag
group order title tag
title order
AI 0.9
1 LLMs.txt New

This guide explains how to enable AI tools like Cursor, Windsurf, and Claude to better understand Ant Design.

What is LLMs.txt?

We support LLMs.txt files for making the Ant Design documentation available to large language models (LLMs). This feature helps AI tools better understand our component library, its APIs, and usage patterns.

Available Routes

We provide several LLMs.txt routes to help AI tools access our documentation:

  • llms.txt - Contains a structured overview of all components and their documentation links
  • llms-full.txt - Provides comprehensive documentation including implementation details and examples

Usage with AI Tools

Cursor

Use the @Docs feature in Cursor to include the LLMs.txt files in your project. This helps Cursor provide more accurate code suggestions and documentation for Ant Design components.

Read more about @Docs in Cursor

Windsurf

Reference the LLMs.txt files using @ or in your .windsurf/rules files to enhance Windsurf's understanding of Ant Design components.

Read more about Windsurf Memories

Claude Code

In Claude Code, add LLMs.txt to the workspace Knowledge Base (Docs / Context Files) configuration. This allows the file to be referenced during code completion and explanation, improving understanding of Ant Design components.

Learn more about Claude Code document context configuration

Gemini CLI

In Gemini CLI, you can specify the LLMs.txt file path with the --context parameter or in .gemini/config.json, enabling Gemini to reference the document when answering or generating code.

Learn more about Gemini CLI context configuration

Trae

In Trae, place the LLMs.txt file into the projects knowledge sources and enable referencing in the settings. This allows Trae to better support Ant Design components when generating or analyzing code.

Learn more about Trae knowledge sources

Qoder

In Qoder, you can add LLMs.txt as an external knowledge file in .qoder/config.yml, or temporarily reference it in a conversation with @docs LLMs.txt, enhancing support for Ant Design components.

Learn more about Qoder configuration

Other AI Tools

Any AI tool that supports LLMs.txt can use these routes to better understand Ant Design. Simply point your tool to any of the routes above.