Skip to content

Commit f91fb0c

Browse files
sergicalclaude
andcommitted
refactor(docs): use symlink for well-known SKILL.md
Replace duplicate file with symlink pointing to the plugin source at plugins/sentry-cli/skills/sentry-cli/SKILL.md. Astro resolves symlinks during build, so dist/ receives the actual file content. - Remove WELL_KNOWN_PATH from generate-skill.ts (single write location) - Update workflow to check only the plugin path - Symlink ensures single source of truth for SKILL.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 395fd1f commit f91fb0c

3 files changed

Lines changed: 3 additions & 5 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 docs/public/.well-known/skills/sentry-cli/SKILL.md; then
40+
if git diff --quiet plugins/sentry-cli/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 docs/public/.well-known/skills/sentry-cli/SKILL.md
53+
git add plugins/sentry-cli/skills/sentry-cli/SKILL.md
5454
git commit -m "chore: Regenerate SKILL.md"
5555
git push
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../plugins/sentry-cli/skills/sentry-cli/SKILL.md

script/generate-skill.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
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";
1918
const DOCS_PATH = "docs/src/content/docs";
2019

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

774773
const content = await generateSkillMarkdown(routes as unknown as RouteMap);
775774
await Bun.write(OUTPUT_PATH, content);
776-
await Bun.write(WELL_KNOWN_PATH, content);
777775

778776
console.log(`Generated ${OUTPUT_PATH}`);
779-
console.log(`Generated ${WELL_KNOWN_PATH}`);

0 commit comments

Comments
 (0)