Skip to content

Commit 77fa908

Browse files
Add Prompt component for applying llms tags via an agent
(#6445) Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Devin Logan <devinannlogan@gmail.com>
1 parent 4fb356d commit 77fa908

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,19 @@ Customize what LLMs receive from your site by filtering content within a page us
77

88
## Filter within a page
99

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>
1123

1224
### Content for AI only
1325

@@ -75,9 +87,7 @@ Replace `my-org/fern-docs` with your desired owner and repository name. Use `--p
7587
</div>
7688
</div>
7789

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.
8191
8292
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).
8393

0 commit comments

Comments
 (0)