Skip to main content

learn

Manages project learnings by reviewing, searching, pruning, and exporting insights from past sessions for better decision-making.

Install this skill

or
0/100

Security score

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

Categories Tested

Security Issues

medium line 29

Template literal with variable interpolation in command context

SourceSKILL.md
29```bash
medium line 262

Template literal with variable interpolation in command context

SourceSKILL.md
262```bash
medium line 358

Template literal with variable interpolation in command context

SourceSKILL.md
358```bash
medium line 392

Template literal with variable interpolation in command context

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

Template literal with variable interpolation in command context

SourceSKILL.md
520```bash
low line 30

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
32mkdir -p ~/.gstack/sessions
low line 33

Access to hidden dotfiles in home directory

SourceSKILL.md
33touch ~/.gstack/sessions/"$PPID"
low line 34

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
60mkdir -p ~/.gstack/analytics
low line 62

Access to hidden dotfiles in home directory

SourceSKILL.md
62echo '{"skill":"learn","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
low line 64

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
67~/.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 73

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
109In 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 117

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
119If 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 124

Access to hidden dotfiles in home directory

SourceSKILL.md
124- 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 125

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
142rm -f ~/.gstack/.writing-style-prompt-pending
low line 143

Access to hidden dotfiles in home directory

SourceSKILL.md
143touch ~/.gstack/.writing-style-prompted
low line 152

Access to hidden dotfiles in home directory

SourceSKILL.md
152touch ~/.gstack/.completeness-intro-seen
medium line 165

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
180touch ~/.gstack/.telemetry-prompted
medium line 193

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
198touch ~/.gstack/.proactive-prompted
medium line 239

Access to hidden dotfiles in home directory

SourceSKILL.md
239If 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 243

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
676Before 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 680

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
719`~/.gstack/analytics/`, matching preamble analytics writes.
low line 726

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
728~/.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 731

Access to hidden dotfiles in home directory

SourceSKILL.md
731echo '{"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 734

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
735~/.claude/skills/gstack/bin/gstack-telemetry-log \
medium line 745

Access to hidden dotfiles in home directory

SourceSKILL.md
745In 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 777

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
778~/.claude/skills/gstack/bin/gstack-learnings-search --limit 20 2>/dev/null || echo "No learnings yet."
low line 790

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
791~/.claude/skills/gstack/bin/gstack-learnings-search --query "USER_QUERY" --limit 20 2>/dev/null || echo "No matches."
low line 803

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
804~/.claude/skills/gstack/bin/gstack-learnings-search --limit 100 2>/dev/null
low line 833

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
834~/.claude/skills/gstack/bin/gstack-learnings-search --limit 50 2>/dev/null
low line 865

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

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

Access to hidden dotfiles in home directory

SourceSKILL.md
918~/.claude/skills/gstack/bin/gstack-learnings-log '{"skill":"learn","type":"TYPE","key":"KEY","insight":"INSIGHT","confidence":N,"source":"user-stated","files":["FILE1"]}'
low line 329

Unicode escape sequences

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

External URL reference

SourceSKILL.md
148If `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 151

External URL reference

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