thalarch-typescriptlisted
Install: claude install-skill LUC4N3X/antigravity-thalarch
# Thalarch TypeScript
Discover the actual runtime, package manager, compiler, framework, module system, and quality
tools. Do not assume Node, React, Next.js, npm, ESM, or strict TypeScript.
## Preflight
Inspect:
- `package.json` scripts and engines;
- lockfile/package manager;
- `tsconfig*` and module resolution;
- framework/build tool versions;
- lint/format/type/test setup;
- browser vs server vs edge/runtime boundaries.
Use repository scripts instead of inventing equivalent commands.
## Type discipline
- Preserve strictness already configured; do not weaken the compiler to make code pass.
- Prefer narrowing from `unknown` to spreading `any` across a boundary.
- Model discriminated unions for real variant states.
- Avoid type assertions that merely silence the compiler; prove the invariant or validate the boundary.
- Keep runtime validation separate from compile-time typing.
- Do not generate duplicate DTO/types when an existing schema/source of truth can produce or define them.
## Async/runtime behavior
Review:
- promise ownership and missing awaits;
- cancellation/`AbortSignal` when the stack supports it;
- race conditions from stale async results;
- unhandled rejections;
- browser/server resource lifetime;
- event listener/subscription cleanup;
- concurrency fan-out and rate limits.
Do not introduce a new state-management or async library to solve a local problem without
clear evidence it is required.
## Frontend/framework overlay
When React/Vue/Svelte/Angu