docs: Add Instructions section to llms.txt for AI coding assistants#571
Open
anhtho-lago wants to merge 1 commit into
Open
docs: Add Instructions section to llms.txt for AI coding assistants#571anhtho-lago wants to merge 1 commit into
anhtho-lago wants to merge 1 commit into
Conversation
Adds a custom llms.txt that overrides Mintlify's auto-generated version with an Instructions section at the top. This tells AI coding assistants (Cursor, Copilot, Claude) the correct Lago integration flow — authentication, the billable metric → plan → customer → subscription → events sequence, idempotency keys, batch events, payment provider configuration, and webhooks. Inspired by Stripe's llms.txt pattern. Without behavioral guidance, AI assistants guess the integration order and often get it wrong. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
llms.txtthat overrides Mintlify's auto-generated versionWhy
AI coding assistants (Cursor, Copilot, Claude) are becoming the primary way developers discover and integrate billing APIs. Without behavioral guidance in
llms.txt, they guess the integration order and often get it wrong — e.g., creating events before creating a billable metric.Stripe already does this and it dramatically improves generated code quality.
Test plan
docs.getlago.com/llms.txtserves the custom file (not the auto-generated one) after deployNote
The custom file includes all existing auto-generated page links so nothing is lost. The only addition is the blockquote description + Instructions section at the top.
🤖 Generated with Claude Code