From 279ab4f3329b1a6904d06d4137fb18443cbe12b7 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 8 May 2026 17:00:32 +0800 Subject: [PATCH] tweaks --- .agents/skills/how-to-write-component/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.agents/skills/how-to-write-component/SKILL.md b/.agents/skills/how-to-write-component/SKILL.md index aa00c21ea7..e66ec8f851 100644 --- a/.agents/skills/how-to-write-component/SKILL.md +++ b/.agents/skills/how-to-write-component/SKILL.md @@ -17,7 +17,7 @@ Follow existing project patterns first. Use these rules to resolve unclear compo - Type simple one-off props inline. Use a named `Props` type only when reused, exported, complex, or clearer. - Use API-generated or API-returned types at component boundaries. Keep small UI conversion helpers beside the component that needs them. -- Name values by their domain role and keep that name stable across the call chain, especially IDs such as `appInstanceId`. Normalize framework or route params at the boundary instead of passing aliased names through components. +- Name values by their domain role and backend API contract, and keep that name stable across the call chain, especially IDs such as `appInstanceId`. Normalize framework or route params at the boundary instead of passing aliased names through components. - Keep fallback and invariant checks at the lowest component that already handles that state; callers should pass raw values through instead of duplicating checks. ## State, Queries, And Callbacks