用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/OneKeyHQ/app-monorepo --skill 1k-architecture命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | 1k-architecture |
| description | OneKey monorepo architecture, project structure, package relationships, and import hierarchy rules. |
| allowed-tools | Read, Grep, Glob |
apps/desktop/ - Electron desktop app (Windows, macOS, Linux)apps/mobile/ - React Native mobile app (iOS, Android)apps/ext/ - Browser extension (Chrome, Firefox, Edge, Brave)apps/web/ - Progressive web applicationapps/web-embed/ - Embeddable wallet componentspackages/core/ - Blockchain protocol implementations, cryptography, hardware wallet communicationpackages/kit/ - Application logic, state management, API integrationspackages/kit-bg/ - Background services and workerspackages/components/ - Tamagui-based cross-platform UI componentspackages/shared/ - Platform abstractions, utilities, build configurationspackages/qr-wallet-sdk/ - Air-gapped wallet QR communication.native.ts, .desktop.ts, .web.ts, .ext.ts suffixes@onekeyfe/hd-* SDK packages.native.ts, .web.ts, .desktop.ts, .ext.tsComponentName.tsxuse prefix: useHookName.tsutilityName.ts@onekeyhq/components, @onekeyhq/core, @onekeyhq/kit@onekeyhq/shared/src/platformEnvCRITICAL: Violating these rules WILL break the build and cause circular dependencies.
HIERARCHY (NEVER violate this order):
@onekeyhq/shared - FORBIDDEN to import from any other OneKey packages@onekeyhq/components - ONLY allowed to import from shared@onekeyhq/kit-bg - ONLY allowed to import from shared and core (NEVER components or kit)@onekeyhq/kit - Can import from shared, components, and kit-bgBEFORE ADDING ANY IMPORT:
COMMON VIOLATIONS TO AVOID:
@onekeyhq/kit in @onekeyhq/components@onekeyhq/components in @onekeyhq/kit-bg@onekeyhq/kit in @onekeyhq/corepackages/components/src/packages/kit/src/packages/core/src/chains/MANDATORY ANALYSIS STEPS (Execute BEFORE any code changes):
Scope Impact Assessment
yarn why <package> if needed)Pattern Consistency Verification
Architecture Integrity Check
Performance Impact Evaluation
WHEN ADDING NEW FUNCTIONALITY:
WHEN MODIFYING EXISTING CODE:
BEFORE COMMITTING ANY CHANGES: