oh-precommit-codecheck
OfficialPre-check OpenHarmony gate issues locally
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you catch OpenHarmony gate CI defects (especially copyright and C/C++ CodeArts checks) before committing, reducing the chance of PRs being rejected by the gate.
Core Features & Use Cases
- Gate-aligned local checks: verifies copyright header presence/year and runs CodeArts C/C++ checks (codecheck-ide-engine + Huawei clang-tidy).
- Extra local-only linting: runs Python (pylint/flake8), Shell (shellcheck/bashate-mod-ds), and GN format dry-run to improve code quality beyond gate coverage.
- Auto-fix workflow: with --fix, applies mechanical fixes for supported defect types and stops when issues require human judgment.
Quick Start
Run the command: /oh-precommit-codecheck --fix to check your staged C/C++/Python/Shell/GN files and automatically fix auto-fixable problems.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: oh-precommit-codecheck Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#oh-precommit-codecheck Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.