Loading...
Loading...
Compare original and translation side by side
| Rule | Why |
|---|---|
| One window = one task | Mixing tasks pollutes context and degrades output quality |
Use | Clean start is more reliable than compressed context |
| Prevents old context from interfering with new work |
| Copy key info to new windows | Don't rely on context persistence — paste critical details |
| 规则 | 原因 |
|---|---|
| 一个窗口对应一项任务 | 混合任务会污染上下文,降低输出质量 |
优先使用 | 全新开始比压缩上下文更可靠 |
复杂任务完成后使用 | 避免旧上下文干扰新工作 |
| 将关键信息复制到新窗口 | 不要依赖上下文持久性——粘贴关键细节 |
| Task Type | Recommended Approach |
|---|---|
| Small bug fix (few lines) | Describe directly, let Claude modify in-place |
| Large feature / refactor | |
| Multi-file changes | Must use |
| Code analysis / learning | Ask Claude to analyze directly — no plan needed |
| Debugging | Provide error message + file path + relevant code — ask for root cause |
| 任务类型 | 推荐方案 |
|---|---|
| 小型bug修复(仅几行代码) | 直接描述问题,让Claude就地修改 |
| 大型功能开发 / 代码重构 | |
| 多文件变更 | 必须使用 |
| 代码分析 / 学习 | 直接让Claude分析——无需制定计划 |
| 调试 | 提供错误信息 + 文件路径 + 相关代码——询问根本原因 |
_transfersrc/MyToken.soltest_transfer_feeDeductionsrc/MyToken.sol_transfertest_transfer_feeDeductiongit diffgit add ..envgit diffgit add ..env| Action | Command |
|---|---|
| Before committing | |
| After modifying contracts | |
| Before PR | |
| Debugging failed test | |
| 操作 | 命令 |
|---|---|
| 提交前 | |
| 修改合约后 | |
| 发起PR前 | |
| 调试失败的测试用例 | |
| Command | Purpose |
|---|---|
| Clear context, start fresh |
| Enter planning mode — analyze before modifying |
| View all available commands |
| Compress context (prefer |
| 命令 | 用途 |
|---|---|
| 清空上下文,重新开始 |
| 进入规划模式——修改前先分析 |
| 查看所有可用命令 |
| 压缩上下文(优先使用 |
.claude/instructions.md.claude/instructions.md