tweakpane-visual-debugger
БесплатноЗапускает вложенные скриптыНе проверенThis skill should be used when debugging visual CSS and layout issues in the tweakpane-table plugin, specifically for investigating column alignment problems…
Об этом скилле
Tweakpane Visual Debugger
Overview
Debug visual CSS and layout issues in the tweakpane-table plugin using Playwright browser automation. Measure actual element dimensions, compare DOM structures, inspect CSS properties, and identify root causes of alignment problems between table headers and data cells.
When to Use This Skill
Use this skill in these scenarios:
- Columns don't align between headers and data rows
- CSS changes don't produce expected visual results
- Need to verify actual rendered dimensions vs expected
- Investigating why width properties aren't being applied
- Comparing CSS properties between headers and rows
- User reports "still looks the same" after fixes
Debugging Workflow
Step 1: Navigate to Test Page
Open the local test HTML file in the Playwright browser.
Available test files:
test/simple.html- Basic 2-column table (Text, List)test/advanced.html- Complex 5-column table (Name, Type, Link, Trigger, Delete)
Navigate using absolute path:
Use mcp__playwright__browser_navigate
Construct the absolute path from the working directory (/data/Workspace/helios/tweakpane-table):
file:///data/Workspace/helios/tweakpane-table/test/simple.html
Step 2: Capture Visual State
After navigation, capture both accessibility and visual information:
Take accessibility snapshot:
Use mcp__playwright__browser_snapshotThis provides the DOM structure in a text format.
Take visual screenshot:
Use mcp__playwright__browser_take_screenshotSet
fullPage: falsefor viewport screenshot, orfullPage: truefor entire page. Save as:alignment-issue-{timestamp}.png
Step 3: Measure Table Elements
Run the comprehensive measurement script to get precise dimensions and CSS properties.
Execute measure_table.js:
Use mcp__playwright__browser_evaluate
function: Read scripts/measure_table.js file content and pass as the function parameter
Script returns:
- Header cell dimensions and positions
- Row cell dimensions and positions
- CSS properties (flex, width, padding, margin, etc.)
- Inline styles applied
- Alignment differences calculated automatically
Analyze the results for:
- Width differences between header and row cells in same column
- Different flex-basis values
- Different padding/margin
- Missing inline styles (width not applied)
Step 4: Compare DOM Structure
Run the structure comparison script to identify hierarchy differences.
Execute compare_structure.js:
Use mcp__playwright__browser_evaluate
function: Read scripts/compare_structure.js file content and pass as the function parameter
Script returns:
- Full DOM hierarchy for headers and rows
- Path to cells comparison
- Structural differences
- Tag/class mismatches
- CSS property differences at each level
Look for:
- Different nesting depths
- Extra wrapper elements in headers vs rows
- Different element types (buttons vs inputs)
- Class name differences
Step 5: Inspect Specific Elements
If measurement scripts reveal issues, inspect specific elements interactively.
Check inline styles:
() => {
const headerCell = document.querySelector('.tp-headv .tp-lblv');
const rowCell = document.querySelector('.tp-rowv .tp-lblv');
return {
header: {
inlineWidth: headerCell.style.width,
inlineFlex: headerCell.style.flex,
allInlineStyles: headerCell.style.cssText
},
row: {
inlineWidth: rowCell.style.width,
inlineFlex: rowCell.style.flex,
allInlineStyles: rowCell.style.cssText
}
};
}
Check computed styles:
() => {
const headerCell = document.querySelector('.tp-headv .tp-lblv');
const rowCell = document.querySelector('.tp-rowv .tp-lblv');
const hcs = window.getComputedStyle(headerCell);
const rcs = window.getComputedStyle(rowCell);
return {
header: {
width: hcs.width,
flex: hcs.flex,
flexBasis: hcs.flexBasis,
flexGrow: hcs.flexGrow,
flexShrink: hcs.flexShrink,
minWidth: hcs.minWidth,
maxWidth: hcs.maxWidth,
padding: hcs.padding,
boxSizing: hcs.boxSizing
},
row: {
width: rcs.width,
flex: rcs.flex,
flexBasis: rcs.flexBasis,
flexGrow: rcs.flexGrow,
flexShrink: rcs.flexShrink,
minWidth: rcs.minWidth,
maxWidth: rcs.maxWidth,
padding: rcs.padding,
boxSizing: rcs.boxSizing
}
};
}
Step 6: Identify Root Cause
Based on measurements and comparisons, identify the root cause:
Common issues to check:
Width not applied
- Check if inline
widthorflexexists on cells - Verify width is applied to correct element (
.tp-lblvnot.tp-lblv_v)
- Check if inline
Flex properties overriding width
- Check if
flex: 1on child.tp-lblv_vcauses expansion - Verify
flex-grow: 0andflex-shrink: 0are set - Should use
flex: 0 0 {width}not j
- Check if
Установить tweakpane-visual-debugger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tweakpane-visual-debugger?
This skill should be used when debugging visual CSS and layout issues in the tweakpane-table plugin, specifically for investigating column alignment problems between table headers and data rows. Use when columns don't align, widths appear incorrect, or visual inspection of rendered output is needed.
Как установить скилл tweakpane-visual-debugger?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tweakpane-visual-debugger запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic