360 Secure SkillHub
360 安全技能中心

js-ts-project-scaffolding

面向全新的 JavaScript/TypeScript Node.js 或 Web 项目,帮助确定项目形态、部署与数据需求,并给出 TypeScript、Biome、pnpm、mise 等最小技术栈建议、脚手架步骤和必要检查;不用于既有项目改动。

分类:开发
mingchuno
热度 0.00
最近更新 2026-10-23 06:39:53

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add mingchuno/skills/js-ts-project-scaffolding
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据不出本机
Metadata
name
js-ts-project-scaffolding
description
Choose a minimal stack and scaffold a new JavaScript or TypeScript Node.js or web project. Use only when creating a new project, not for existing-project changes or routine feature work.

JS/TS project scaffolding

Use the user's choices first. Treat these as defaults, and add a library only when the project needs the capability. Check current documentation and compatibility before selecting versions or generating setup commands.

  • Tooling: TypeScript 7+ for TypeScript projects, Biome, pnpm, and mise for runtime and tool versions. Enable strict type checking.
  • Web framework: Prefer TanStack Start over Next.js when a full-stack React framework is warranted. Add TanStack Query for client-side server-state needs and TanStack Form for nontrivial forms; use framework and native facilities when sufficient.
  • Validation and config: Use Zod at untrusted-data boundaries. Use t3-env when environment variables need a typed, validated contract.
  • Data: Choose SQLite for simple local or modest single-instance storage, PostgreSQL when concurrency, scale, or deployment needs justify it. Prefer Drizzle for schema, migrations, and queries. Use parameterized raw SQL for patterns Drizzle cannot express; never interpolate values into SQL strings.
  • Styling: Use CSS Modules for small projects and Tailwind CSS for medium-sized projects. Keep global CSS limited to resets, tokens, and truly global rules. Add shadcn/ui or Base UI only when a component library or design-system foundation is needed.

Before scaffolding, establish the project shape (CLI, service, static site, or full-stack app), deployment target, and data needs. Choose a latest Node.js LTS version. Include only the smallest useful checks: typecheck, Biome, and tests for meaningful behavior. Add authentication, CI, observability, or other infrastructure only when requirements call for them.