Agent skill

typescript-default-lib

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.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/shaowei-g/codex-skills/tree/main/skills/typescript-default-lib

SKILL.md

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.

Expand your agent's capabilities with these related and highly-rated skills.

shaowei-g/codex-skills

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

0 0
Explore
shaowei-g/codex-skills

ekoen-frontend-code-review

Production-grade code review for the eKoEN frontend codebase. Use when asked to review, audit, inspect, or harden eKoEN React/Next.js frontend code, pages, components, hooks, API clients, or state layers for bugs, performance bottlenecks, TypeScript safety issues, request inefficiency, state-management risks, memory leaks, rendering regressions, error-handling gaps, duplication, or maintainability problems, especially when a structured severity-ranked report with code locations, root causes, suggested fixes, and example refactors is required.

0 0
Explore
shaowei-g/codex-skills

ekoen-backend.doc.route-error

Add HttpErrorRes responses to eKoEN backend routes when controllers can throw errors from app/util/errors/index.ts

0 0
Explore
shaowei-g/codex-skills

conventional-commit-helper

Generate and validate Conventional Commit messages for semantic-release workflows. Use when a user asks to write a commit message, asks to commit changes, asks for commit type/scope selection, or asks to enforce Conventional Commits consistency.

0 0
Explore
shaowei-g/codex-skills

codex-cli-subagent-transport

Use only when native subagent execution is unavailable and the caller needs one deterministic Codex CLI run with repo-local artifacts and a manifest-based result contract.

0 0
Explore
shaowei-g/codex-skills

skill-usage-logger

All skill MUST use this logger to record usage events in NDJSON format.Log Codex skill usage events to NDJSON with safe concurrent appends.

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results