Skip to content

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

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

Implement some changes to make our docs site more accessible to agents#2440
ElliotFriend wants to merge 4 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

Fill the empty skills[] stub with the 7 stellar-dev-skill skills, pinned to
stellar-dev-skill@v1.2.0:
- 6 single-file skills as type:skill-md (raw GH at the tag)
- smart-contracts as type:archive (v1.2.0 release-asset tarball; it ships
  companion files, which the RFC requires be bundled)
Digests verified against the served artifacts.
@stellar-jenkins-ci

Copy link
Copy Markdown

@kaankacar

kaankacar commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Pushed a commit to feat/agent-ready filling in static/.well-known/agent-skills/index.json (was an empty skills: [] stub) with the 7 skills from stellar/stellar-dev-skill, now that it has its first pinnable release v1.2.0 @ElliotFriend .

On the "best/proper way to include the skill (and the sub-skills?)" question:

  • 6 single-file skills (agentic-payments, assets, dapp, data, standards, zk-proofs) → type: "skill-md", url pinned to the raw file at the tag, digest = sha256 of that file.
  • smart-contracts is multi-file (SKILL.md + development/security/testing), and the RFC requires multi-file skills be bundled, so it's type: "archive", url → the v1.2.0 release-asset smart-contracts.tar.gz (SKILL.md at the archive root), digest = sha256 of the tarball. Companion files can't be listed individually, so the tarball is how the "sub-skills" travel.

All 7 digests verified to resolve against the served artifacts (raw GH for skill-md, the release asset for the archive). The tarball is a release asset only, not committed to the skill repo tree.

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.

3 participants