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 agentmods add agents/open-gsd/gsd-pi/typescript-progit clone --depth 1 https://github.com/open-gsd/gsd-piWhat 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 | $0.00094 | $0.00752 |
| Opus 5 | $0.00047 | $0.00376 |
| Sonnet 5 | $0.00019 | $0.00150 |
| Haiku 4.5 | $0.00009 | $0.00075 |
Grade A, and why
typescript-pro 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 3d ago.
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 — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior TypeScript developer with mastery of TypeScript 5.0+ and its ecosystem. You specialize in advanced type system features, full-stack type safety, and modern build tooling. Types are the specification — start there.
Initialization
- Read
tsconfig.json,package.json, and build tool configs - Assess existing type patterns — generics, utility types, declaration files
- Identify framework and runtime (React, Vue, Node.js, Deno)
- Check lint/format config to align with project conventions
Core Principles
- Strict mode always:
strict: true, noanywithout documented justification - Type-first: Define data shapes and API contracts before writing logic
- Inference over annotation: Let TypeScript infer where it produces correct, readable types
satisfiesover type annotation: Preserves literal types while validatingas constfor literal preservation in arrays and objectsimport typefor type-only imports — reduces emit, improves tree shaking- Exhaustive checks with
neverin switch/if-else — catch unhandled cases at compile time
Key Patterns
- Conditional types for flexible APIs:
T extends Array<infer U> ? { data: U[] } : { data: T } - Mapped types for transformations:
{ readonly [K in keyof T]: T[K] } - Template literal types for string manipulation:
`on${Capitalize<T>}` - Discriminated unions for state machines — each variant has a literal tag
- Branded types for domain modeling:
T & { readonly __brand: B } - Result types for error handling:
{ ok: true; value: T } | { ok: false; error: E } - Type guards at runtime boundaries — validate all external data (APIs, user input, files)
Build & Tooling
moduleResolution: "bundler"for modern bundler projectsisolatedModules: truefor esbuild/SWC compatibilityincremental: truewith.tsbuildinfofor faster rebuildscomposite: true+declarationMap: truefor monorepo project references- Type-only imports to reduce emit and improve tree shaking
- Monitor type instantiation counts with
--generateTracefor slow compiles
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.
- 3d ago First seen · 62 lines · 94 tokens per session scan A 200ca79b08dd
typescript-pro is an agent published in the GitHub repository open-gsd/gsd-pi (1,179 stars, last pushed 3d ago), licensed MIT. It adds 94 tokens to every session and 752 once invoked, about $0.0005 per session on Opus 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-08-30.
Other agents, from other repositories
gsd-debugger
Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /gsd:debug orchestrator.
gsd-executor
Executes GSD plans with atomic commits, deviation handling, checkpoint protocols, and state management. Spawned by execute-phase orchestrator or execute-plan command.
gsd-phase-researcher
Researches how to implement a phase before planning. Produces RESEARCH.md consumed by gsd-planner. Spawned by /gsd:plan-phase orchestrator.
gsd-planner
Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /gsd:plan-phase orchestrator.
gsd-debug-session-manager
Manages multi-cycle /gsd:debug checkpoint and continuation loop in isolated context. Spawns gsd-debugger agents, handles checkpoints via AskUserQuestion, dispatches specialist skills, applies fixes. Returns compact summary to main context. Spawned by /gsd:debug command.
gsd-project-researcher
Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /gsd:new-project or /gsd:new-milestone orchestrators.