eai-gofer typescript.instructions.md

TypeScript development rules for the Gofer project, including its file structure, coding style, error handling, documentation, and tests. TypeScript is a programming language that adds checked types to JavaScript.

In plain words
What is it for?
Use them when writing or reviewing Gofer TypeScript, organizing files, documenting public code, handling asynchronous work, or adding tests before implementation.
Why use it?
They reduce common mistakes and keep code consistent with the project's strict settings and supported tools.

Instructions file for GitHub Copilot

Install

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.

agentmods
npx agentmods add instructions/eai-support/eai-gofer/typescript
Clone the repo
git clone --depth 1 https://github.com/eai-support/eai-gofer

Made for: GitHub Copilot.

Per session 322 This file is loaded in full into every session.
When invoked 322 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00322 $0.00322
Opus 5 $0.00161 $0.00161
Sonnet 5 $0.00064 $0.00064
Haiku 4.5 $0.00032 $0.00032

Measured 2d ago against content hash 3fef96d17625, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

eai-gofer typescript.instructions.md 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 2d 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.

.github/instructions/typescript.instructions.md · 48 lines

What it actually says

TypeScript Development Instructions

You are working on Gofer, a TypeScript project using:

  • TypeScript 5.9.3 with strict mode
  • Node.js 24+ (ES2022 modules)
  • VSCode Extension API
  • vscode-languageserver 9.0.1

Code Quality Standards

  1. Type Safety

    • Never use any type - use unknown and narrow with type guards
    • Always provide explicit return types for functions
    • Use interface over type for object shapes when possible
    • Prefer union types over enums for string literals
  2. Imports

    • Use ES6 imports (not require())
    • Use .js extension in imports for ESM compatibility
    • Group imports: external → project → relative
  3. Async/Await

    • Always use async/await over raw Promises
    • Handle errors with try/catch, not .catch()
    • Use Promise.all() for parallel operations
  4. Documentation

    • Add JSDoc comments for public APIs
    • Document parameters and return types
    • Include @throws for functions that can throw

File Structure

  • Keep files under 300 lines
  • One class/component per file
  • Export from index files for modules

Testing

  • Write tests before implementation (TDD)
  • Minimum 80% code coverage
  • Use descriptive test names: should [action] when [condition]
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. 2d ago First seen · 48 lines · 322 tokens per session scan A 3fef96d17625

Subscribe to this mod's changes

eai-gofer typescript.instructions.md is an instructions file published in the GitHub repository eai-support/eai-gofer (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 322 tokens to every session, about $0.0016 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-31.