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