typescript

typescript is a skill for Claude Code from neverinfamous/memory-journal-mcp. It costs 68 tokens per session (616 once invoked), scanned A, original, MIT.

A set of strict TypeScript development rules covering project configuration, type-safe code, input validation, and common choices such as unions instead of enums. TypeScript is JavaScript with optional type checks that help catch mistakes before running code.

In plain words
What is it for?
Use it when configuring TypeScript projects, handling external data, writing complex types, or fixing type errors without bypassing the checks.
Why use it?
It reduces unsafe type shortcuts and makes data entering the application easier to check and understand.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it when configuring TypeScript projects, handling external data, writing complex types, or fixing type errors without bypassing the checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/typescript
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.

Any agent
npx skills add neverinfamous/memory-journal-mcp --skill typescript
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code.

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 typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/typescript/github.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/typescript)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/typescript"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/typescript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/typescript"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00068 $0.00616
Opus 5 $0.00034 $0.00308
Sonnet 5 $0.00014 $0.00123
Haiku 4.5 $0.00007 $0.00062

Measured 10d ago against content hash 14299561e2d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

typescript 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/eslint-template.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/typescript/SKILL.md · 51 lines

How it starts

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

TypeScript Operational Guide

Enterprise-grade rules for writing resilient, type-safe TypeScript in 2026. Follow these standards when refactoring, writing new code, or configuring projects.

1. Type Safety Mandates

  • Never use any: Use unknown for unstructured data and narrow it with strict type guards or typeof/instanceof checks.
  • Avoid as assertions: Casting subverts the type system. Use the satisfies operator to validate shape without widening, or use strict type guards to preserve inference.
  • Use Unions over Enums: Prefer literal union types (type Status = "active" | "inactive"). Only use const enum when an intentional zero-overhead interop contract is required. Enums create unnecessary runtime footprint and complex mapping issues.
  • Boundary Validation: Always use Zod (or equivalent schema validation) to parse unknown data at system boundaries (API payloads, database reads, file I/O). Never blindly cast external payloads.

2. Project Configuration (tsconfig.json)

Unless explicitly directed otherwise by the user or existing ecosystem:

  • Module System: Assume an ESM-first setup. Ensure "type": "module" is in package.json.
  • Strict Mode: Ensure "strict": true is enabled.
  • Module Resolution: Use "moduleResolution": "Bundler" or "Node16" for modern ESM.

3. Generics and Utility Types

  • Keep generics constrained (<T extends Record<string, unknown>>) to avoid over-broad type matching.
  • Prefer built-in utility types (Record, Partial, Omit, Pick, Awaited) over custom mapped types when possible.
  • Use Readonly<T> for props and configurations that shouldn't mutate.

4. Error Handling

  • Avoid throwing untyped objects. Throw Error subclasses.
  • Use unknown in catch blocks (e.g., catch (error: unknown)) and check error instanceof Error before accessing .message.

5. Security & Linting

  • Do not bypass quality checks using @ts-ignore, @ts-expect-error, or @ts-nocheck unless mandated by an unavoidable upstream bug.
  • Avoid using eslint-disable to silence legitimate typing complaints.

Read the full file on GitHub · 51 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 51 lines · 68 tokens per session scan A 14299561e2d4

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 616 once invoked, about $0.0003 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.