Skip to content

Commit 860a759

Browse files
committed
docs: Clarify best practices in AGENTS.md and refine instructions
1 parent d1e9cd6 commit 860a759

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
- **Kotlin Multiplatform**: Always consider all platforms: JS, WASM, Desktop JVM, Android, iOS
44
- **Build & Test**: Always run build and tests before completing tasks
5-
- **Preserve Intent**: If existing solution doesn't work, preserve its intent
6-
- **Module Clean**: Use `./gradlew :module:clean` instead of global clean
5+
- **Preserve Intent**: If an existing solution doesn't work, preserve its intent
6+
- **Module Clean**: Use `./gradlew :xxx:clean` instead of global clean, avoid polluting global caches.
77
- **Test Scripts**: Put temporary scripts under `docs/test-scripts`
88
- **Logs**: Check `~/.autodev/logs/autodev-app.log` for debugging
99
- Code comments should be in English, for documentation and user-facing strings should be followed user's langauge
1010

1111
## KMP Best Practices
1212

1313
- Use `expect`/`actual` for platform-specific code, for example `Platform`
14+
- Avoid emoji and UTF-8 in source code which **WASM** doesn't support
1415
- **@JsExport**: Use concrete classes (not interfaces), `Promise` (not `Flow`)
15-
- **WASM**: Avoid emoji and UTF-8 in code
1616
- **i18n**: Run `./gradlew :mpp-ui:generateI18n4kFiles`
1717

1818
## Renderer System

0 commit comments

Comments
 (0)