examples/harmonyos-app-CLAUDE.md
This is a project-level CLAUDE.md example for HarmonyOS applications. Place it at your project root.
[Briefly describe your app - features, target devices, API level]
@ComponentV2, @Local, @Param, @Event, @Provider, @Consumer, @Monitor, @Computed)Navigation + NavPathStack + NavDestination)var - prefer const, then letany type - complete type annotations for all methods, parameters, return valuescamelCase for variables/functions, PascalCase for classes/interfaces, UPPER_SNAKE_CASE for constants@file + @author; all methods need JSDoc with @param and @returnslayoutWeight(1) for even distribution - avoid SpaceAround/SpaceBetween$r()# Build HAP package
hvigorw assembleHap -p product=default
module.json5 before using system APIssrc/
|-- entry/ # App entry, framework initialization
|-- core/ # Core framework layer
|-- shared/ # Shared contracts layer
|-- packages/ # Business feature packages
/plan - Create implementation plan/code-review - Code quality review/build-fix - Fix build errorsfeat:, fix:, refactor:, docs:, test: