1k-architecture

Explain OneKey monorepo architecture, package relationships, and import hierarchy rules.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/wanghaisheng/web3-scaffold-app-monorepo --skill 1k-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1k-architecture
Source: https://github.com/wanghaisheng/web3-scaffold-app-monorepo/tree/main/.claude/skills/1k-architecture
Command: npx skills add https://github.com/wanghaisheng/web3-scaffold-app-monorepo --skill 1k-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The architecture overview clarifies how the OneKey monorepo is organized, how packages relate, and how import rules govern cross-project references, enabling faster onboarding and informed contribution.

Core Features & Use Cases

  • Multi-platform structure: explains apps/, packages/, and how platform-specific files are organized.
  • Key conventions: file suffixes, naming patterns, and import hierarchy rules used to prevent circular dependencies.
  • Use Case: a new developer uses this overview to navigate code ownership, identify where to implement cross-cutting concerns, and plan feature work across web/mobile/desktop.

Quick Start

Review the architecture overview to orient yourself with the repo layout and major packages before contributing.

Frequently Asked Questions about 1k-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How is the OneKey monorepo architecture organized for multi-platform apps?

The OneKey monorepo architecture organizes code into apps/ and packages/ directories, using platform-specific file suffixes to separate web, mobile, and desktop components while maintaining strict import hierarchy rules to prevent circular dependencies.

What import rules govern cross-package references in a monorepo?

Cross-package references in a monorepo are governed by strict import hierarchy rules that enforce workspace conventions, prevent circular dependencies, and maintain modular code structure across multi-platform components and shared interfaces.

How do I navigate cross-cutting concerns across web, mobile, and desktop packages?

To navigate cross-cutting concerns across web, mobile, and desktop packages, review the monorepo architecture overview to identify package relationships, code ownership boundaries, and import rules before planning feature work.

When do I need platform-specific file suffixes in monorepo development?

Platform-specific file suffixes in monorepo development are needed when implementing multi-platform components, ensuring platform-specific code remains isolated and architecture consistency checks pass across web, mobile, and desktop environments.

Does this monorepo architecture overview suit new developer onboarding?

This monorepo architecture overview suits new developer onboarding by clarifying project structure, package relationships, and import hierarchy rules, enabling faster orientation with the repo layout and major packages before contributing code.

Why does strict dependency management matter for scalable monorepo contributions?

Strict dependency management matters for scalable monorepo contributions because it enforces workspace conventions and import hierarchy rules that avoid circular dependencies, maintain modularity, and support architecture-consistency checks across cross-package interfaces.