Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"gstack","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down
27 changes: 27 additions & 0 deletions autoplan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"autoplan","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down Expand Up @@ -109,6 +118,24 @@ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.

## AskUserQuestion Format

**REMOTE CONTROL DETECTION:** Check if remote control is active by looking at BOTH:
1. The `REMOTE_CONTROL` value from the preamble output above
2. The conversation history — if you can see `Remote Control connecting…` WITHOUT a
subsequent `Remote Control disconnected.`, remote control is currently active

If EITHER indicates remote control is active, do NOT use the AskUserQuestion tool.
Instead:
- Present the question and options as plain text in your response
- Format options as a numbered list (1, 2, 3...) so the user can reply with a number
- Include your recommendation inline: "I'd recommend option X because..."
- Wait for the user to reply with their choice before proceeding
- For yes/no questions, just ask directly in plain text

This applies to ALL AskUserQuestion calls throughout the entire skill workflow,
including telemetry prompts, lake intro, upgrade checks, and skill-specific questions.

**When remote control is NOT active (normal terminal mode), use AskUserQuestion as usual:**

**ALWAYS follow this structure for every AskUserQuestion call:**
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
Expand Down
9 changes: 9 additions & 0 deletions benchmark/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"benchmark","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down
9 changes: 9 additions & 0 deletions browse/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"browse","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down
27 changes: 27 additions & 0 deletions canary/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"canary","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down Expand Up @@ -102,6 +111,24 @@ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.

## AskUserQuestion Format

**REMOTE CONTROL DETECTION:** Check if remote control is active by looking at BOTH:
1. The `REMOTE_CONTROL` value from the preamble output above
2. The conversation history — if you can see `Remote Control connecting…` WITHOUT a
subsequent `Remote Control disconnected.`, remote control is currently active

If EITHER indicates remote control is active, do NOT use the AskUserQuestion tool.
Instead:
- Present the question and options as plain text in your response
- Format options as a numbered list (1, 2, 3...) so the user can reply with a number
- Include your recommendation inline: "I'd recommend option X because..."
- Wait for the user to reply with their choice before proceeding
- For yes/no questions, just ask directly in plain text

This applies to ALL AskUserQuestion calls throughout the entire skill workflow,
including telemetry prompts, lake intro, upgrade checks, and skill-specific questions.

**When remote control is NOT active (normal terminal mode), use AskUserQuestion as usual:**

**ALWAYS follow this structure for every AskUserQuestion call:**
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
Expand Down
27 changes: 27 additions & 0 deletions codex/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"codex","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down Expand Up @@ -103,6 +112,24 @@ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.

## AskUserQuestion Format

**REMOTE CONTROL DETECTION:** Check if remote control is active by looking at BOTH:
1. The `REMOTE_CONTROL` value from the preamble output above
2. The conversation history — if you can see `Remote Control connecting…` WITHOUT a
subsequent `Remote Control disconnected.`, remote control is currently active

If EITHER indicates remote control is active, do NOT use the AskUserQuestion tool.
Instead:
- Present the question and options as plain text in your response
- Format options as a numbered list (1, 2, 3...) so the user can reply with a number
- Include your recommendation inline: "I'd recommend option X because..."
- Wait for the user to reply with their choice before proceeding
- For yes/no questions, just ask directly in plain text

This applies to ALL AskUserQuestion calls throughout the entire skill workflow,
including telemetry prompts, lake intro, upgrade checks, and skill-specific questions.

**When remote control is NOT active (normal terminal mode), use AskUserQuestion as usual:**

**ALWAYS follow this structure for every AskUserQuestion call:**
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
Expand Down
27 changes: 27 additions & 0 deletions cso/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"cso","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down Expand Up @@ -106,6 +115,24 @@ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.

## AskUserQuestion Format

**REMOTE CONTROL DETECTION:** Check if remote control is active by looking at BOTH:
1. The `REMOTE_CONTROL` value from the preamble output above
2. The conversation history — if you can see `Remote Control connecting…` WITHOUT a
subsequent `Remote Control disconnected.`, remote control is currently active

If EITHER indicates remote control is active, do NOT use the AskUserQuestion tool.
Instead:
- Present the question and options as plain text in your response
- Format options as a numbered list (1, 2, 3...) so the user can reply with a number
- Include your recommendation inline: "I'd recommend option X because..."
- Wait for the user to reply with their choice before proceeding
- For yes/no questions, just ask directly in plain text

This applies to ALL AskUserQuestion calls throughout the entire skill workflow,
including telemetry prompts, lake intro, upgrade checks, and skill-specific questions.

**When remote control is NOT active (normal terminal mode), use AskUserQuestion as usual:**

**ALWAYS follow this structure for every AskUserQuestion call:**
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
Expand Down
27 changes: 27 additions & 0 deletions design-consultation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"design-consultation","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down Expand Up @@ -107,6 +116,24 @@ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.

## AskUserQuestion Format

**REMOTE CONTROL DETECTION:** Check if remote control is active by looking at BOTH:
1. The `REMOTE_CONTROL` value from the preamble output above
2. The conversation history — if you can see `Remote Control connecting…` WITHOUT a
subsequent `Remote Control disconnected.`, remote control is currently active

If EITHER indicates remote control is active, do NOT use the AskUserQuestion tool.
Instead:
- Present the question and options as plain text in your response
- Format options as a numbered list (1, 2, 3...) so the user can reply with a number
- Include your recommendation inline: "I'd recommend option X because..."
- Wait for the user to reply with their choice before proceeding
- For yes/no questions, just ask directly in plain text

This applies to ALL AskUserQuestion calls throughout the entire skill workflow,
including telemetry prompts, lake intro, upgrade checks, and skill-specific questions.

**When remote control is NOT active (normal terminal mode), use AskUserQuestion as usual:**

**ALWAYS follow this structure for every AskUserQuestion call:**
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
Expand Down
27 changes: 27 additions & 0 deletions design-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ _TEL_START=$(date +%s)
_SESSION_ID="$$-$(date +%s)"
echo "TELEMETRY: ${_TEL:-off}"
echo "TEL_PROMPTED: $_TEL_PROMPTED"
# Detect remote control mode (Anthropic app remote control)
# TTY detection is unreliable (Claude Code's Bash tool never has a real TTY).
# Use explicit env var or check if gstack-config has it enabled.
_REMOTE_CONTROL="${GSTACK_REMOTE_CONTROL:-}"
if [ -z "$_REMOTE_CONTROL" ]; then
_REMOTE_CONTROL=$(~/.claude/skills/gstack/bin/gstack-config get remote_control 2>/dev/null || echo "")
fi
[ -z "$_REMOTE_CONTROL" ] && _REMOTE_CONTROL=0
echo "REMOTE_CONTROL: $_REMOTE_CONTROL"
mkdir -p ~/.gstack/analytics
echo '{"skill":"design-review","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
# zsh-compatible: use find instead of glob to avoid NOMATCH error
Expand Down Expand Up @@ -107,6 +116,24 @@ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.

## AskUserQuestion Format

**REMOTE CONTROL DETECTION:** Check if remote control is active by looking at BOTH:
1. The `REMOTE_CONTROL` value from the preamble output above
2. The conversation history — if you can see `Remote Control connecting…` WITHOUT a
subsequent `Remote Control disconnected.`, remote control is currently active

If EITHER indicates remote control is active, do NOT use the AskUserQuestion tool.
Instead:
- Present the question and options as plain text in your response
- Format options as a numbered list (1, 2, 3...) so the user can reply with a number
- Include your recommendation inline: "I'd recommend option X because..."
- Wait for the user to reply with their choice before proceeding
- For yes/no questions, just ask directly in plain text

This applies to ALL AskUserQuestion calls throughout the entire skill workflow,
including telemetry prompts, lake intro, upgrade checks, and skill-specific questions.

**When remote control is NOT active (normal terminal mode), use AskUserQuestion as usual:**

**ALWAYS follow this structure for every AskUserQuestion call:**
1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
Expand Down
Loading