Skip to content

Commit 558df24

Browse files
authored
feat(skills): add dynamic skill fetching to all router skills (#19)
When an agent matches a skill via a router but doesn't have it installed locally, the router now instructs it to fetch the SKILL.md directly from the GitHub repo using the raw content URL pattern: https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<name>/SKILL.md This ensures agents that only have the three router skills installed can still access the full library of SDK, workflow, and feature skills on-demand without requiring a full local clone. The Skill Tree is referenced as the source of truth for valid skill names and paths. Updated all three routers: - sentry-sdk-setup (SDK setup wizard routing) - sentry-workflow (issue fixing, code review routing) - sentry-feature-setup (AI monitoring, OTel, alerts routing) Co-Authored-By: Claude (Anthropic)
1 parent ef12102 commit 558df24

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

skills/sentry-feature-setup/SKILL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ Match the user's request to the appropriate feature skill below.
2222
1. If the user mentions AI monitoring, LLM tracing, or instrumenting an AI SDK → load `sentry-setup-ai-monitoring`.
2323
2. If the user mentions OpenTelemetry, OTel Collector, or multi-service telemetry routing → load `sentry-otel-exporter-setup`.
2424
3. If the user mentions alerts, notifications, on-call, Slack/PagerDuty integration, or workflow rules → load `sentry-create-alert`.
25+
26+
## Dynamic Skill Fetching
27+
28+
If the matched skill is **not installed locally**, fetch it directly from the repository:
29+
30+
1. Build the raw URL: `https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md`
31+
2. Fetch the file contents (e.g. `curl -sL <url>`) and follow its instructions.
32+
33+
The [Skill Tree](../../SKILL_TREE.md) lists every available skill with its path — use it as the source of truth for valid skill names and paths.

skills/sentry-sdk-setup/SKILL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,12 @@ Detect the user's platform from project files (e.g. `package.json`, `go.mod`, `G
3030
3. If Next.js is detected, prefer `sentry-nextjs-sdk` over `sentry-react-sdk`.
3131
4. If React Native is detected, prefer `sentry-react-native-sdk` over `sentry-react-sdk`.
3232
5. If no match is found, direct the user to https://docs.sentry.io/platforms/ to find their platform.
33+
34+
## Dynamic Skill Fetching
35+
36+
If the matched SDK skill is **not installed locally**, fetch it directly from the repository:
37+
38+
1. Build the raw URL: `https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md`
39+
2. Fetch the file contents (e.g. `curl -sL <url>`) and follow its instructions.
40+
41+
The [Skill Tree](../../SKILL_TREE.md) lists every available skill with its path — use it as the source of truth for valid skill names and paths.

skills/sentry-workflow/SKILL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ Match the user's intent to the appropriate workflow skill below.
2323
2. If the user mentions Sentry bot comments, PR review comments from Sentry, or `sentry[bot]` → load `sentry-code-review`.
2424
3. If the user mentions Seer, bug prediction, or reviewing PRs for predicted issues → load `sentry-pr-code-review`.
2525
4. When unclear, ask whether the task involves live production issues (MCP) or PR review comments.
26+
27+
## Dynamic Skill Fetching
28+
29+
If the matched skill is **not installed locally**, fetch it directly from the repository:
30+
31+
1. Build the raw URL: `https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md`
32+
2. Fetch the file contents (e.g. `curl -sL <url>`) and follow its instructions.
33+
34+
The [Skill Tree](../../SKILL_TREE.md) lists every available skill with its path — use it as the source of truth for valid skill names and paths.

0 commit comments

Comments
 (0)