View the WPF element hierarchy in JSON to debug layout, find element names, and understand UI structure.

Install

mkdir -p .claude/skills/tree && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14290" && unzip -o skill.zip -d .claude/skills/tree && rm skill.zip

Installs to .claude/skills/tree

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Get the visual tree structure of the running WPF application. Use this skill when asked to inspect, debug, or understand the element hierarchy, control structure, or layout of the WPF UI.
187 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Inspect the structure of the WPF UI
  • Find element names for automation or testing
  • Debug layout or control hierarchy issues
  • Understand how controls are nested
  • Verify that elements exist in the visual tree

How it works

This skill retrieves the complete WPF visual tree as JSON, showing all UI elements, their types, names, and hierarchy from a running WPF application.

Inputs & outputs

You give it
running WPF application
You get back
JSON representation of the visual tree with element type, name, and child elements

When to use tree

  • Debug WPF layout
  • Find control names
  • Verify UI hierarchy
  • Inspect visual tree

About this skill

Vibe Visual Tree Skill

This skill retrieves the complete WPF visual tree as JSON, showing all UI elements, their types, names, and hierarchy.

When to Use

Use this skill when:

  • Inspecting the structure of the WPF UI
  • Finding element names for automation or testing
  • Debugging layout or control hierarchy issues
  • Understanding how controls are nested
  • Verifying that elements exist in the visual tree

Prerequisites

The WPF application must be running with the VibeServer extension. Start it with:

cd MyWpfApp
dotnet watch run

Usage

Run the script from the repository root:

.\.github\skills\vibe-tree\get-tree.ps1

Output

Returns a JSON representation of the visual tree with:

  • Element type (e.g., Button, TextBlock, Grid)
  • Element name (x:Name attribute)
  • Child elements (nested hierarchy)

Example output:

{
  "Type": "MainWindow",
  "Name": "mainWindow",
  "Children": [
    {
      "Type": "Grid",
      "Name": "rootGrid",
      "Children": [...]
    }
  ]
}

Workflow Integration

Use this skill alongside vibe-screenshot to:

  1. Capture a screenshot to see the visual appearance
  2. Get the tree to understand the element structure
  3. Make targeted XAML changes based on element names

When not to use it

  • When the WPF application is not running
  • When the WPF application is not running with the VibeServer extension

Prerequisites

WPF application running with the VibeServer extension

Limitations

  • Requires the WPF application to be running
  • Requires the VibeServer extension to be active
  • Output is a JSON representation

How it compares

This skill provides a structured JSON output of the WPF visual tree, enabling programmatic inspection, unlike manual UI inspection tools.

Compared to similar skills

tree side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
tree (this skill)07moNo flagsIntermediate
performance-benchmark34moNo flagsIntermediate
component-development14moReviewIntermediate
try-fix13moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry