OneKey monorepo architecture, project structure, package relationships, and import hierarchy rules.
38
36%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Fix and improve this skill with Tessl
tessl review fix ./.skillshare/skills/1k-architecture/SKILL.mdapps/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:
d71e6b7
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.