·oh-pdd-code-generator
</>

oh-pdd-code-generator

openharmonyinsight/openharmony-skills

基于设计文档自动生成鸿蒙系统代码框架, 包括 IDL Öffnen Sie OpenHarmony存量代码,学习现有代码风格和架构规范。适用于用户请求:(1) 生成代码框架, (2) 创建 IDL接口, (3) 生成 BUILD.gn 配置, (4) 创建服务代码, (5) 初始化项目结构, (6)参考现有代码风格.关键词:code generation, IDL, BUILD.gn, bundle.json, SA Profile, OpenHarmony code style, 代码生成, 接口定义, 构建配置, OH代码风格

10Installationen·1Trend·@openharmonyinsight

Installation

$npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill oh-pdd-code-generator

SKILL.md

| 类命名 | class.Service | 服务类命名 | | 命名空间 | namespace. | 命名空间组织 | | 日志标签 | HiLogLabel | 日志使用方式 | | 错误码 | ERROR.=.[0-9] | 错误码分配 | | 宏定义 | #define.ENABLE | 条件编译开关 | | 初始化函数 | bool Init\(\) | 初始化模式 | | 清理函数 | void.Release\(\) | 资源清理模式 |

| 类名 | 大驼峰 + 后缀 | DiskInfoService | | 方法名 | 大驼峰 | GetDiskList() | | 成员变量 | 小驼峰 + 下划线后缀 | mutex, inited | | 命名空间 | 小写双冒号分隔 | OHOS::DiskManagement | | 文件名 | 小写下划线 | diskinfoservice.cpp | | 宏定义 | 大写下划线 | DISKMANAGEMENTFORMATENABLE |

| HiLog | hilog:libhilog | 日志输出 | | cutils | cutils:utils | C 工具函数 | | ipccore | ipccore:ipccore | IPC 通信 | | AccessToken | accesstoken:libaccesstoken | 权限管理 | | HiSysEvent | hisysevent:libhisysevent | 事件上报 | | HiTrace | hitracenative:hitracemeter | 链路追踪 |

Original anzeigen

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill oh-pdd-code-generator
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-11
Aktualisiert
2026-02-18

Schnelle Antworten

Was ist oh-pdd-code-generator?

基于设计文档自动生成鸿蒙系统代码框架, 包括 IDL Öffnen Sie OpenHarmony存量代码,学习现有代码风格和架构规范。适用于用户请求:(1) 生成代码框架, (2) 创建 IDL接口, (3) 生成 BUILD.gn 配置, (4) 创建服务代码, (5) 初始化项目结构, (6)参考现有代码风格.关键词:code generation, IDL, BUILD.gn, bundle.json, SA Profile, OpenHarmony code style, 代码生成, 接口定义, 构建配置, OH代码风格 Quelle: openharmonyinsight/openharmony-skills.

Wie installiere ich oh-pdd-code-generator?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill oh-pdd-code-generator Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code oder Cursor

Wo ist das Quell-Repository?

https://github.com/openharmonyinsight/openharmony-skills