gstack is a set of opinionated tools that gives a coding agent workflows associated with roles such as product leadership, design, engineering management, release management, documentation, and quality assurance. It is for developers who want one coding agent to support more parts of the software delivery process.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add garrytan/gstack --skill gstack-investigategit clone --depth 1 https://github.com/garrytan/gstackWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/garrytan/gstack/gstack-investigate)<a href="https://agentmods.dev/skills/garrytan/gstack/gstack-investigate"><img src="https://agentmods.dev/badge/skills/garrytan/gstack/gstack-investigate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/garrytan/gstack/gstack-investigate"><img src="https://agentmods.dev/badge/skills/garrytan/gstack/gstack-investigate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01164 |
| Opus 5.5 | $0.00016 | $0.00466 |
| Sonnet 5.5 | $0.00008 | $0.00233 |
| Haiku 4.5 | $0.00004 | $0.00116 |
Grade A, and why
gstack-investigate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Investigate: root cause before any fix
Start here, before reading code. In the repository (cd into it first: the shell starts in the workspace root), run with execute, adding the failing file or directory if you know it:
git status --short
git log --oneline -20 -- <path>
Then reproduce the symptom with the project's own test or run command, and write down what you saw, before you form a hypothesis.
Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.
Fixing symptoms creates whack-a-mole debugging. Every fix that doesn't address root cause makes the next bug harder to find. Find the root cause, then fix it.
How to work
Find the root cause, fix it with the smallest change, prove the fix, and finish with the DEBUG REPORT below. The order, tools and depth are yours. Three lessons that cost real time before:
- Before calling two queries, helpers or code paths duplicates, read their call sites: what looks identical usually differs in a caller's guard, transaction or scope, and the "duplicate" is the one that is right.
- Before timing anything that spawns git in a benchmark or bisect worktree, run
git update-index --refreshthere: a stale index makes the firstgit status/git diffpay a full refresh and the measurement lies. - Two fixes that shared one premise failed the same gate — write the premise down in one sentence and test it before a third fix. The evidence already points away from it.
Three guards:
- 3-strike rule: if 3 hypotheses fail, STOP and ask the user: A) continue with a new hypothesis (describe it), B) escalate for human review, C) add logging and wait.
- Blast radius: if the fix touches more than 5 files, ask the user: A) proceed, the root cause spans these files, B) split, fixing the critical path now, C) rethink for a more targeted approach.
- Web searches: search the generic error class, library and version, never the raw error text, hostnames, IPs, file paths, SQL, customer data or secrets.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 94 lines · 40 tokens per session scan A 5eb9030fe895
gstack-investigate is a skill published in the GitHub repository garrytan/gstack (139,952 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,164 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.
gstack-investigate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gstack-investigategarrytan/gstack | Skill | 140k | yesterday | MIT | A | 40 | Claude Code, Codex |
| testinggarrytan/gbrain | Skill | 32k | yesterday | MIT | A | 63 | Claude Code |
| verifyYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 12 | Claude Code |
| detect-static-dependenciesdotnet/skills | Skill | 5.8k | yesterday | MIT | A | 135 | Claude Code |
| testing-blocksadobe/skills | Skill | 319 | yesterday | Apache-2.0 | A | 61 | Claude Code |
| dart-downstream-fixdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 25 | Claude Code |
| experiment-iterative-coderEvoScientist/EvoSkills | Skill | 486 | 10d ago | Apache-2.0 | A | 145 | Claude Code |