Skip to content

Commit d2fab2c

Browse files
docs: add rule references and update copilot instructions
- Add @imports to CLAUDE.md for .claude/rules/ files - Update copilot instructions to allow no-namespace code in Assets/Scripts/ - Add JEngine.UI namespace to instruction files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent 0dfaba8 commit d2fab2c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/instructions/code-review.instructions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ For state accessed across Unity callbacks:
3232
### 5. Namespace Compliance
3333
- Runtime: `JEngine.Core.*`
3434
- Editor: `JEngine.Core.Editor.*`
35-
- No namespace = flag for review
35+
- UI package: `JEngine.UI`
36+
- Hot update: `HotUpdate.Code`
37+
- **Exception**: `Assets/Scripts/` may contain user-level code without namespace (intentional for user customization)
3638

3739
## Common Issues to Flag
3840

.github/instructions/jengine.instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ JEngine is a Unity hot update framework using HybridCLR for runtime C# execution
1313
### Namespaces
1414
- Runtime code: `JEngine.Core` or `JEngine.Core.*`
1515
- Editor code: `JEngine.Core.Editor` or `JEngine.Core.Editor.*`
16+
- UI package: `JEngine.UI`
1617
- Hot update code: `HotUpdate.Code`
18+
- **Exception**: `Assets/Scripts/` may contain user-level code without namespace (for user customization)
1719

1820
### Async/Await
1921
Always use `UniTask` instead of `Task`:

CLAUDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# JEngine Development Guidelines
22

3+
## Additional Rules
4+
5+
@.claude/rules/coding-patterns.md
6+
@.claude/rules/commit-conventions.md
7+
@.claude/rules/package-creation.md
8+
39
## Project Overview
410

511
JEngine is a Unity framework for **runtime hot updates** in games. It enables developers to update game code and assets without requiring users to download new builds.

0 commit comments

Comments
 (0)