Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[AGENTS] Introduce 'debug' skill (#35060)

Egor Duplenskii8d79c95fce97
diff --git a/.agents/skills b/.agents/skills
new file mode 120000
index 00000000000..454b8427cd7
--- /dev/null
+++ b/.agents/skills
@@ -0,0 +1 @@
+../.claude/skills
\ No newline at end of file
diff --git a/.agents/skills/debug-matcher-pass/SKILL.md b/.claude/skills/debug-matcher-pass/SKILL.md
similarity index 100%
rename from .agents/skills/debug-matcher-pass/SKILL.md
rename to .claude/skills/debug-matcher-pass/SKILL.md
diff --git a/.agents/skills/debug-matcher-pass/references/example-diagnosis-report.md b/.claude/skills/debug-matcher-pass/references/example-diagnosis-report.md
similarity index 100%
rename from .agents/skills/debug-matcher-pass/references/example-diagnosis-report.md
rename to .claude/skills/debug-matcher-pass/references/example-diagnosis-report.md
diff --git a/.claude/skills/debug/SKILL.md b/.claude/skills/debug/SKILL.md
new file mode 100644
index 00000000000..c42898cd708
--- /dev/null
+++ b/.claude/skills/debug/SKILL.md
@@ -0,0 +1,22 @@
+---
+name: debug
+description: Troubleshooting all sorts of failures, crashes, exceptions and errors using debug capabilities. Analyze accuracy, performance, or memory issues. Dump tensors and intermediate blobs. Serialize IRs, execution graphs. Enable verbose, logging. Profile execution. Compare layer outputs. Inspect, trace or dump transformations. Identify executed operations, nodes, primitives, kernels.
+---
+
+# Debug Skill
+
+## Prerequisites
+Many debug env vars require the build flag `-DENABLE_DEBUG_CAPS=ON`.
+Before suggesting env vars, verify the build was configured with this flag
+(check CMakeCache.txt in the build dir).
+
+## Components
+
+| Component | Reference file to read |
+|---------------------------|---------------------------------------|
+| openvino_intel_cpu_plugin | @components/debug-intel-cpu-plugin.md |
+| openvino_intel_gpu_plugin | @components/debug-intel-gpu-plugin.md |
+
+## Steps
+1. Identify the component (or multiple components), then load its reference file
+2. Use the instructions and recommendations for debugging
diff --git a/.claude/skills/debug/components/debug-intel-cpu-plugin.md b/.claude/skills/debug/components/debug-intel-cpu-plugin.md
new file mode 100644
index 00000000000..07646312dc9
--- /dev/null
+++ b/.claude/skills/debug/components/debug-intel-cpu-plugin.md
@@ -0,0 +1,8 @@
+The debug and troubleshooting can be performed using various debug capabilities activated via environment variables (see below).
+
+# Reference
+Read `src/plugins/intel_cpu/docs/debug_capabilities/README.md` for the full list of debug environment variables.
+
+# Steps
+1. Read the debug capabilities doc to find relevant variables
+2. Find and use the ones which fit for the current debug scenario
diff --git a/.claude/skills/debug/components/debug-intel-gpu-plugin.md b/.claude/skills/debug/components/debug-intel-gpu-plugin.md
new file mode 100644
index 00000000000..a3b4d4fb30e
--- /dev/null
+++ b/.claude/skills/debug/components/debug-intel-gpu-plugin.md
@@ -0,0 +1,8 @@
+The debug and troubleshooting can be performed using various debug capabilities activated via environment variables (see below).
+
+# Reference
+Read `src/plugins/intel_gpu/docs/gpu_debug_utils.md` for the full list of debug environment variables.
+
+# Steps
+1. Read the debug capabilities doc to find relevant variables
+2. Find and use the ones which fit for the current debug scenario