shared-layer

Define shared types, message formats, and communication protocols between Extension and Webview.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/NAMEWTA/ai-omni --skill shared-layer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shared-layer
Source: https://github.com/NAMEWTA/ai-omni/tree/main/.claude/skills/ai-omni-dev/modules/shared-layer
Command: npx skills add https://github.com/NAMEWTA/ai-omni --skill shared-layer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

该模块提供 Extension 与 Webview 之间共享的类型定义、消息格式与通信协议,确保前后端通信具备类型安全与可维护性。

Core Features & Use Cases

  • 定义 WebviewMessage<T> 与 MessageTypes 常量
  • 共享配置常量与工具函数
  • 提供前后端通信的示例模式

Quick Start

阅读 shared/types/message.ts 和 shared/constants/index.ts,理解消息结构与常量定位。