Repository navigation
docs: add agent-facing metadata to docs.json - #604
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
Claude finished @dangrondahl's task in 55s —— View job Follow-up review complete
Previous finding (client_reference 404 risk): ✅ Resolved — No new bugs or regressions introduced by the one-line wording change in |
|
Every page served as Markdown (any > ## Agent Instructions
> Append `.md` to any page URL to get the page as Markdown, for example https://docs.kosli.com/getting_started/install.md.
> To search these docs, use the Kosli docs MCP server at https://docs.kosli.com/mcp.
> For step-by-step task workflows, read https://docs.kosli.com/skill.md.
> For exact CLI commands, flags and defaults, start at https://docs.kosli.com/client_reference/overview.md instead of guessing. The command pages are generated from the CLI source. |
Follow-up review: commit
|
Config-only change to
docs.jsonso Mintlify generates better agent-facing output (llms.txt, page Markdown, JSON-LD, Link header). No content pages, navigation, redirects, or custom llms.txt/robots.txt/skill.md.Every field was checked against the schema at https://mintlify.com/docs.json and the Mintlify pages on SEO and llms.txt. All four exist in the schema, so nothing was left out.
Fields added
description/llms.txt, which fixes the "No blockquote summary found" warning from the agent readiness check. The schema also uses it for SEO and AEO. The wording comes fromindex.mdxandunderstand_kosli/what_is_kosli.md.markdown.instructions/llms.txt. Per the schema, it is also appended to every page served as Markdown. It has four lines: append.mdfor Markdown, use the docs MCP server (/mcp) to search, read/skill.mdfor task workflows, and useclient_reference/for exact CLI flags instead of guessing.seo.organizationOrganization(publisher) entity in the JSON-LD on every page: nameKosli, urlhttps://www.kosli.com, logohttps://docs.kosli.com/logo/kosli-logo-light-main.svg. The schema needs an absolute URI forlogo, so the/logopath is written as a full URL.contextual.optionsdownload-specsits next toview, and it also makes Mintlify advertise the API catalog in the Link header.assistantsits in front of the external AI chat options.add-mcpsits next tomcp. The existing options keep their relative order.Verification
mint validate: build passed, validation passedmint broken-links: no broken links foundpytest tests/: 68 passedmint score docs.kosli.com --format json(against the live site, before this change)Overall 97 (A), 31/35 checks passed. These checks did not pass:
llms-txt-validllms-txt-sizesection-header-qualityauth-alternative-accesscontent-negotiation(15/15 sampled pages) andmarkdown-content-parity(all 15 pages, avg 0% missing) both passed, so the score named no page URLs for them.llms-txt-validshould pass once this is deployed.llms-txt-sizeis out of scope here. Adding the description and instructions makes llms.txt a little longer, but it stays well under the 100,000-character split limit.For the reviewer
The llms.txt and JSON-LD changes only show on a deployed site, so
mint devwon't show them. Please check the Mintlify preview deployment for this PR:<preview>/llms.txt: there should be a>blockquote summary under# Kosli Documentation, followed by an## Agent Instructionsblock.mdURL: the instructions should be appendedOrganizationentity should have the Kosli name, URL and logo