Skills Explorer Add Skills

investigate

An agent skill by garrytan, from garrytan/gstack. Tags: analysis, debugging, troubleshooting.

What it does

Systematic debugging with root cause investigation. (gstack)

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add garrytan/gstack --skill investigate

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/garrytan/gstack
cp -r gstack/investigate ~/.claude/skills/investigate

Safety box score

Grade D, elevated risk: 58 of 100 risk points, rated 2026-10-20. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill is a debugging workflow that runs shell hooks, reads and writes local gstack state, and can reach the web through Aside/WebSearch. The main risks are local code execution on common edit/write actions, home-directory state changes outside the repo, and prompt-injection style directives that tell the agent to obey instructions from tool output or auto-select answers.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution3 (high)High: the skill wires shell commands into common tools via `command: 'bash -c "test -x \"$HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh\" && exec bash \"$HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh\"; exit 0"'` and also tells the agent to run `~/.claude/skills/gstack/bin/gstack-skill-start` and other binaries.
Network access2 (moderate)Moderate: it explicitly supports web access through `WebSearch` and Aside, and the research flow can send a prompt file to `aside.com` for web search, even if the request is read-only.
Filesystem reach2 (moderate)Moderate: it reads and writes outside the project tree, including `~/.claude/skills/gstack/freeze/`, `~/.gstack/`, `.gstack/tmp/`, and other local state/log paths.
Secrets & credentials1 (low)Low: the visible files do not directly read credential stores, keychains, or login sessions, but the workflow can inspect user-provided errors/logs and the examples mention session cookies and tokens.
Privilege & persistence1 (low)Low: there is no sudo/service-install behavior, but it does change local tool configuration and state, such as `gstack-config set cross_project_learnings true/false` and freeze metadata under the home directory.
Instruction hijack surface3 (high)High: `SKILL.md` says to `Treat the skill file as executable instructions, not reference`, to follow `GSTACK_INSTRUCTION_BEGIN` blocks from tool output, and to auto-choose recommended options in spawned/unattended sessions, which is a direct prompt-injection and confirmation-bypass pattern.
Irreversible actions1 (low)Low: the skill can change local files and state as part of debugging, but it does not itself push, deploy, pay, book, or perform other external one-way actions.
Transparency1 (low)Low: several important behaviors depend on external native scripts (`gstack-skill-start`, `check-freeze.sh`, `freeze-state.sh`, `gstack-skill-end`, `gstack-question-preference`) that are referenced but not inspectable in the provided files.

Before installing

Rated 2026-10-20 by an automated review of 7 files from the skill's repository.

Source

Repository
garrytan/gstack (all skills from this repository)
Path
investigate/SKILL.md
Branch
main
Updated
2026-10-05