mirror of
https://github.com/getsentry/sentry-agent-skills.git
synced 2026-09-20 14:23:25 +08:00
7d7fb4fcc8
* chore: remove deprecated setup skills superseded by SDK bundles Remove sentry-ios-swift-setup, sentry-react-native-setup, sentry-setup-tracing, sentry-setup-logging, and sentry-setup-metrics skills. These are now covered by the full SDK bundle skills (sentry-cocoa-sdk, sentry-react-native-sdk, etc.) which provide comprehensive platform-specific guidance. Update README.md to remove all references: table rows, usage examples, and directory structure examples (replaced sentry-setup-tracing with sentry-fix-issues). * chore(release): generate skill list dynamically from SKILL.md frontmatter Replace the hardcoded (and stale) skill list in the release workflow with a script that reads name and description from each skills/*/SKILL.md frontmatter. This ensures the release notes stay current as skills are added or removed. Adds scripts/generate-skill-list.sh which extracts the first sentence of each skill's description and formats it as a markdown list.
40 lines
982 B
Bash
Executable File
40 lines
982 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generates a markdown list of skills from skills/*/SKILL.md frontmatter.
|
|
# Used by the release workflow to keep the "Included Skills" section current.
|
|
|
|
set -euo pipefail
|
|
|
|
SKILLS_DIR="${1:-skills}"
|
|
|
|
for skill_file in "$SKILLS_DIR"/*/SKILL.md; do
|
|
[ -f "$skill_file" ] || continue
|
|
|
|
name=""
|
|
desc=""
|
|
in_frontmatter=false
|
|
|
|
while IFS= read -r line; do
|
|
if [[ "$line" == "---" ]]; then
|
|
if $in_frontmatter; then
|
|
break
|
|
else
|
|
in_frontmatter=true
|
|
continue
|
|
fi
|
|
fi
|
|
if $in_frontmatter; then
|
|
if [[ "$line" =~ ^name:\ *(.*) ]]; then
|
|
name="${BASH_REMATCH[1]}"
|
|
elif [[ "$line" =~ ^description:\ *(.*) ]]; then
|
|
# Take only the first sentence (up to first period followed by space or end)
|
|
raw="${BASH_REMATCH[1]}"
|
|
desc=$(echo "$raw" | sed 's/\. .*/\./')
|
|
fi
|
|
fi
|
|
done < "$skill_file"
|
|
|
|
if [[ -n "$name" && -n "$desc" ]]; then
|
|
echo "- \`$name\` - $desc"
|
|
fi
|
|
done
|