ov-ensure-coding-style

Installation
SKILL.md

Apply Code Standards

Iteratively detect and fix all clang-format, clang-tidy, and copyright violations introduced by the current branch's changes.

Step 1: Identify Affected Files and Build Targets

Before running any commands, check whether the upstream reference is already confirmed in the conversation. If it is not, stop and ask:

"I'll diff against upstream/master. Let me know if you use a different upstream."

Do not proceed until the user replies. Use the confirmed reference <ref_branch> in all subsequent steps. Once the upstream branch is known, you must fetch <ref_branch> and find a merge-base commit <ref_commit>, against which the diff should be collected. Then run:

git diff --name-only <ref_commit> | grep -v '^thirdparty' | tee /tmp/changed_files.txt

Map the changed files to CMake targets. If the mapping is not obvious, ask the user:

"Which CMake targets cover the files you changed? (e.g., openvino_intel_cpu_plugin)"

Installs
1
GitHub Stars
10.9K
First Seen
4 days ago
ov-ensure-coding-style — openvinotoolkit/openvino