node-typescript-boilerplate AGENTS.md

node-typescript-boilerplate AGENTS.md is an instructions file for Codex, OpenCode from jsynowiec/node-typescript-boilerplate. It costs 543 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for a TypeScript and Node.js project, including coding, error-handling, and Vitest testing rules.

In plain words
What is it for?
Use it when changing the repository so edits follow its TypeScript, Node.js, and testing conventions.
Why use it?
They give an coding agent clear boundaries, reducing unnecessary refactors, guessed decisions, and inconsistent code.

Instructions file for CodexOpenCode

About the project

node-typescript-boilerplate is a starter repository for Node.js projects written in TypeScript, with configurations and tools for modules, testing, linting, formatting, continuous integration, and local tool versions. Developers use it as a foundation for backend services, command-line tools, workers, APIs, and libraries. Its catalogue instructions guide coding agents working in projects based on the template.

jsynowiec/node-typescript-boilerplate · 2,953 stars · on GitHub

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/jsynowiec/node-typescript-boilerplate/agents-md
Clone the repo
git clone --depth 1 https://github.com/jsynowiec/node-typescript-boilerplate

Made for: Codex, OpenCode.

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 node-typescript-boilerplate AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jsynowiec/node-typescript-boilerplate/agents-md.svg)](https://agentmods.dev/instructions/jsynowiec/node-typescript-boilerplate/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jsynowiec/node-typescript-boilerplate/agents-md"><img src="https://agentmods.dev/badge/instructions/jsynowiec/node-typescript-boilerplate/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 543 This file is loaded in full into every session.
When invoked 543 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.00543 $0.00543
Opus 5 $0.00271 $0.00271
Sonnet 5 $0.00109 $0.00109
Haiku 4.5 $0.00054 $0.00054

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

Security

Grade A, and why

node-typescript-boilerplate AGENTS.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 4d 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.

AGENTS.md · 49 lines

How it starts

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

AGENTS.md

Ground rules (always)

  • Be conservative, explicit, and boring.
  • When unsure, ask; don’t guess.
  • Make minimal, targeted changes; avoid refactors unless requested/necessary.
  • Preserve existing structure, conventions, and tooling.
  • Don’t add dependencies without strong justification.

TypeScript

  • Write strict, idiomatic TS; follow the repo’s tsconfig and lint rules.
  • No any (use unknown, generics, or proper types).
  • Prefer interface for public shapes; type for unions/helpers.
  • Prefer immutability (readonly, ReadonlyArray) where practical.
  • Narrow with type guards; avoid assertions and ! except as a last resort.
  • Prefer exhaustive handling (never checks) for unions.
  • Treat caught errors as unknown and narrow before use.

Node.js

  • Target the repo’s supported Node LTS (don’t assume versions; check config/docs).
  • Prefer async/await; never swallow rejections.
  • Avoid module top-level side effects (I/O, network, reading env, global mutations) unless explicitly intended.
  • Env vars: validate centrally; read at runtime (not import-time); don’t mutate in app code (tests only with scoped setup/teardown).
  • Error handling: rethrow with context; preserve cause when available; don’t throw strings.
  • Library code should not log; CLIs may log intentionally with consistent exit codes.

Testing (Vitest)

  • New logic requires tests unless truly trivial (types-only, re-exports, comments/formatting).
  • Tests must be deterministic and isolated; avoid shared mutable state.
  • Prefer behavioral tests; mock sparingly.
  • No committed .only/.skip (unless explicitly justified).
  • Bug fixes must include a regression test.
  • Avoid snapshots unless they add clear value and are stable.

Style, docs, and security

  • Follow existing formatting/lint; keep functions small and readable.
  • Prefer named exports.
  • Update docs/comments when behavior changes (comments explain “why”, not “what”).
  • Never log secrets; validate/sanitize external inputs (paths/URLs/user data).
  • Dependency adds must be justified (need, alternatives, maintenance/license/security impact).

Read the full file on GitHub · 49 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. 4d ago First seen · 49 lines · 543 tokens per session scan A 460d83f28212

Subscribe to this mod's changes

node-typescript-boilerplate AGENTS.md is an instructions file published in the GitHub repository jsynowiec/node-typescript-boilerplate (2,953 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 543 tokens to every session, about $0.0027 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.