Skip to content

Implement some changes to make our docs site more accessible to agents#2440

Open
ElliotFriend wants to merge 3 commits into
mainfrom
feat/agent-ready
Open

Implement some changes to make our docs site more accessible to agents#2440
ElliotFriend wants to merge 3 commits into
mainfrom
feat/agent-ready

Conversation

@ElliotFriend
Copy link
Copy Markdown
Contributor

I ran a custom scan on isitagentready.com, looking for relevant improvements we could make to the site. This is a starter PR that we can flesh out with more/better information. Namely, we should figure out the following:

  • Stellar RPC is the only published spec file that's put in place that's publicly accessible. Should the same be done for Horizon's OpenAPI spec?
  • The /.well-known/api-catalog endpoint includes the API docs for the anchor platform and the disbursement platform. should we keep those included? or, since it's less of a "publicly accessible" kind of thing should we not advertise them to agents?
  • We have the stellar-dev-skill which is coming along nicely. but, i'm not sure of the best/proper way to include that skill (and the sub-skills?) into this discovery endpoint at /.well-known/agent-skills/index.json

TODO: figure out the proper way to share our stellar-dev-skill here
TODO: consider publishing static routes to horizon API spec
Copilot AI review requested due to automatic review settings May 12, 2026 15:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces initial “agent discovery” affordances for the docs site by adding well-known discovery resources and advertising them via HTTP headers/robots metadata.

Changes:

  • Add an /.well-known/api-catalog Linkset JSON document enumerating key API documentation/spec endpoints.
  • Add an initial /.well-known/agent-skills/index.json discovery file (currently empty skills list).
  • Advertise the API catalog via Link headers in Nginx and add a Content-Signal directive to robots.txt.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
static/robots.txt Adds a Content-Signal directive alongside existing sitemap + crawling rules.
static/.well-known/api-catalog Adds a Linkset JSON document describing available API docs/specs.
static/.well-known/agent-skills/index.json Adds an Agent Skills discovery stub referencing the external schema.
nginx/nginx.conf Adds Link headers for API catalog discovery and sets the correct content-type for the extension-less Linkset endpoint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nginx/nginx.conf
Comment on lines 17 to 21
location / {
rewrite ^/(.*)/$ /$1 permanent;
try_files $uri $uri.html $uri/index.html =404;
add_header 'Link' '</.well-known/api-catalog>; rel="api-catalog"' always;
}
@stellar-jenkins-ci
Copy link
Copy Markdown

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.

2 participants