Skip to content

Commit f8f1284

Browse files
committed
Enhance issue template by adding a link for Questions & Discussion, and introduce a new CI check to ensure skill names match their directory names.
1 parent 05e37bc commit f8f1284

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3+
- name: Questions & Discussion
4+
url: https://github.com/TMHSDigital/Steam-Cursor-Plugin/discussions
5+
about: Ask questions, share ideas, or request new skills in Discussions.
36
- name: Steam MCP Server
47
url: https://github.com/TMHSDigital/steam-mcp/issues
58
about: For issues with the companion Steam MCP server, file them in the steam-mcp repo.

.github/workflows/validate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,24 @@ jobs:
5353
fi
5454
echo "All skill frontmatter valid."
5555
56+
- name: Check skill name matches directory
57+
run: |
58+
echo "Checking skill names match directory names..."
59+
errors=0
60+
for skill in skills/*/SKILL.md; do
61+
dir_name=$(echo "$skill" | sed 's|skills/\(.*\)/SKILL.md|\1|')
62+
fm_name=$(sed -n '/^---$/,/^---$/p' "$skill" | sed '1d;$d' | grep "^name:" | sed 's/^name: *//')
63+
if [ "$dir_name" != "$fm_name" ]; then
64+
echo "ERROR: $skill has name '$fm_name' but directory is '$dir_name'"
65+
errors=$((errors + 1))
66+
fi
67+
done
68+
if [ $errors -gt 0 ]; then
69+
echo "$errors name mismatch(es) found."
70+
exit 1
71+
fi
72+
echo "All skill names match their directories."
73+
5674
- name: Validate rule frontmatter
5775
run: |
5876
echo "Checking rule YAML frontmatter..."

0 commit comments

Comments
 (0)