code-standards-skill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Workflow

工作流程

  1. Determine the language of the code being written or reviewed
  2. Read the relevant standards file from
    languages/
    (e.g.,
    languages/ts.md
    for TypeScript)
  3. Read the relevant standards from
    frameworks/
    (e.g.,
    frameworks/tailwind.md
    for Tailwind)`
  4. Apply all standards when writing new code or reviewing existing code
  5. When reviewing, flag violations with the specific rule and a suggested fix
  1. 确定正在编写或评审的代码所使用的语言
  2. languages/
    目录读取相关规范文件(例如,TypeScript对应
    languages/ts.md
  3. frameworks/
    目录读取相关规范(例如,Tailwind对应
    frameworks/tailwind.md
  4. 在编写新代码或评审现有代码时应用所有规范
  5. 评审时,标注违反规范的具体规则并给出修复建议

Supported languages

支持的语言

  • TypeScript / TSX: See languages/ts.md for all rules
  • TypeScript / TSX:所有规则请查看languages/ts.md

Supported frameworks

支持的框架

  • Tailwind: See frameworks/tailwind.md for all rules
  • Tailwind:所有规则请查看frameworks/tailwind.md

Supported templating languages

支持的模板语言

  • JSX/TSX: See templating/jsx.md for all rules
  • JSX/TSX:所有规则请查看templating/jsx.md