Skip to content

Commit 395fd1f

Browse files
sergicalclaude
andcommitted
feat(docs): add well-known skills discovery endpoint
Add `/.well-known/skills/index.json` endpoint to cli.sentry.dev for agent skills auto-discovery, following the Cloudflare Agent Skills Discovery RFC pattern. - Create skills manifest at `docs/public/.well-known/skills/index.json` - Update generate-skill.ts to output SKILL.md to both plugin and well-known paths - Update generate-skill.yml workflow to commit both SKILL.md files - Enables `npx skills add https://cli.sentry.dev` to auto-discover and install the sentry-cli skill Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f284f50 commit 395fd1f

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/generate-skill.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Check for changes
3838
id: diff
3939
run: |
40-
if git diff --quiet plugins/sentry-cli/skills/sentry-cli/SKILL.md; then
40+
if git diff --quiet plugins/sentry-cli/skills/sentry-cli/SKILL.md docs/public/.well-known/skills/sentry-cli/SKILL.md; then
4141
echo "changed=false" >> $GITHUB_OUTPUT
4242
echo "SKILL.md is already up to date"
4343
else
@@ -50,6 +50,6 @@ jobs:
5050
run: |
5151
git config user.name "github-actions[bot]"
5252
git config user.email "github-actions[bot]@users.noreply.github.com"
53-
git add plugins/sentry-cli/skills/sentry-cli/SKILL.md
53+
git add plugins/sentry-cli/skills/sentry-cli/SKILL.md docs/public/.well-known/skills/sentry-cli/SKILL.md
5454
git commit -m "chore: Regenerate SKILL.md"
5555
git push
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"skills": [
3+
{
4+
"name": "sentry-cli",
5+
"description": "Guide for using the Sentry CLI to interact with Sentry from the command line. Use when the user asks about viewing issues, events, projects, organizations, making API calls, or authenticating with Sentry via CLI.",
6+
"files": ["SKILL.md"]
7+
}
8+
]
9+
}

script/generate-skill.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import { routes } from "../src/app.js";
1616

1717
const OUTPUT_PATH = "plugins/sentry-cli/skills/sentry-cli/SKILL.md";
18+
const WELL_KNOWN_PATH = "docs/public/.well-known/skills/sentry-cli/SKILL.md";
1819
const DOCS_PATH = "docs/src/content/docs";
1920

2021
/** Regex to match YAML frontmatter at the start of a file */
@@ -772,5 +773,7 @@ async function generateSkillMarkdown(routeMap: RouteMap): Promise<string> {
772773

773774
const content = await generateSkillMarkdown(routes as unknown as RouteMap);
774775
await Bun.write(OUTPUT_PATH, content);
776+
await Bun.write(WELL_KNOWN_PATH, content);
775777

776778
console.log(`Generated ${OUTPUT_PATH}`);
779+
console.log(`Generated ${WELL_KNOWN_PATH}`);

0 commit comments

Comments
 (0)