Add llms.txt to repo root for AI tool discoverability - #49560
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
August 1, 2026 08:40
View session
pelikhan
marked this pull request as ready for review
August 1, 2026 08:46
Contributor
There was a problem hiding this comment.
Pull request overview
Adds generation support for a repository-root AI prompt index, but the generated llms.txt file itself is missing.
Changes:
- Adds a generator for
.github/aw/*.mdprompts. - Integrates generation into
agent-finish. - Adds Makefile help text.
Show a summary per file
| File | Description |
|---|---|
scripts/generate-llms-txt.js |
Generates the prompt index. |
Makefile |
Exposes and invokes the generator. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 4
- Review effort level: Balanced
|
|
||
| const ROOT = path.resolve(__dirname, ".."); | ||
| const AW_DIR = path.join(ROOT, ".github", "aw"); | ||
| const OUT_FILE = path.join(ROOT, "llms.txt"); |
Comment on lines
+8
to
+9
| * https://github.com/<org>/gh-aw/llms.txt resolves to the same content that | ||
| * the docs site serves at /llms.txt. |
Comment on lines
+27
to
+31
| function parseFrontmatterDescription(content) { | ||
| const match = content.match(/^---[\r\n]+([\s\S]*?)[\r\n]+---/); | ||
| if (!match) return ""; | ||
| const descMatch = match[1].match(/^description:\s*(.+)$/m); | ||
| return descMatch ? descMatch[1].trim() : ""; |
| # Agent should run this task before finishing its turns | ||
| .PHONY: agent-finish | ||
| agent-finish: deps-dev fmt lint build build-wasm test-all validate-otel-contract fix recompile dependabot generate-schema-docs generate-agent-factory security-scan | ||
| agent-finish: deps-dev fmt lint build build-wasm test-all validate-otel-contract fix recompile dependabot generate-schema-docs generate-agent-factory generate-llms-txt security-scan |
This was referenced Aug 1, 2026
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
https://github.com/github/gh-aw/llms.txtreturned 404 — there was no staticllms.txtat the repo root, only the dynamically-generated one served by the docs site athttps://github.github.com/gh-aw/llms.txt.Changes
llms.txt— Static file at repo root listing all 64.github/aw/*.mdprompt files with descriptions and rawgithubusercontent.comURLs; mirrors the format produced bydocs/src/pages/llms.txt.tsscripts/generate-llms-txt.js— Generator script that rebuildsllms.txtfrom.github/aw/when files are added/removed; run viamake generate-llms-txtMakefile— Addsgenerate-llms-txttarget; wired intoagent-finish