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/aryaniyaps/lamina/typescriptgit clone --depth 1 https://github.com/aryaniyaps/laminaWhat 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.01868 | $0.01868 |
| Opus 5 | $0.00934 | $0.00934 |
| Sonnet 5 | $0.00374 | $0.00374 |
| Haiku 4.5 | $0.00187 | $0.00187 |
Grade A, and why
lamina 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.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Coding Guidelines & Modern Features (v5.0 - v5.8)
When writing TypeScript code, prioritize using modern features and best practices introduced in recent versions (up to 5.8).
Global Themes Across 5.x
-
Standard decorators are here; legacy decorators are legacy. New TC39-compliant decorators landed in 5.0 and were extended in 5.2 (metadata). Old
experimentalDecorators-style behavior is still supported but should be treated as legacy. -
Type system is more precise and less noisy. Major work went into narrowing, control flow analysis, error messages, and new helpers like
NoInfer, inferred predicates, and betterundefined/never/uninitialized checks. -
Module / runtime interop has been modernized. Options like
--moduleResolution bundler,--module nodenext/node18,--rewriteRelativeImportExtensions,--erasableSyntaxOnly, and--verbatimModuleSyntaxare about playing nicely with ESM, Node 18+/22+, direct TypeScript execution, and bundlers. -
The standard library keeps tracking modern JS. Support for new ES features (iterator helpers,
Object.groupBy/Map.groupBy, new Set/ES2024 APIs) shows up as type declarations and sometimes extra checks (regex syntax checking, etc.).
When generating or refactoring code, prefer these newer idioms, and avoid patterns that conflict with updated checks.
Modern Features to Utilize
Type System & Inference
constType Parameters (5.0): Useconsttype parameters for more precise literal inference.declare function names<const T extends string[]>(...names: T): void;@satisfiesOperator (5.0): Usesatisfiesto validate types without widening them.- Inferred Type Predicates (5.5): Allow TypeScript to infer type predicates for functions that filter arrays or check types, reducing the need for explicit
isreturn types. NoInferUtility (5.4): UseNoInfer<T>to block inference for specific type arguments when you want them to be determined by other arguments.- Narrowing:
- Switch(true) (5.3): Utilize narrowing in
switch(true)blocks. - Boolean Comparisons (5.3): Rely on narrowing from direct boolean comparisons.
- Closures (5.4): Trust preserved narrowing in closures when variables aren't modified after the check.
- Constant Indexed Access (5.5): Use constant indices to narrow object/array properties.
- Switch(true) (5.3): Utilize narrowing in
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 · 130 lines · 1,868 tokens per session scan A e923c5c23458
lamina typescript.instructions.md is an instructions file published in the GitHub repository aryaniyaps/lamina (114 stars, last pushed 16d ago), licensed Apache-2.0. It adds 1,868 tokens to every session, about $0.0093 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
anilist-mcp-server AGENTS.md
AGENTS.md instructions for Grinv/anilist-mcp-server, covering agents.md, project shape, why this server exists, commands and conventions.
ConfluenceMcp CLAUDE.md
Claude Code instructions for jagadeesh52423/ConfluenceMcp, covering claude.md, development commands, building and running, build the typescript project and start the mcp server (production).
claude-workspace CLAUDE.md
Instructions for Piyush8296/claude-workspace, covering claude workspace — frontend engineering, quick facts, commands, code style and git.
ai-workflow AGENTS.md
Instructions for cunhaax/ai-workflow, covering ai workflow template, rules — non-negotiable, project overview, commands and architecture.
trackly-cli CLAUDE.md
Claude Code instructions for trackly-app/trackly-cli, covering trackly-cli, tech stack, backend production source of truth, directory structure and key commands.
McpServer AGENTS.md
AGENTS.md instructions for sharpninja/McpServer, covering agent instructions, session start, rules, byrd test gate and where things live.