You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/ai/llms-txt/customize-llms-txt.mdx
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,19 @@ Customize what LLMs receive from your site by filtering content within a page us
7
7
8
8
## Filter within a page
9
9
10
-
Within pages, use `<llms-only>` and `<llms-ignore>` tags to control what content is exposed to AI versus human readers on your documentation site.
10
+
Within pages, use `<llms-only>` and `<llms-ignore>` tags to control what content is exposed to AI versus human readers on your documentation site. **UI-only elements belong to human readers, and their programmatic equivalents belong to AI agents.** Wrap clickable cards and UI walkthroughs in `<llms-ignore>`, and pair each with an `<llms-only>` block giving the CLI or API equivalent.
11
+
12
+
<Prompt
13
+
title="Add llms-only and llms-ignore tags to my docs"
14
+
>
15
+
Read this page: https://buildwithfern.com/learn/docs/ai-features/customize-llm-output.md
16
+
17
+
Then analyze my documentation repo and identify where `<llms-only>` and `<llms-ignore>` tags would improve agent readability, following the guiding principle that UI-only elements belong to human readers and their programmatic (CLI/API) equivalents belong to AI agents.
18
+
19
+
1. Report your analysis first: list the pages and specific sections where you would add each tag, and explain why.
20
+
2. Wait for my confirmation, then implement the changes.
21
+
3. Add rules on when to use `<llms-only>` and `<llms-ignore>` to my `AGENTS.md` file (create the file if it doesn't exist).
22
+
</Prompt>
11
23
12
24
### Content for AI only
13
25
@@ -75,9 +87,7 @@ Replace `my-org/fern-docs` with your desired owner and repository name. Use `--p
75
87
</div>
76
88
</div>
77
89
78
-
On the docs site, human readers see only the numbered UI steps — the `<llms-only>` block is hidden. LLMs reading this page's Markdown output see the inverse: no UI steps, only the `gh repo create` command they can actually run. Each audience gets the path they can act on.
79
-
80
-
The guiding principle: **UI-only elements belong to human readers, and their programmatic equivalents belong to AI agents.** Wrap clickable cards and UI walkthroughs in `<llms-ignore>` so agents skip them, and pair each UI step with an `<llms-only>` block that gives the CLI or API equivalent.
90
+
On the docs site, human readers see only the numbered UI steps; LLMs reading this page's Markdown see only the `gh repo create` command they can actually run.
81
91
82
92
To preview and debug what AI sees for any page, you can append `.md` or `.mdx` to the page URL to [view its Markdown source](/learn/docs/ai-features/markdown).
0 commit comments