Back to list
shaowei-g

typescript-default-lib

by shaowei-g

Save personal codex skills

0🍴 0📅 Jan 19, 2026

SKILL.md


name: typescript-default-lib description: Install a default set of commonly used libraries when initializing a new TypeScript Node.js project (or retrofitting an existing one). Use when a user asks to "create a TypeScript project" and wants the standard dependencies installed (p-map, p-retry, luxon, lodash-es, winston, prisma + @prisma/client, ioredis, express, dotenv) plus common tooling (rimraf, tsc-alias) with optional @types packages and Prisma init.

TypeScript Default Lib

Install (latest) versions of a standard dependency set for TypeScript + Node.js backends.

Quick start

  • Run the installer from your project root (must contain package.json):
    • bash /home/harry/.codex/skills/typescript-default-lib/scripts/install_default_libs.sh
    • Add Prisma scaffolding too: bash /home/harry/.codex/skills/typescript-default-lib/scripts/install_default_libs.sh --init-prisma

What gets installed

Dependencies

  • p-map
  • p-retry
  • luxon
  • lodash-es
  • winston
  • ioredis
  • express
  • dotenv
  • @prisma/client

Dev dependencies

  • prisma
  • rimraf
  • tsc-alias
  • @types/express (unless --no-types)
  • @types/lodash-es (unless --no-types)

Manual install commands (no script)

Use these if you don’t want to run the script:

  • npm

    • npm i p-map p-retry luxon lodash-es winston ioredis express dotenv @prisma/client
    • npm i -D prisma rimraf tsc-alias @types/express @types/lodash-es
    • npx prisma init (optional)
  • pnpm

    • pnpm add p-map p-retry luxon lodash-es winston ioredis express dotenv @prisma/client
    • pnpm add -D prisma rimraf tsc-alias @types/express @types/lodash-es
    • pnpm prisma init (optional)
  • yarn

    • yarn add p-map p-retry luxon lodash-es winston ioredis express dotenv @prisma/client
    • yarn add -D prisma rimraf tsc-alias @types/express @types/lodash-es
    • yarn prisma init (optional)

Notes / gotchas

  • p-map, p-retry, and lodash-es are ESM-first; avoid compiling your app to CommonJS unless you plan to use dynamic import() or switch to TS module settings compatible with ESM (e.g. NodeNext/Bundler).
  • Prisma best practice: keep prisma as a dev dependency; ship @prisma/client as a runtime dependency.
  • tsc-alias is useful when you compile with tsc and rely on paths aliases; run it after tsc to rewrite emitted import paths.

scripts/

Contains scripts/install_default_libs.sh.

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon