Skip to content

Commit c1461d3

Browse files
betegonclaude
andcommitted
refactor: split skill docs into reference files and improve skill loader
Move verbose inline command documentation from SKILL.md into per-command reference files under references/. Update generate-skill and check-skill scripts to support the new structure, and refactor agent-skills loader to resolve reference paths at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b5bc811 commit c1461d3

File tree

22 files changed

+2455
-874
lines changed

22 files changed

+2455
-874
lines changed

.cursor/skills/sentry-cli/SKILL.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,22 @@ jobs:
110110
key: node-modules-${{ hashFiles('bun.lock', 'patches/**') }}
111111
- if: steps.cache.outputs.cache-hit != 'true'
112112
run: bun install --frozen-lockfile
113-
- name: Check SKILL.md
113+
- name: Check skill files
114114
id: check
115115
run: bun run check:skill
116116
continue-on-error: true
117-
- name: Auto-commit regenerated SKILL.md
117+
- name: Auto-commit regenerated skill files
118118
if: steps.check.outcome == 'failure' && steps.token.outcome == 'success'
119119
run: |
120120
git config user.name "github-actions[bot]"
121121
git config user.email "github-actions[bot]@users.noreply.github.com"
122-
git add plugins/sentry-cli/skills/sentry-cli/SKILL.md
123-
git commit -m "chore: regenerate SKILL.md"
122+
git add plugins/sentry-cli/skills/sentry-cli/ docs/public/.well-known/skills/index.json
123+
git commit -m "chore: regenerate skill files"
124124
git push
125-
- name: Fail for fork PRs with stale SKILL.md
125+
- name: Fail for fork PRs with stale skill files
126126
if: steps.check.outcome == 'failure' && steps.token.outcome != 'success'
127127
run: |
128-
echo "::error::SKILL.md is out of date. Run 'bun run generate:skill' locally and commit the result."
128+
echo "::error::Skill files are out of date. Run 'bun run generate:skill' locally and commit the result."
129129
exit 1
130130
131131
lint:

docs/public/.well-known/skills/index.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
{
44
"name": "sentry-cli",
55
"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"]
6+
"files": [
7+
"SKILL.md",
8+
"references/auth.md",
9+
"references/org.md",
10+
"references/project.md",
11+
"references/issue.md",
12+
"references/event.md",
13+
"references/api.md",
14+
"references/cli.md",
15+
"references/repo.md",
16+
"references/team.md",
17+
"references/log.md",
18+
"references/trace.md",
19+
"references/init.md"
20+
]
721
}
822
]
923
}

docs/public/.well-known/skills/sentry-cli/SKILL.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)