Add commands/watch.md so /watch is callable via Claude Code plugin
Claude Code plugins expose slash commands from commands/*.md; the root SKILL.md alone isn't discovered. Thin shim delegates to the existing skill contract. Strip commands/ from the claude.ai .skill bundle since that surface uses SKILL.md directly. Bumped to 0.1.1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -21,11 +21,13 @@ OUT="dist/watch.skill"
|
||||
git archive --format=zip --prefix=watch/ --output="$OUT" HEAD
|
||||
|
||||
# claude.ai's .skill bundle needs only SKILL.md + scripts/ runtime. Claude Code
|
||||
# needs hooks/ and .claude-plugin/ in the git archive (that's why they are NOT
|
||||
# in .gitattributes export-ignore), but the .skill bundle should strip them to
|
||||
# keep a single canonical SKILL.md and stay well under the 200-file cap.
|
||||
# needs hooks/, commands/, and .claude-plugin/ in the git archive (that's why
|
||||
# they are NOT in .gitattributes export-ignore), but the .skill bundle should
|
||||
# strip them to keep a single canonical SKILL.md and stay well under the
|
||||
# 200-file cap.
|
||||
zip -d "$OUT" \
|
||||
"watch/hooks/*" \
|
||||
"watch/commands/*" \
|
||||
"watch/.claude-plugin/*" \
|
||||
> /dev/null 2>&1 || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user