·oh-pdd-code-generator
</>

oh-pdd-code-generator

openharmonyinsight/openharmony-skills

基于设计文档自动生成鸿蒙系统代码框架,包括 IDL OpenHarmony (1) 生成代码框架, (2) 创建 IDL接口, (3) 生成 BUILD.gn 配置, (4) 创建服务代码, (5) 初始化项目结构, (6)参考现有代码风格。关键词:generación de código, IDL, BUILD.gn, bundle.json, perfil SA, estilo de código OpenHarmony, 代码生成, 接口定义, 构建配置, OH代码风格

10Instalaciones·0Tendencia·@openharmonyinsight

Instalación

$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 | 链路追踪 |

Ver original

Datos (listos para citar)

Campos y comandos estables para citas de IA/búsqueda.

Comando de instalación
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill oh-pdd-code-generator
Categoría
</>Desarrollo
Verificado
Primera vez visto
2026-02-11
Actualizado
2026-02-18

Respuestas rápidas

¿Qué es oh-pdd-code-generator?

基于设计文档自动生成鸿蒙系统代码框架,包括 IDL OpenHarmony (1) 生成代码框架, (2) 创建 IDL接口, (3) 生成 BUILD.gn 配置, (4) 创建服务代码, (5) 初始化项目结构, (6)参考现有代码风格。关键词:generación de código, IDL, BUILD.gn, bundle.json, perfil SA, estilo de código OpenHarmony, 代码生成, 接口定义, 构建配置, OH代码风格 Fuente: openharmonyinsight/openharmony-skills.

¿Cómo instalo oh-pdd-code-generator?

Abre tu terminal o herramienta de línea de comandos (Terminal, iTerm, Windows Terminal, etc.) Copia y ejecuta este comando: npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill oh-pdd-code-generator Una vez instalado, el skill se configurará automáticamente en tu entorno de programación con IA y estará listo para usar en Claude Code o Cursor

¿Dónde está el repositorio de origen?

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