codingbuddy typescript.instructions.md

A set of instructions for reviewing TypeScript code, focusing on type safety, code patterns, and imports. TypeScript is JavaScript with features that describe and check the kinds of values code uses.

In plain words
What is it for?
It is for reviewing TypeScript code and applying rules such as strict null checking, specific types, immutable values, type guards, and organized imports.
Why use it?
It helps catch unsafe types, circular imports, unnecessary type assertions, and inconsistent export or import choices during review.

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/jeremydev87/codingbuddy/typescript
Clone the repo
git clone --depth 1 https://github.com/JeremyDev87/codingbuddy

Made for: GitHub Copilot.

Per session 146 This file is loaded in full into every session.
When invoked 146 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.00146 $0.00146
Opus 5 $0.00073 $0.00073
Sonnet 5 $0.00029 $0.00029
Haiku 4.5 $0.00015 $0.00015

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

Security

Grade A, and why

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

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

What it actually says

TypeScript Code Review

Type Safety

  • Never use any — use unknown, generics, or specific types
  • Enable and respect strict null checks
  • Use discriminated unions for complex state
  • Prefer type inference where obvious, explicit types for public APIs

Patterns

  • Prefer readonly for immutable data
  • Use as const for literal types
  • Avoid type assertions (as) — use type guards instead
  • Use satisfies operator for type validation without widening

Imports

  • No circular imports
  • Group imports: external → internal → relative
  • Use named exports (avoid default exports)
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. 3d ago First seen · 26 lines · 146 tokens per session scan A 99a8ea7e2564

Subscribe to this mod's changes

codingbuddy typescript.instructions.md is an instructions file published in the GitHub repository JeremyDev87/codingbuddy (31 stars, last pushed 4mo ago), licensed MIT. It adds 146 tokens to every session, about $0.0007 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.

Related

Other instructions, from other repositories

packmind packmind-cli-command-structure.instructions.md

Instructions for PackmindHub/packmind: Enforce clear separation of concerns between command definition (parameters and metadata) and handler logic (validation, execution, and output) in apps/cli commands to improve testability, maintainabi... .

PackmindHub/packmind · 353 tokens

packmind packmind-back-end-typescript-clean-code-practices.instructions.md

Instructions for PackmindHub/packmind: This standard establishes clean code practices in TypeScript for back-end development to enhance maintainability and ensure consistent patterns across services. It covers logging best practices, error... .

PackmindHub/packmind · 255 tokens

agnix typescript.instructions.md

Instructions for agent-sh/agnix, covering typescript instructions and guidelines.

agent-sh/agnix · 41 tokens

packmind packmind-typescript-good-practices.instructions.md

Instructions for PackmindHub/packmind: Generic practices that can be applied for all TS code in our app .

PackmindHub/packmind · 126 tokens

cli-continues typescript.instructions.md

Instructions for yigitkonur/cli-continues, covering typescript review guidelines, type safety, discriminated unions, async patterns and import rules.

yigitkonur/cli-continues · 438 tokens

VSCode-Airtable-Formula CLAUDE.md

Instructions for Automations-Project/VSCode-Airtable-Formula, covering claude.md, project, commands, per-package and running a single test.

Automations-Project/VSCode-Airtable-Formula · 13,510 tokens