This skill verifies and resolves any direct `require('../../assets/...')` or `import ... from '../../assets/...'` imports in TS/TSX/JS/JSX files to use the unified `assets/index.ts` module instead.
This skill acts proactively whenever UI component or standard script files are modified to ensure direct imports to physical assets/ files are correctly encapsulated and routed through the unified assets/index.ts exports.
.tsx, .jsx, .ts, .js), check for occurrences of direct asset requirements (e.g., require('../../assets/images/something.png') or import img from '../../assets/images/something.png').assets/index.ts file.index.ts already, note its exported key (e.g., IMAGES.Something).assets/index.ts under the correct category (ICONS, IMAGES, or BRAND).import { [Category] } from '@/assets' (or relative equivalent) and replacing the or with the extracted key .requireimport[Category].[AssetKey]index.ts and the UI file(s).Crucial Note: All conversations, proposed changes, planning tables (規劃表), explanations, and responses to the user MUST be in Traditional Chinese (繁體中文).