gstack: Instructions file for Claude Code

CLAUDE.md

gstack CLAUDE.md is an instructions file for Claude Code, Codex from garrytan/gstack. It costs 8,835 tokens per session, scanned B, original, MIT.

A project guide for developing gstack skills, including its commands, tests, files, and validation workflow. It is written for Claude Code, an AI coding tool.

In plain words
What is it for?
Use it when developing gstack, running its free or paid tests, building the project, regenerating skill documentation, or checking skill health.
Why use it?
It gives contributors concrete instructions for changing gstack and checking that those changes work.

Instructions file for Claude CodeCodex

Written for Codex and Claude Code: reads $CODEX_HOME, but also the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

This is garrytan/gstack's own configuration. It tells Claude Code and Codex how to work on gstack itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gstack configures →

About the project

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.

garrytan/gstack · 139,952 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to garrytan/gstack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/garrytan/gstack/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/garrytan/gstack

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for gstack CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/garrytan/gstack/claude-md/github.svg)](https://agentmods.dev/instructions/garrytan/gstack/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/garrytan/gstack/claude-md"><img src="https://agentmods.dev/badge/instructions/garrytan/gstack/claude-md/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.

agentmods 80×15 button for gstack CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/garrytan/gstack/claude-md"><img src="https://agentmods.dev/badge/instructions/garrytan/gstack/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,835 This file is loaded in full into every session.
When invoked 8,835 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.08835 $0.08835
Opus 5.5 $0.03534 $0.03534
Sonnet 5.5 $0.01767 $0.01767
Haiku 4.5 $0.00884 $0.00884

Measured yesterday against content hash bdc685673549, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

gstack CLAUDE.md scanned grade B with 1 finding 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

**Check once per session:** Run `ls -la .claude/skills/gstack` to see if it's a
CLAUDE.md · 629 lines

How it starts

The opening of the file, as written. The whole thing — 629 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gstack development

Commands

bun install          # install dependencies
bun run dev <cmd>    # run CLI in dev mode, e.g. bun run dev goto https://example.com
bun run typecheck    # strict tsc over product code (zero errors required)
bun run typecheck:test  # test-code type-debt ratchet
bun run build        # gen docs + compile binaries
bun run gen:skill-docs  # regenerate SKILL.md files from templates
bun run skill:check  # health dashboard for all skills
bun run dev:skill    # watch mode: auto-regen + validate on change
bun run slop          # full slop-scan report (all files)
bun run slop:diff     # slop findings in files changed on this branch only
bun run audit:manifest  # file slices for /claude-api prompt-audit; rerun it at each frontier-model release (CONTRIBUTING.md)

Test and eval commands, their cost and what each needs live in one table: Which command do I run?. The two you need most are bun run test (free acceptance) and bun run eval:bg:pr (paid, changed coverage). Retired names such as test:evals and test:e2e print their replacement and exit 1.

Paid evals require ANTHROPIC_API_KEY. Codex E2E tests (test/codex-e2e.test.ts, test/codex-e2e-sol-scope.test.ts) use Codex's own auth — the hermetic runner copies only auth.json from ${CODEX_HOME:-~/.codex} and pins CODEX_HOME in the child env — no OPENAI_API_KEY env var needed.

Hermetic E2E + env keys: every E2E runner spawns children through test/helpers/hermetic-env.ts (allowlist-scrubbed env, fresh seeded CLAUDE_CONFIG_DIR, temp GSTACK_HOME, --strict-mcp-config); per-test env: overrides merge last onto a COMPLETE hermetic env, so they're safe. A PTY test that types a /skill command must pass seedSkills: true. Debug against real operator state with EVALS_HERMETIC=0. Full detail (env-shim, seeding tripwires, wiring tests): docs/TESTING_INTERNALS.md.

Test selection and tiers: the sharded paid runner (test:pr, eval:bg:pr, test:gate:sharded) selects tests from git diff through the dependency lists in test/helpers/touchfiles.ts (EVALS_ALL=1 forces everything; eval:select previews the PR profile, --profile full the plain touchfile selection). Classify every new E2E test in E2E_TIERS: safety guardrail or deterministic functional test -> gate; quality benchmark, Opus model test, non-deterministic, or external service (Codex, Gemini) -> periodic. test/e2e-tier-alignment.test.ts enforces the tiers. CI lanes and periodic exclusions: docs/TESTING_INTERNALS.md.

Read the full file on GitHub · 629 lines

Changes

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.

  1. yesterday Changed · +1 lines · +36 tokens per session bdc685673549
  2. 3d ago Changed · +4 lines · +83 tokens per session 8aca62175af9
  3. 4d ago Changed · +4 tokens per session 11e29a19ae89
  4. 5d ago Changed faf4d71e804a
  5. 8d ago Changed dd5e33d4672f
  6. 9d ago Changed · +2 lines · +55 tokens per session e246715c0cad
  7. 10d ago Changed 766f9421b0d2
  8. 11d ago Changed · +22 tokens per session 3eb1c3717409
  9. 26d ago Changed 8069f73a14fa
  10. 29d ago First seen · 622 lines · 8,635 tokens per session scan B 1d038c495a88

Subscribe to this mod's changes

gstack CLAUDE.md is an instructions file published in the GitHub repository garrytan/gstack (139,952 stars, last pushed today), licensed MIT. It adds 8,835 tokens to every session, about $0.0353 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

gstack CLAUDE.md compared with instructions from other repositories

gstack CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gstack CLAUDE.mdgarrytan/gstackInstructions file140ktodayMITB8,835Claude Code, Codex
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode