1.7 KiB
1.7 KiB
description, allowed-tools, argument-hint, model
| description | allowed-tools | argument-hint | model |
|---|---|---|---|
| Diagnose and fix CSS issues for a specific element. Uses the css-debugger agent for expert analysis. | Bash(*), Read, Write | <selector> [issue description] | sonnet |
Fix CSS
Diagnose and fix CSS issues for a specific element.
Instructions
Use the css-debugger agent for this task.
-
Identify the element: Use $ARGUMENTS to get the selector
- If no selector provided, run
/pick-elementfirst
- If no selector provided, run
-
Gather information:
node ~/.claude/plugins/*/skills/website-debug/scripts/browser-eval.js '(() => { const el = document.querySelector("SELECTOR"); if (!el) return "Element not found"; const s = getComputedStyle(el); return { display: s.display, visibility: s.visibility, opacity: s.opacity, width: s.width, height: s.height, position: s.position, top: s.top, left: s.left, zIndex: s.zIndex, margin: s.margin, padding: s.padding, flexDirection: s.flexDirection, justifyContent: s.justifyContent, alignItems: s.alignItems, overflow: s.overflow, transform: s.transform }; })()' -
Take screenshot to see current state:
node ~/.claude/plugins/*/skills/website-debug/scripts/browser-screenshot.js -
Analyze the issue based on:
- Computed styles
- Visual appearance
- User's description (if provided)
-
Propose fix with specific CSS changes
-
After making changes, use
/verify-changesto confirm fix worked
Delegate the actual analysis and fix proposal to the css-debugger agent for expert-level diagnosis.