Typescript
Use for TypeScript 5.9+ on Node 22 LTS — code style (naming, ESM-first, import order, readonly), type system depth (generics, conditional types, infer, narrowing, satisfies, branded types), async (Promise, AbortController, async iterators, structured concurrency), error handling (Error subclassing, Result types, AggregateError), Node patterns (fs/promises, child_process, streams, workers, pino, graceful shutdown), Zod runtime validation at trust boundaries (safeParse, z.infer, refinements, discriminated unions), Prettier formatting, ESLint 9 flat config, packaging (pnpm workspaces, exports), and Vitest testing. Read the matching reference before acting.From its SKILL.md
npx -y skills add Jylhis/skills --skill typescriptAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, 472 tokens by cl100k_base, as published. Nobody here has run it
TypeScript skill index
Pick the topic and read its reference before writing or reviewing TypeScript / Node.js code.
| Topic | When to read | Reference |
|---|---|---|
| Code style | naming, ESM-first ("type": "module"), import order, barrel-export avoidance, const/readonly | references/code-style.md |
| Type system | generics with extends, conditional types, infer, satisfies, branded/opaque types, NoInfer, mapped types | references/type-system.md |
| Async | Promise, async/await, AbortController, Promise.all/allSettled, async iterators, p-limit, AbortSignal.timeout | references/async.md |
| Error handling | Error subclassing with prototype chain, cause, Result/neverthrow, AggregateError, narrowing unknown in catch | references/error-handling.md |
| Zod validation | runtime validation at trust boundaries (HTTP, env, config), safeParse, z.infer, refinements, discriminated unions, coercion | references/zod.md |
| Node patterns | node:fs/promises, child_process spawn/execFile, streams pipeline, worker_threads, pino logging, graceful shutdown | references/nodejs-patterns.md |
| Formatting (Prettier) | .prettierrc, --check in CI, eslint-config-prettier, husky + lint-staged, Prettier 3 defaults | references/formatting.md |
| Linting (ESLint 9) | flat config (eslint.config.js), tseslint.config helper, typed linting (project: true), ignores, glob overrides | references/linting.md |
| Packaging | pnpm + workspaces, "type": "module", exports field, .ts extensions in imports, ESM-first publishing | references/packaging.md |
| Testing (Vitest) | describe/it/expect, vi.mock / vi.spyOn, test.extend fixtures, snapshots, watch mode, coverage, Jest migration | references/testing.md |
For TypeScript / Node security topics (command injection, prototype
pollution, XSS, SSRF, secrets, npm audit), use the security skill.
After reading the reference, follow its guidance for the task.
What ships with it: 10 files
35.9 KB alongside SKILL.md
references/
- async.md4.0 KB
- code-style.md3.4 KB
- error-handling.md4.1 KB
- formatting.md2.0 KB
- linting.md2.6 KB
- nodejs-patterns.md4.0 KB
- packaging.md2.6 KB
- testing.md3.3 KB
- type-system.md3.1 KB
- zod.md6.9 KB