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 instructions/khaledsaeed18/node-express-boilerplate/typescript-assertionsgit clone --depth 1 https://github.com/KhaledSaeed18/node-express-boilerplateWhat 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.00344 | $0.00344 |
| Opus 5 | $0.00172 | $0.00172 |
| Sonnet 5 | $0.00069 | $0.00069 |
| Haiku 4.5 | $0.00034 | $0.00034 |
Grade A, and why
node-express-boilerplate typescript-assertions.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.
What it actually says
TypeScript Assertion Safety
Follow this file when touching TypeScript in src/ where merges can introduce assertion-heavy fixes.
Rule
- Treat type assertions as a last resort.
- Prefer control-flow narrowing, user-defined type guards,
satisfies, andas const+typeofderivation. - Do not use double assertions (
as unknown as T) unless there is no safe alternative and the boundary is documented.
Preferred Patterns
- Runtime-to-type derivation:
- Define constants with
as const. - Derive unions with
typeof Obj[keyof typeof Obj].
- Define constants with
- External input handling:
- Validate and narrow first, then use strongly typed values.
- Framework interop edge cases (Express/Node APIs):
- Use narrow casts on the smallest expression, not on wide objects.
Merge-Fix Checklist
- Remove newly added broad casts and replace with narrowing where possible.
- Keep assertions local to integration boundaries.
- Ensure final code passes the project quality gate in AGENTS.md.
References
- Project-wide standards: AGENTS.md
- Copilot wrapper: .github/copilot-instructions.md
- Assertion derivation examples: .agents/skills/typescript-magician/rules/as-const-typeof.md
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.
- 2d ago First seen · 36 lines · 344 tokens per session scan A 12254ba10340
node-express-boilerplate typescript-assertions.instructions.md is an instructions file published in the GitHub repository KhaledSaeed18/node-express-boilerplate (33 stars, last pushed 9d ago), licensed MIT. It adds 344 tokens to every session, about $0.0017 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 instructions, from other repositories
qq-music-api AGENTS.md
Instructions for Rain120/qq-music-api, covering 🤖 qq music api - ai agents 指南 (agents.md), 🎯 目录, 项目概览, 项目架构 and 1. 服务端主链路.
sportsdataverse-js CLAUDE.md
Instructions for sportsdataverse/sportsdataverse-js, covering claude.md — sportsdataverse (node.js) development guide, package overview, commit convention, branches and build & development commands.
kerberos AGENTS.md
Instructions for mongodb-js/kerberos, covering agents.md, project overview, commands, structure and code conventions.
sportsdataverse-js copilot-instructions.md
Instructions for sportsdataverse/sportsdataverse-js, covering github copilot instructions — sportsdataverse (node.js), architecture (how the code is generated), conventions and commits / prs.
chronos CLAUDE.md
Instructions for sx4im/chronos, covering claude.md — chronos, what this project is, the prime directive (never violate), the core mental model (why dst works here) and the non-negotiable contract for users.
nodejs-starter CLAUDE.md
Instructions for threeal/nodejs-starter, covering claude.md, about this repository, architecture, source files and build outputs.