fix(prefab): 修复预制体编辑模式的保存与退出,使用原生 scene://edit-mode 接口替代无效的 IPC 广播,更新相关使用文档与安全规定
This commit is contained in:
14
.agent/workflows/refactor.md
Normal file
14
.agent/workflows/refactor.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
description: Clean up legacy code before feature work.
|
||||
---
|
||||
|
||||
## User Input
|
||||
|
||||
$ARGUMENTS
|
||||
|
||||
## Instructions
|
||||
|
||||
1. **Audit**: Scan the target directory `$ARGUMENTS`.
|
||||
2. **Constitution Check**: Compare against `/memory/constitution.md`.
|
||||
3. **Refactor**: Apply modern patterns (e.g., "Convert Promises to Async/Await") WITHOUT changing business logic.
|
||||
4. **Verify**: Run existing tests to ensure no regression.
|
||||
Reference in New Issue
Block a user