Skip to content

Commit a4423d2

Browse files
-m
1 parent fff7a90 commit a4423d2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

fern/products/docs/pages/ai/llms-txt/customize-llms-txt.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ The guiding principle: **UI-only elements belong to human readers, and their pro
8181
8282
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).
8383
84+
To apply this across an existing docs repo without combing through every page by hand, hand the following prompt to an AI agent. It reads this page, analyzes your repo, and proposes where `<llms-only>` and `<llms-ignore>` tags belong before making any edits.
85+
86+
<Prompt
87+
title="Add llms-only and llms-ignore tags to my docs"
88+
actions={["cursor", "claude", "chatgpt"]}
89+
>
90+
Read this page: https://buildwithfern.com/learn/docs/ai-features/customize-llm-output.md
91+
92+
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.
93+
94+
1. Report your analysis first: list the pages and specific sections where you would add each tag, and explain why.
95+
2. Wait for my confirmation, then implement the changes.
96+
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).
97+
</Prompt>
98+
8499
## Filter endpoint output
85100

86101
Filter `llms.txt` output with the `lang` and `excludeSpec` query parameters to reduce token usage. Parameters can also be combined.

0 commit comments

Comments
 (0)