Skip to content

Give the generated llms.txt a description, agent instructions and a description for every page - #568

Closed
devkiran wants to merge 4 commits into
mainfrom
kiran/llms-txt-inputs
Closed

devkiran wants to merge 4 commits into
mainfrom
kiran/llms-txt-inputs

Conversation

@devkiran

@devkiran devkiran commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

dub.co/docs/llms.txt is the index agents read to find our docs, but today it has no site description or agent instructions, 30 guide pages have no description, and titles like "Introduction" repeat 10 times. We keep Mintlify's generated file, so new pages are still added automatically, and give it better inputs instead.

What changed

  • docs.json now has a site description and markdown.instructions. Mintlify shows them at the top of llms.txt, llms-full.txt and every page's .md export. The instructions say when to use Dub and point agents to the .md URLs, the docs MCP server, the Dub and Partners MCP servers and both OpenAPI specs. They also tell agents to test in a staging workspace and to ask before writes.
  • Every page in the navigation that had no frontmatter description now has one, written from the page's content.
  • Pages with repeated titles now have specific ones, such as "Introduction to the Partner API", "Partner API errors", "Postback event types" and "Partner API: List all payouts". The sidebar keeps the short name through sidebarTitle, so only the page heading and llms.txt change. The Dub API pages keep their spec titles.
  • A new CI check fails when a page in the docs.json navigation has no frontmatter description. OpenAPI pages are skipped because their description comes from the spec.

How to Test

  • Open /llms.txt on the preview and check that the description and an "Agent Instructions" block appear under # Dub.
  • Check that the analytics, client-side SDK feature, webhook and postback event pages now have descriptions in /llms.txt.
  • Open a partner API page such as List all payouts and check the heading reads "Partner API: List all payouts" while the sidebar still says "List payouts".
  • Remove description from any guide page and check that the "Check page descriptions" job fails.

Fixes dubinc/platform#1625

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 55 billable files and costs up to $13.75.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 31 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 54 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 3d5b8410-34b0-4d94-9baf-c2788a08c93c
Commits

Reviewing files that changed from the base of the PR and between 47fa35c and ae8c127.

Files selected for processing: 55

  • .github/workflows/check-page-descriptions.yml
  • docs.json
  • docs.mdx
  • docs/api-reference/authentication.mdx
  • docs/api-reference/errors.mdx
  • docs/api-reference/introduction.mdx
  • docs/concepts/analytics/device.mdx
  • docs/concepts/analytics/introduction.mdx
  • docs/concepts/analytics/location.mdx
  • docs/concepts/analytics/referrers.mdx
  • docs/concepts/analytics/utm.mdx
  • docs/concepts/links/introduction.mdx
  • docs/integrations.mdx
  • docs/partner-api-reference/commissions/list.mdx
  • docs/partner-api-reference/customers/list.mdx
  • docs/partner-api-reference/errors.mdx
  • docs/partner-api-reference/introduction.mdx
  • docs/partner-api-reference/messages/list.mdx
  • docs/partner-api-reference/messages/send.mdx
  • docs/partner-api-reference/payouts/list.mdx
  • docs/partner-api-reference/programs/list-network.mdx
  • docs/partner-api-reference/programs/list.mdx
  • docs/postbacks/event-types.mdx
  • docs/postbacks/events/commission-created.mdx
  • docs/postbacks/events/lead-created.mdx
  • docs/postbacks/events/message-received.mdx
  • docs/postbacks/events/sale-created.mdx
  • docs/postbacks/introduction.mdx
  • docs/sdks/client-side-mobile/introduction.mdx
  • docs/sdks/client-side/features/click-tracking.mdx
  • docs/sdks/client-side/features/conversion-tracking.mdx
  • docs/sdks/client-side/features/cross-domain-tracking.mdx
  • docs/sdks/client-side/features/identity-tracking.mdx
  • docs/sdks/client-side/features/reverse-proxy-support.mdx
  • docs/sdks/client-side/installation-guides/google-tag-manager.mdx
  • docs/sdks/client-side/installation-guides/shopify.mdx
  • docs/sdks/client-side/introduction.mdx
  • docs/webhooks/event-types.mdx
  • docs/webhooks/events/bounty-created.mdx
  • docs/webhooks/events/bounty-updated.mdx
  • docs/webhooks/events/commission-created.mdx
  • docs/webhooks/events/discount-code-created.mdx
  • docs/webhooks/events/discount-code-deleted.mdx
  • docs/webhooks/events/lead-created.mdx
  • docs/webhooks/events/link-clicked.mdx
  • docs/webhooks/events/link-created.mdx
  • docs/webhooks/events/link-deleted.mdx
  • docs/webhooks/events/link-updated.mdx
  • docs/webhooks/events/message-received.mdx
  • docs/webhooks/events/partner-enrolled.mdx
  • docs/webhooks/events/partner-merged.mdx
  • docs/webhooks/events/program-application-created.mdx
  • docs/webhooks/events/sale-created.mdx
  • docs/webhooks/introduction.mdx
  • scripts/check-page-descriptions.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@mintlify

mintlify Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Dub 🟢 Ready View Preview Dec 3, 2026, 11:26 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

This branch was successfully deployed

1 active deployment
staging — ae8c127d Deployed Dec 3, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant