Loading...
Loading...
Compare original and translation side by side
undefinedundefined
- [ ] `pnpm lint` passes with 0 errors?
- [ ] `pnpm type-check` passes with no type errors?
- [ ] Tests pass?
- [ ] No `console.log` statements (use logger)?
- [ ] No non-null assertions (the `x!` operator)?
- [ ] No `any` types?
- [ ] `pnpm lint` 执行通过,无错误?
- [ ] `pnpm type-check` 执行通过,无类型错误?
- [ ] 所有测试用例通过?
- [ ] 未遗留 `console.log` 语句(请使用日志工具)?
- [ ] 未使用非空断言符(`x!` 运算符)?
- [ ] 未使用 `any` 类型?.trellis/spec/cli/backend/.trellis/spec/cli/frontend/.trellis/spec/guides/"If I fixed a bug or discovered something non-obvious, should I document it so future me (or others) won't hit the same issue?"
.trellis/spec/cli/backend/.trellis/spec/cli/frontend/.trellis/spec/guides/"如果我修复了一个bug或发现了某个非显而易见的点,是否应该记录下来,避免未来的自己(或其他人)遇到同样的问题?"
/trellis:update-spec/trellis:update-specundefinedundefined
---
---| Oversight | Consequence | Check |
|---|---|---|
| Code-spec docs not updated | Others don't know the change | Check .trellis/spec/ |
| Spec text is abstract only | Easy regressions in infra/cross-layer changes | Require signature/contract/matrix/cases/tests |
| Migration not created | Schema out of sync | Check db/migrations/ |
| Types not synced | Runtime errors | Check shared types |
| Tests not updated | False confidence | Run full test suite |
| Console.log left in | Noisy production logs | Search for console.log |
| 遗漏项 | 后果 | 检查方式 |
|---|---|---|
| 代码规范文档未更新 | 其他成员不了解变更内容 | 检查 .trellis/spec/ 目录 |
| 规范仅为抽象文字描述 | 基础架构/跨层变更易出现回归 | 要求包含签名/契约/错误矩阵/测试用例/断言点 |
| 未创建迁移文件 | Schema与实际数据不同步 | 检查 db/migrations/ 目录 |
| 类型未同步更新 | 出现运行时错误 | 检查共享类型定义 |
| 测试用例未更新 | 产生错误的信心 | 运行完整测试套件 |
| 遗留 console.log | 生产环境日志冗余 | 搜索代码中的 console.log |
Development Flow:
Write code -> Test -> /trellis:finish-work -> git commit -> /trellis:record-session
| |
Ensure completeness Record progress
Debug Flow:
Hit bug -> Fix -> /trellis:break-loop -> Knowledge capture
|
Deep analysis/trellis:finish-work/trellis:record-session/trellis:break-loop开发流程:
编写代码 -> 测试 -> /trellis:finish-work -> git commit -> /trellis:record-session
| |
确保工作完整性 记录开发进度
调试流程:
发现bug -> 修复 -> /trellis:break-loop -> 知识沉淀
|
深度分析问题/trellis:finish-work/trellis:record-session/trellis:break-loopDelivery includes not just code, but also documentation, verification, and knowledge capture.
交付内容不仅包含代码,还需包含文档、验证及知识沉淀。