Skip to main content

investigate

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

Install this skill

or
0/100

Security score

The investigate skill was audited on May 12, 2026 and we found 84 security issues across 4 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 68

Template literal with variable interpolation in command context

SourceSKILL.md
68```bash
medium line 301

Template literal with variable interpolation in command context

SourceSKILL.md
301```bash
medium line 397

Template literal with variable interpolation in command context

SourceSKILL.md
397```bash
medium line 431

Template literal with variable interpolation in command context

SourceSKILL.md
431echo "before relying on \`gbrain search\` for code questions in this worktree."
medium line 559

Template literal with variable interpolation in command context

SourceSKILL.md
559```bash
medium line 878

Template literal with variable interpolation in command context

SourceSKILL.md
878```bash
medium line 54

Access to hidden dotfiles in home directory

SourceSKILL.md
54glob: "~/.gstack/projects/{repo_slug}/learnings.jsonl"
medium line 59

Access to hidden dotfiles in home directory

SourceSKILL.md
59glob: "~/.gstack/analytics/eureka.jsonl"
low line 69

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
71mkdir -p ~/.gstack/sessions
low line 72

Access to hidden dotfiles in home directory

SourceSKILL.md
72touch ~/.gstack/sessions/"$PPID"
low line 73

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
94_EXPLAIN_LEVEL=$(~/.claude/skills/gstack/bin/gstack-config get explain_level 2>/dev/null || echo "default")
low line 97

Access to hidden dotfiles in home directory

SourceSKILL.md
97_QUESTION_TUNING=$(~/.claude/skills/gstack/bin/gstack-config get question_tuning 2>/dev/null || echo "false")
low line 99

Access to hidden dotfiles in home directory

SourceSKILL.md
99mkdir -p ~/.gstack/analytics
low line 101

Access to hidden dotfiles in home directory

SourceSKILL.md
101echo '{"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 103

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
106~/.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 112

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
139_CHECKPOINT_MODE=$(~/.claude/skills/gstack/bin/gstack-config get checkpoint_mode 2>/dev/null || echo "explicit")
low line 140

Access to hidden dotfiles in home directory

SourceSKILL.md
140_CHECKPOINT_PUSH=$(~/.claude/skills/gstack/bin/gstack-config get checkpoint_push 2>/dev/null || echo "false")
medium line 148

Access to hidden dotfiles in home directory

SourceSKILL.md
148In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`codex review`, writes to `~/.gstack/`, writes to the plan file, and `open` for generated artifacts.
medium line 156

Access to hidden dotfiles in home directory

SourceSKILL.md
156If `SKILL_PREFIX` is `"true"`, suggest/invoke `/gstack-*` names. Disk paths stay `~/.claude/skills/gstack/[skill-name]/SKILL.md`.
medium line 158

Access to hidden dotfiles in home directory

SourceSKILL.md
158If 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
medium line 163

Access to hidden dotfiles in home directory

SourceSKILL.md
163- Missing `~/.claude/skills/gstack/.feature-prompted-continuous-checkpoint`: AskUserQuestion for Continuous checkpoint auto-commits. If accepted, run `~/.claude/skills/gstack/bin/gstack-config set che
medium line 164

Access to hidden dotfiles in home directory

SourceSKILL.md
164- Missing `~/.claude/skills/gstack/.feature-prompted-model-overlay`: inform "Model overlays are active. MODEL_OVERLAY shows the patch." Always touch marker.
medium line 177

Access to hidden dotfiles in home directory

SourceSKILL.md
177If B: run `~/.claude/skills/gstack/bin/gstack-config set explain_level terse`.
low line 181

Access to hidden dotfiles in home directory

SourceSKILL.md
181rm -f ~/.gstack/.writing-style-prompt-pending
low line 182

Access to hidden dotfiles in home directory

SourceSKILL.md
182touch ~/.gstack/.writing-style-prompted
low line 191

Access to hidden dotfiles in home directory

SourceSKILL.md
191touch ~/.gstack/.completeness-intro-seen
medium line 204

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
219touch ~/.gstack/.telemetry-prompted
medium line 232

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
237touch ~/.gstack/.proactive-prompted
medium line 278

Access to hidden dotfiles in home directory

SourceSKILL.md
278If B: run `~/.claude/skills/gstack/bin/gstack-config set routing_declined true` and say they can re-enable with `gstack-config set routing_declined false`.
medium line 282

Access to hidden dotfiles in home directory

SourceSKILL.md
282If `VENDORED_GSTACK` is `yes`, warn once via AskUserQuestion unless `~/.gstack/.vendoring-warned-$SLUG` exists:
medium line 294

Access to hidden dotfiles in home directory

SourceSKILL.md
2943. Run `~/.claude/skills/gstack/bin/gstack-team-init required` (or `optional`)
medium line 296

Access to hidden dotfiles in home directory

SourceSKILL.md
2965. Tell the user: "Done. Each developer now runs: `cd ~/.claude/skills/gstack && ./setup --team`"
low line 302

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
303touch ~/.gstack/.vendoring-warned-${SLUG:-unknown}
low line 406

Access to hidden dotfiles in home directory

SourceSKILL.md
406_BRAIN_SYNC_BIN="~/.claude/skills/gstack/bin/gstack-brain-sync"
low line 407

Access to hidden dotfiles in home directory

SourceSKILL.md
407_BRAIN_CONFIG_BIN="~/.claude/skills/gstack/bin/gstack-config"
medium line 511

Access to hidden dotfiles in home directory

SourceSKILL.md
511If A/B and `~/.gstack/.git` is missing, ask whether to run `gstack-artifacts-init`. Do not block the skill.
low line 516

Access to hidden dotfiles in home directory

SourceSKILL.md
516"~/.claude/skills/gstack/bin/gstack-brain-sync" --discover-new 2>/dev/null || true
low line 517

Access to hidden dotfiles in home directory

SourceSKILL.md
517"~/.claude/skills/gstack/bin/gstack-brain-sync" --once 2>/dev/null || true
low line 560

Access to hidden dotfiles in home directory

SourceSKILL.md
560eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)"
medium line 715

Access to hidden dotfiles in home directory

SourceSKILL.md
715Before each AskUserQuestion, choose `question_id` from `scripts/question-registry.ts` or `{skill}-{slug}`, then run `~/.claude/skills/gstack/bin/gstack-question-preference --check "<id>"`. `AUTO_DECID
low line 719

Access to hidden dotfiles in home directory

SourceSKILL.md
719~/.claude/skills/gstack/bin/gstack-question-log '{"skill":"investigate","question_id":"<id>","question_summary":"<short>","category":"<approval|clarification|routing|cherry-pick|feedback-loop>","door_
low line 728

Access to hidden dotfiles in home directory

SourceSKILL.md
728~/.claude/skills/gstack/bin/gstack-question-preference --write '{"question_id":"<id>","preference":"<pref>","source":"inline-user","free_text":"<optional original words>"}'
low line 748

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
758`~/.gstack/analytics/`, matching preamble analytics writes.
low line 765

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
767~/.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 770

Access to hidden dotfiles in home directory

SourceSKILL.md
770echo '{"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 773

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
774~/.claude/skills/gstack/bin/gstack-telemetry-log \
medium line 784

Access to hidden dotfiles in home directory

SourceSKILL.md
784In plan mode before ExitPlanMode: if the plan file lacks `## GSTACK REVIEW REPORT`, run `~/.claude/skills/gstack/bin/gstack-review-read` and append the standard runs/status/findings table. With `NO_RE
low line 823

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
826~/.claude/skills/gstack/bin/gstack-learnings-search --limit 10 --query "debug investigation root cause hypothesis bug fix" --cross-project 2>/dev/null || true
low line 828

Access to hidden dotfiles in home directory

SourceSKILL.md
828~/.claude/skills/gstack/bin/gstack-learnings-search --limit 10 --query "debug investigation root cause hypothesis bug fix" 2>/dev/null || true
medium line 843

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
867~/.claude/skills/gstack/bin/gstack-learnings-search --query "<your-keyword>" --limit 5 2>/dev/null || true
low line 885

Access to hidden dotfiles in home directory

SourceSKILL.md
885eval "$(~/.claude/skills/gstack/bin/gstack-paths)"
low line 997

Access to hidden dotfiles in home directory

SourceSKILL.md
997~/.claude/skills/gstack/bin/gstack-learnings-log '{"skill":"investigate","type":"investigation","key":"ROOT_CAUSE_KEY","insight":"ROOT_CAUSE_SUMMARY","confidence":9,"source":"observed","files":["affec
low line 1006

Access to hidden dotfiles in home directory

SourceSKILL.md
1006~/.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 368

Unicode escape sequences

SourceSKILL.md
368writes `\u3103` thinking it is 管 U+7BA1, but `\u3103` is
low line 187

External URL reference

SourceSKILL.md
187If `LAKE_INTRO` is `no`: say "gstack follows the **Boil the Lake** principle — do the complete thing when AI makes marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean" Offe
low line 190

External URL reference

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