before-dev

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Read the relevant development guidelines before starting your task.
Execute these steps:
  1. Discover available spec modules:
    bash
    python3 ./.trellis/scripts/get_context.py --mode packages
  2. Identify which specs apply to your task based on:
    • Which package you're modifying (e.g.,
      cli/
      ,
      docs-site/
      )
    • What type of work (backend, frontend, unit-test, docs, etc.)
  3. Read the spec index for each relevant module:
    bash
    cat .trellis/spec/<package>/<layer>/index.md
    Follow the "Pre-Development Checklist" section in the index.
  4. Always read shared guides:
    bash
    cat .trellis/spec/guides/index.md
  5. Understand the coding standards and patterns you need to follow, then proceed with your development plan.
This step is mandatory before writing any code.
在开始任务前,请阅读相关开发准则。
执行以下步骤:
  1. 发现可用的规范模块
    bash
    python3 ./.trellis/scripts/get_context.py --mode packages
  2. 确定适用的规范:根据以下因素判断任务适用的规范:
    • 你正在修改的包(例如:
      cli/
      docs-site/
    • 工作类型(后端、前端、单元测试、文档等)
  3. 读取每个相关模块的规范索引
    bash
    cat .trellis/spec/<package>/<layer>/index.md
    遵循索引中的**「开发前检查清单」**部分。
  4. 务必阅读共享指南
    bash
    cat .trellis/spec/guides/index.md
  5. 明确需要遵循的编码标准与模式,然后推进你的开发计划。
在编写任何代码前,此步骤为强制要求