TypeScript Operational Guide
SkillDocs & knowledgeComprehensive enterprise-grade TypeScript operational guide. Use when configuring TS projects, writing complex generics, or enforcing strict type safety. Triggers on "TypeScript", "tsconfig.json", "generics", "type errors", "strict mode". SECURITY: Do not bypass type checks with 'any' or '@ts-ignore'.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the TypeScript Operational Guide skill
What this skill tells your AI
The instructions your AI receives, as published by neverinfamous/memory-journal-mcp in skills/typescript/SKILL.md and read by ahel’s review.
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: Useunknownfor unstructured data and narrow it with strict type guards ortypeof/instanceofchecks. - Avoid
asassertions: Casting subverts the type system. Use thesatisfiesoperator 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 useconst enumwhen 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-firstsetup. Ensure"type": "module"is inpackage.json. - Strict Mode: Ensure
"strict": trueis 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
Errorsubclasses. - Use
unknownin catch blocks (e.g.,catch (error: unknown)) and checkerror instanceof Errorbefore accessing.message.
5. Security & Linting
- Do not bypass quality checks using
@ts-ignore,@ts-expect-error, or@ts-nocheckunless mandated by an unavoidable upstream bug. - Avoid using
eslint-disableto silence legitimate typing complaints.
6. Deep References
For comprehensive tutorials or ecosystem-specific patterns, consult:
Signals
- GitHub stars
- 20
- Forks
- 5
- Last commit
- Jul 2026
- Hacker News mentions
- 20
Advanced
- Catalog kind
- skill
- Gateway key
typescript-neverinfamous- Source
- github.com/neverinfamous/memory-journal-mcp