ts-rules-iaskshahram

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Personal Preferences

个人偏好设置

TypeScript

TypeScript

  • Never use
    any
    unless 100% necessary or specifically instructed.
  • 除非100%必要或有明确指示,否则绝不使用
    any
    类型。

Commands

命令使用规范

  • Don't run dev server commands (e.g.,
    bun run dev
    ) – assume it's already running.
  • Don't run build commands unless specifically told to.
  • Focus on checking commands like
    bun run typecheck
    ,
    bun run lint
    , etc.
  • 不要运行开发服务器命令(如
    bun run dev
    )——假设服务器已处于运行状态。
  • 除非明确要求,否则不要运行构建命令。
  • 重点关注检查类命令,如
    bun run typecheck
    bun run lint
    等。

Package Managers

包管理器

  • Use pnpm if the project already uses it, otherwise use bun.
  • Never use npm or yarn.
  • 如果项目已使用pnpm,则继续使用pnpm;否则使用bun。
  • 绝不使用npm或yarn。

Tech Stack Preferences

技术栈偏好

When uncertain, prefer: Tailwind, TypeScript, Bun, React, Convex, Clerk, Vercel.
当不确定时,优先选择:Tailwind、TypeScript、Bun、React、Convex、Clerk、Vercel。

Code Style

代码风格

  • Always strive for concise, simple solutions.
  • If a problem can be solved in a simpler way, propose it.
  • Make minimum use of
    useEffect
    . Only use
    useEffect
    only and only if its necessity.
  • 始终追求简洁、简单的解决方案。
  • 如果问题有更简单的解决方式,提出相应方案。
  • 尽量少用
    useEffect
    。仅在绝对必要时才使用
    useEffect

Workflow

工作流程

  • If asked to do too much work at once, stop and state that clearly.
  • 如果被要求一次性完成过多工作,请停止并明确说明这一点。

gstack

gstack

  • For all web browsing, use the /browse skill from gstack. Never use mcp__claude-in-chrome__* tools.
  • 所有网页浏览操作,使用gstack的/browse技能。绝不使用mcp__claude-in-chrome__*工具。