harmonyos-review

📁 coreylyn/harmonyos-skills 📅 Today
1
总安装量
1
周安装量
#51898
全站排名
安装命令
npx skills add https://github.com/coreylyn/harmonyos-skills --skill harmonyos-review

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
claude-code 1

Skill 文档

HarmonyOS Code Review

Audit HarmonyOS ArkTS projects against official Huawei guidelines. Generate prioritized fix reports.

Review Process

1. Quick Scan

Run in parallel to identify critical issues:

# Hardcoded credentials
grep -r "password\|secret\|key\|token" --include="*.json5" --include="*.ets"

# console instead of hilog
grep -r "console\." --include="*.ets" | grep -v "hilog"

# async forEach anti-pattern
grep -r "forEach.*await" --include="*.ets"

# API version check
grep -r "compileSdkVersion\|targetSdkVersion" --include="*.json5"

# Deprecated API usage
grep -r "@Deprecated\|deprecated" --include="*.ets"

2. Deep Analysis

Apply checklist from references/checklist.md per category.

3. Generate Report

Use references/report-template.md as base structure. Include:

  • Executive summary (issue counts by priority)
  • Detailed findings with file:line references
  • Prioritized fix recommendations
  • Overall grade (A-F)

References

Issue Priority

  • Critical: Blocks release, fix immediately
  • High: Fix soon, affects quality
  • Medium: Technical debt, consider fixing
  • Low: Optional optimization

Exit Criteria

  • All checklist categories reviewed
  • Report generated at docs/YYYY-MM-DD-review.md
  • Critical/high issues have fix suggestions with file:line references