Index of every page on this site: llms.txt
All skills
openvinotoolkit avatar

/ov-ensure-coding-style

@993f33e
Run it yourself

Detect and fix clang-format, clang-tidy, and copyright header violations in an OpenVINO C++ codebase. Use when the user complains about code style or formatting, asks to clean up changes, fix linting, add a copyright header, or when a style check or linting CI job is failing. Do not use for build errors, compilation failures, linker errors, test failures, runtime crashes, accuracy issues, or CMake config problems.

Use this Skill: https://skilld.dev/gh/openvinotoolkit/openvino/ov-ensure-coding-style

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈110 tokens for metadata: the name and description. ≈309 when used: this file.

Description uses 5.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈442 characters, or 5.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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)"

Step 2: Check, Fix, Repeat

Follow the fix order and tool instructions from coding_style.md exactly — do not rearrange or skip steps. Read that file before proceeding. Repeat the full cycle until all checks pass.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts21d3 checks · Risk SAFE
  • Gen Agent Trust Hub21d

    The skill automates C++ code formatting and linting by executing shell commands and following instructions from a local repository file. It is susceptible to indirect prompt injection if the repository content is controlled by an untrusted party, and it lacks sanitization for user-provided branch and target names used in shell commands.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 993f33e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 14 hours ago.

Activeupdated 7 months ago

README badge

README badge for openvinotoolkit/openvino/ov-ensure-coding-style