Skip to main content

investigate

Facilitates systematic debugging and root cause analysis through a structured four-phase approach for effective problem resolution.

Install this skill

or
0/100

Security score

The investigate skill was audited on Jun 3, 2026 and we found 54 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 40

Template literal with variable interpolation in command context

SourceSKILL.md
40```bash
medium line 279

Template literal with variable interpolation in command context

SourceSKILL.md
279```bash
medium line 575

Template literal with variable interpolation in command context

SourceSKILL.md
575```bash
medium line 581

Template literal with variable interpolation in command context

SourceSKILL.md
581```bash
low line 41

Access to hidden dotfiles in home directory

SourceSKILL.md
41_UPD=$(~/.claude/skills/gstack/bin/gstack-update-check 2>/dev/null || .claude/skills/gstack/bin/gstack-update-check 2>/dev/null || true)
low line 43

Access to hidden dotfiles in home directory

SourceSKILL.md
43mkdir -p ~/.gstack/sessions
low line 44

Access to hidden dotfiles in home directory

SourceSKILL.md
44touch ~/.gstack/sessions/"$PPID"
low line 45

Access to hidden dotfiles in home directory

SourceSKILL.md
45_SESSIONS=$(find ~/.gstack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
low line 46

Access to hidden dotfiles in home directory

SourceSKILL.md
46find ~/.gstack/sessions -mmin +120 -type f -exec rm {} + 2>/dev/null || true
low line 47

Access to hidden dotfiles in home directory

SourceSKILL.md
47_PROACTIVE=$(~/.claude/skills/gstack/bin/gstack-config get proactive 2>/dev/null || echo "true")
low line 48

Access to hidden dotfiles in home directory

SourceSKILL.md
48_PROACTIVE_PROMPTED=$([ -f ~/.gstack/.proactive-prompted ] && echo "yes" || echo "no")
low line 51

Access to hidden dotfiles in home directory

SourceSKILL.md
51_SKILL_PREFIX=$(~/.claude/skills/gstack/bin/gstack-config get skill_prefix 2>/dev/null || echo "false")
low line 55

Access to hidden dotfiles in home directory

SourceSKILL.md
55source <(~/.claude/skills/gstack/bin/gstack-repo-mode 2>/dev/null) || true
low line 58

Access to hidden dotfiles in home directory

SourceSKILL.md
58_LAKE_SEEN=$([ -f ~/.gstack/.completeness-intro-seen ] && echo "yes" || echo "no")
low line 60

Access to hidden dotfiles in home directory

SourceSKILL.md
60_TEL=$(~/.claude/skills/gstack/bin/gstack-config get telemetry 2>/dev/null || true)
low line 61

Access to hidden dotfiles in home directory

SourceSKILL.md
61_TEL_PROMPTED=$([ -f ~/.gstack/.telemetry-prompted ] && echo "yes" || echo "no")
low line 66

Access to hidden dotfiles in home directory

SourceSKILL.md
66mkdir -p ~/.gstack/analytics
low line 68

Access to hidden dotfiles in home directory

SourceSKILL.md
68echo '{"skill":"investigate","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
low line 71

Access to hidden dotfiles in home directory

SourceSKILL.md
71for _PF in $(find ~/.gstack/analytics -maxdepth 1 -name '.pending-*' 2>/dev/null); do
low line 73

Access to hidden dotfiles in home directory

SourceSKILL.md
73if [ "$_TEL" != "off" ] && [ -x "~/.claude/skills/gstack/bin/gstack-telemetry-log" ]; then
low line 74

Access to hidden dotfiles in home directory

SourceSKILL.md
74~/.claude/skills/gstack/bin/gstack-telemetry-log --event-type skill_run --skill _pending_finalize --outcome unknown --session-id "$_SESSION_ID" 2>/dev/null || true
low line 81

Access to hidden dotfiles in home directory

SourceSKILL.md
81eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)" 2>/dev/null || true
low line 87

Access to hidden dotfiles in home directory

SourceSKILL.md
87~/.claude/skills/gstack/bin/gstack-learnings-search --limit 3 2>/dev/null || true
low line 93

Access to hidden dotfiles in home directory

SourceSKILL.md
93~/.claude/skills/gstack/bin/gstack-timeline-log '{"skill":"investigate","event":"started","branch":"'"$_BRANCH"'","session":"'"$_SESSION_ID"'"}' 2>/dev/null &
low line 99

Access to hidden dotfiles in home directory

SourceSKILL.md
99_ROUTING_DECLINED=$(~/.claude/skills/gstack/bin/gstack-config get routing_declined 2>/dev/null || echo "false")
medium line 113

Access to hidden dotfiles in home directory

SourceSKILL.md
113`~/.claude/skills/gstack/[skill-name]/SKILL.md` for reading skill files.
medium line 115

Access to hidden dotfiles in home directory

SourceSKILL.md
115If output shows `UPGRADE_AVAILABLE <old> <new>`: read `~/.claude/skills/gstack/gstack-upgrade/SKILL.md` and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with
low line 124

Access to hidden dotfiles in home directory

SourceSKILL.md
124touch ~/.gstack/.completeness-intro-seen
medium line 141

Access to hidden dotfiles in home directory

SourceSKILL.md
141If A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry community`
medium line 152

Access to hidden dotfiles in home directory

SourceSKILL.md
152If B→A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry anonymous`
medium line 153

Access to hidden dotfiles in home directory

SourceSKILL.md
153If B→B: run `~/.claude/skills/gstack/bin/gstack-config set telemetry off`
low line 157

Access to hidden dotfiles in home directory

SourceSKILL.md
157touch ~/.gstack/.telemetry-prompted
medium line 173

Access to hidden dotfiles in home directory

SourceSKILL.md
173If A: run `~/.claude/skills/gstack/bin/gstack-config set proactive true`
medium line 174

Access to hidden dotfiles in home directory

SourceSKILL.md
174If B: run `~/.claude/skills/gstack/bin/gstack-config set proactive false`
low line 178

Access to hidden dotfiles in home directory

SourceSKILL.md
178touch ~/.gstack/.proactive-prompted
medium line 223

Access to hidden dotfiles in home directory

SourceSKILL.md
223If B: run `~/.claude/skills/gstack/bin/gstack-config set routing_declined true`
low line 280

Access to hidden dotfiles in home directory

SourceSKILL.md
280eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)"
low line 382

Access to hidden dotfiles in home directory

SourceSKILL.md
382~/.claude/skills/gstack/bin/gstack-learnings-log '{"skill":"SKILL_NAME","type":"operational","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":N,"source":"observed"}'
medium line 397

Access to hidden dotfiles in home directory

SourceSKILL.md
397`~/.gstack/analytics/` (user config directory, not project files). The skill
low line 406

Access to hidden dotfiles in home directory

SourceSKILL.md
406rm -f ~/.gstack/analytics/.pending-"$_SESSION_ID" 2>/dev/null || true
low line 408

Access to hidden dotfiles in home directory

SourceSKILL.md
408~/.claude/skills/gstack/bin/gstack-timeline-log '{"skill":"SKILL_NAME","event":"completed","branch":"'$(git branch --show-current 2>/dev/null || echo unknown)'","outcome":"OUTCOME","duration_s":"'"$_T
low line 411

Access to hidden dotfiles in home directory

SourceSKILL.md
411echo '{"skill":"SKILL_NAME","duration_s":"'"$_TEL_DUR"'","outcome":"OUTCOME","browse":"USED_BROWSE","session":"'"$_SESSION_ID"'","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'"}' >> ~/.gstack/analytics/skill-
low line 414

Access to hidden dotfiles in home directory

SourceSKILL.md
414if [ "$_TEL" != "off" ] && [ -x ~/.claude/skills/gstack/bin/gstack-telemetry-log ]; then
low line 415

Access to hidden dotfiles in home directory

SourceSKILL.md
415~/.claude/skills/gstack/bin/gstack-telemetry-log \
medium line 434

Access to hidden dotfiles in home directory

SourceSKILL.md
434- Writing to `~/.gstack/` (config, analytics, review logs, design artifacts, learnings)
medium line 475

Access to hidden dotfiles in home directory

SourceSKILL.md
475~/.claude/skills/gstack/bin/gstack-review-read
low line 534

Access to hidden dotfiles in home directory

SourceSKILL.md
534_CROSS_PROJ=$(~/.claude/skills/gstack/bin/gstack-config get cross_project_learnings 2>/dev/null || echo "unset")
low line 537

Access to hidden dotfiles in home directory

SourceSKILL.md
537~/.claude/skills/gstack/bin/gstack-learnings-search --limit 10 --cross-project 2>/dev/null || true
low line 539

Access to hidden dotfiles in home directory

SourceSKILL.md
539~/.claude/skills/gstack/bin/gstack-learnings-search --limit 10 2>/dev/null || true
medium line 554

Access to hidden dotfiles in home directory

SourceSKILL.md
554If A: run `~/.claude/skills/gstack/bin/gstack-config set cross_project_learnings true`
medium line 555

Access to hidden dotfiles in home directory

SourceSKILL.md
555If B: run `~/.claude/skills/gstack/bin/gstack-config set cross_project_learnings false`
low line 696

Access to hidden dotfiles in home directory

SourceSKILL.md
696~/.claude/skills/gstack/bin/gstack-learnings-log '{"skill":"investigate","type":"TYPE","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":N,"source":"SOURCE","files":["path/to/relevant/file"]}'
low line 119

External URL reference

SourceSKILL.md
119thing when AI makes the marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean"
low line 123

External URL reference

SourceSKILL.md
123open https://garryslist.org/posts/boil-the-ocean
Scanned on Jun 3, 2026
View Security Dashboard
Installation guide →