mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-20 03:12:28 +08:00
chore: regenerate open-gstack-browser/SKILL.md from template
Fix timeline skill name (connect-chrome → open-gstack-browser) and preamble formatting from merge with main's updated template.
This commit is contained in:
@@ -45,8 +45,8 @@ _SESSION_ID="$$-$(date +%s)"
|
|||||||
echo "TELEMETRY: ${_TEL:-off}"
|
echo "TELEMETRY: ${_TEL:-off}"
|
||||||
echo "TEL_PROMPTED: $_TEL_PROMPTED"
|
echo "TEL_PROMPTED: $_TEL_PROMPTED"
|
||||||
mkdir -p ~/.gstack/analytics
|
mkdir -p ~/.gstack/analytics
|
||||||
if [ "${_TEL:-off}" != "off" ]; then
|
if [ "$_TEL" != "off" ]; then
|
||||||
echo '{"skill":"open-gstack-browser","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
|
echo '{"skill":"open-gstack-browser","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
# zsh-compatible: use find instead of glob to avoid NOMATCH error
|
# zsh-compatible: use find instead of glob to avoid NOMATCH error
|
||||||
for _PF in $(find ~/.gstack/analytics -maxdepth 1 -name '.pending-*' 2>/dev/null); do
|
for _PF in $(find ~/.gstack/analytics -maxdepth 1 -name '.pending-*' 2>/dev/null); do
|
||||||
@@ -71,7 +71,7 @@ else
|
|||||||
echo "LEARNINGS: 0"
|
echo "LEARNINGS: 0"
|
||||||
fi
|
fi
|
||||||
# Session timeline: record skill start (local-only, never sent anywhere)
|
# Session timeline: record skill start (local-only, never sent anywhere)
|
||||||
~/.claude/skills/gstack/bin/gstack-timeline-log '{"skill":"connect-chrome","event":"started","branch":"'"$_BRANCH"'","session":"'"$_SESSION_ID"'"}' 2>/dev/null &
|
~/.claude/skills/gstack/bin/gstack-timeline-log '{"skill":"open-gstack-browser","event":"started","branch":"'"$_BRANCH"'","session":"'"$_SESSION_ID"'"}' 2>/dev/null &
|
||||||
# Check if CLAUDE.md has routing rules
|
# Check if CLAUDE.md has routing rules
|
||||||
_HAS_ROUTING="no"
|
_HAS_ROUTING="no"
|
||||||
if [ -f CLAUDE.md ] && grep -q "## Skill routing" CLAUDE.md 2>/dev/null; then
|
if [ -f CLAUDE.md ] && grep -q "## Skill routing" CLAUDE.md 2>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user