-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: Add .well-known/skills discovery endpoint for AI agents #16234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Implements the Cloudflare Agent Skills Discovery RFC to expose documentation skills at /.well-known/skills/. This allows AI coding assistants to discover and use Sentry documentation when helping users implement SDKs. Skills exposed: - sentry-docs: SDK setup, configuration, and troubleshooting - technical-docs: Documentation writing guidelines - docs-review: Sentry style guide for reviewers Also adds documentation pages: - /agentic-usage/ for SDK users - /contributing/agentic-usage/ for doc contributors Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Vercel doesn't follow symlinks during build. This adds a copy-skills script that copies skill files from .claude/skills/ to public/.well-known/skills/ during build. Co-Authored-By: Claude <noreply@anthropic.com>
| "name": "technical-docs", | ||
| "description": "Write and review technical documentation for Sentry SDK docs. Use when creating, editing, or reviewing documentation pages, especially MDX files in docs/platforms/.", | ||
| "files": ["SKILL.md"] | ||
| }, | ||
| { | ||
| "name": "docs-review", | ||
| "description": "Review documentation for Sentry style and voice. Use when reviewing or writing user-facing documentation to ensure it follows the Sentry documentation style guide.", | ||
| "files": ["SKILL.md"] | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The global trailingSlash: true setting will cause a redirect for /.well-known/skills/index.json, which may break clients expecting a direct file response.
Severity: HIGH
Suggested Fix
Add a specific configuration rule in vercel.json or next.config.ts to create an exception for the /.well-known/skills/index.json path, disabling the trailing slash redirect for this specific file to ensure it is served directly.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: public/.well-known/skills/index.json#L1-L19
Potential issue: The global `trailingSlash: true` configuration in both `next.config.ts`
and `vercel.json` will cause requests for the `/.well-known/skills/index.json` file to
receive a 308 redirect to `/.well-known/skills/index.json/`. This behavior contradicts
the standard convention for serving JSON files and will likely cause issues for clients
attempting to discover skills, as they typically expect a direct file response without a
trailing slash and may not handle the redirect correctly.
Did we get this right? 👍 / 👎 to inform future reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
/.well-known/skills/Skills exposed:
sentry-docstechnical-docsdocs-reviewDocumentation pages added:
/agentic-usage/- For SDK users using AI agents/contributing/agentic-usage/- For doc contributorsNote: Skill files are copied at build time instead of using symlinks because Vercel doesn't follow symlinks.
Test plan
yarn buildsucceedsyarn build:developer-docssucceeds/.well-known/skills/index.jsonreturns skills manifest/.well-known/skills/sentry-docs/SKILL.mdreturns content/agentic-usage/page renders/contributing/agentic-usage/page renders🤖 Generated with Claude Code